2N/A@%:@! /bin/sh
2N/A@%:@ Guess values for system-dependent variables and create Makefiles.
2N/A@%:@ Generated by GNU Autoconf 2.63 for GRUB 1.99.
2N/A@%:@
2N/A@%:@ Report bugs to <bug-grub@gnu.org>.
2N/A@%:@
2N/A@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2N/A@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2N/A@%:@ This configure script is free software; the Free Software Foundation
2N/A@%:@ gives unlimited permission to copy, distribute and modify it.
2N/A## --------------------- ##
2N/A## M4sh Initialization. ##
2N/A## --------------------- ##
2N/A
2N/A# Be more Bourne compatible
2N/ADUALCASE=1; export DUALCASE # for MKS sh
2N/Aif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2N/A emulate sh
2N/A NULLCMD=:
2N/A # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2N/A # is contrary to our usage. Disable this feature.
2N/A alias -g '${1+"$@"}'='"$@"'
2N/A setopt NO_GLOB_SUBST
2N/Aelse
2N/A case `(set -o) 2>/dev/null` in
2N/A *posix*) set -o posix ;;
2N/Aesac
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A# PATH needs CR
2N/A# Avoid depending upon Character Ranges.
2N/Aas_cr_letters='abcdefghijklmnopqrstuvwxyz'
2N/Aas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2N/Aas_cr_Letters=$as_cr_letters$as_cr_LETTERS
2N/Aas_cr_digits='0123456789'
2N/Aas_cr_alnum=$as_cr_Letters$as_cr_digits
2N/A
2N/Aas_nl='
2N/A'
2N/Aexport as_nl
2N/A# Printing a long string crashes Solaris 7 /usr/bin/printf.
2N/Aas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2N/Aas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2N/Aas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2N/Aif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2N/A as_echo='printf %s\n'
2N/A as_echo_n='printf %s'
2N/Aelse
2N/A if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2N/A as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2N/A as_echo_n='/usr/ucb/echo -n'
2N/A else
2N/A as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2N/A as_echo_n_body='eval
2N/A arg=$1;
2N/A case $arg in
2N/A *"$as_nl"*)
2N/A expr "X$arg" : "X\\(.*\\)$as_nl";
2N/A arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2N/A esac;
2N/A expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2N/A '
2N/A export as_echo_n_body
2N/A as_echo_n='sh -c $as_echo_n_body as_echo'
2N/A fi
2N/A export as_echo_body
2N/A as_echo='sh -c $as_echo_body as_echo'
2N/Afi
2N/A
2N/A# The user is always right.
2N/Aif test "${PATH_SEPARATOR+set}" != set; then
2N/A PATH_SEPARATOR=:
2N/A (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2N/A (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2N/A PATH_SEPARATOR=';'
2N/A }
2N/Afi
2N/A
2N/A# Support unset when possible.
2N/Aif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2N/A as_unset=unset
2N/Aelse
2N/A as_unset=false
2N/Afi
2N/A
2N/A
2N/A# IFS
2N/A# We need space, tab and new line, in precisely that order. Quoting is
2N/A# there to prevent editors from complaining about space-tab.
2N/A# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2N/A# splitting by setting IFS to empty value.)
2N/AIFS=" "" $as_nl"
2N/A
2N/A# Find who we are. Look in the path if we contain no directory separator.
2N/Acase $0 in
2N/A *[\\/]* ) as_myself=$0 ;;
2N/A *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/A ;;
2N/Aesac
2N/A# We did not find ourselves, most probably we were run as `sh COMMAND'
2N/A# in which case we are not to be found in the path.
2N/Aif test "x$as_myself" = x; then
2N/A as_myself=$0
2N/Afi
2N/Aif test ! -f "$as_myself"; then
2N/A $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2N/A { (exit 1); exit 1; }
2N/Afi
2N/A
2N/A# Work around bugs in pre-3.0 UWIN ksh.
2N/Afor as_var in ENV MAIL MAILPATH
2N/Ado ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2N/Adone
2N/APS1='$ '
2N/APS2='> '
2N/APS4='+ '
2N/A
2N/A# NLS nuisances.
2N/ALC_ALL=C
2N/Aexport LC_ALL
2N/ALANGUAGE=C
2N/Aexport LANGUAGE
2N/A
2N/A# Required to use basename.
2N/Aif expr a : '\(a\)' >/dev/null 2>&1 &&
2N/A test "X`expr 00001 : '.*\(...\)'`" = X001; then
2N/A as_expr=expr
2N/Aelse
2N/A as_expr=false
2N/Afi
2N/A
2N/Aif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2N/A as_basename=basename
2N/Aelse
2N/A as_basename=false
2N/Afi
2N/A
2N/A
2N/A# Name of the executable.
2N/Aas_me=`$as_basename -- "$0" ||
2N/A$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2N/A X"$0" : 'X\(//\)$' \| \
2N/A X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2N/A$as_echo X/"$0" |
2N/A sed '/^.*\/\([^/][^/]*\)\/*$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\/\(\/\/\)$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\/\(\/\).*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A s/.*/./; q'`
2N/A
2N/A# CDPATH.
2N/A$as_unset CDPATH
2N/A
2N/A
2N/Aif test "x$CONFIG_SHELL" = x; then
2N/A if (eval ":") 2>/dev/null; then
2N/A as_have_required=yes
2N/Aelse
2N/A as_have_required=no
2N/Afi
2N/A
2N/A if test $as_have_required = yes && (eval ":
2N/A(as_func_return () {
2N/A (exit \$1)
2N/A}
2N/Aas_func_success () {
2N/A as_func_return 0
2N/A}
2N/Aas_func_failure () {
2N/A as_func_return 1
2N/A}
2N/Aas_func_ret_success () {
2N/A return 0
2N/A}
2N/Aas_func_ret_failure () {
2N/A return 1
2N/A}
2N/A
2N/Aexitcode=0
2N/Aif as_func_success; then
2N/A :
2N/Aelse
2N/A exitcode=1
2N/A echo as_func_success failed.
2N/Afi
2N/A
2N/Aif as_func_failure; then
2N/A exitcode=1
2N/A echo as_func_failure succeeded.
2N/Afi
2N/A
2N/Aif as_func_ret_success; then
2N/A :
2N/Aelse
2N/A exitcode=1
2N/A echo as_func_ret_success failed.
2N/Afi
2N/A
2N/Aif as_func_ret_failure; then
2N/A exitcode=1
2N/A echo as_func_ret_failure succeeded.
2N/Afi
2N/A
2N/Aif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
2N/A :
2N/Aelse
2N/A exitcode=1
2N/A echo positional parameters were not saved.
2N/Afi
2N/A
2N/Atest \$exitcode = 0) || { (exit 1); exit 1; }
2N/A
2N/A(
2N/A as_lineno_1=\$LINENO
2N/A as_lineno_2=\$LINENO
2N/A test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
2N/A test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
2N/A") 2> /dev/null; then
2N/A :
2N/Aelse
2N/A as_candidate_shells=
2N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A case $as_dir in
2N/A /*)
2N/A for as_base in sh bash ksh sh5; do
2N/A as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
2N/A done;;
2N/A esac
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/A
2N/A for as_shell in $as_candidate_shells $SHELL; do
2N/A # Try only shells that exist, to save several forks.
2N/A if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
2N/A { ("$as_shell") 2> /dev/null <<\_ASEOF
2N/Aif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2N/A emulate sh
2N/A NULLCMD=:
2N/A # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2N/A # is contrary to our usage. Disable this feature.
2N/A alias -g '${1+"$@"}'='"$@"'
2N/A setopt NO_GLOB_SUBST
2N/Aelse
2N/A case `(set -o) 2>/dev/null` in
2N/A *posix*) set -o posix ;;
2N/Aesac
2N/A
2N/Afi
2N/A
2N/A
2N/A:
2N/A_ASEOF
2N/A}; then
2N/A CONFIG_SHELL=$as_shell
2N/A as_have_required=yes
2N/A if { "$as_shell" 2> /dev/null <<\_ASEOF
2N/Aif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2N/A emulate sh
2N/A NULLCMD=:
2N/A # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2N/A # is contrary to our usage. Disable this feature.
2N/A alias -g '${1+"$@"}'='"$@"'
2N/A setopt NO_GLOB_SUBST
2N/Aelse
2N/A case `(set -o) 2>/dev/null` in
2N/A *posix*) set -o posix ;;
2N/Aesac
2N/A
2N/Afi
2N/A
2N/A
2N/A:
2N/A(as_func_return () {
2N/A (exit $1)
2N/A}
2N/Aas_func_success () {
2N/A as_func_return 0
2N/A}
2N/Aas_func_failure () {
2N/A as_func_return 1
2N/A}
2N/Aas_func_ret_success () {
2N/A return 0
2N/A}
2N/Aas_func_ret_failure () {
2N/A return 1
2N/A}
2N/A
2N/Aexitcode=0
2N/Aif as_func_success; then
2N/A :
2N/Aelse
2N/A exitcode=1
2N/A echo as_func_success failed.
2N/Afi
2N/A
2N/Aif as_func_failure; then
2N/A exitcode=1
2N/A echo as_func_failure succeeded.
2N/Afi
2N/A
2N/Aif as_func_ret_success; then
2N/A :
2N/Aelse
2N/A exitcode=1
2N/A echo as_func_ret_success failed.
2N/Afi
2N/A
2N/Aif as_func_ret_failure; then
2N/A exitcode=1
2N/A echo as_func_ret_failure succeeded.
2N/Afi
2N/A
2N/Aif ( set x; as_func_ret_success y && test x = "$1" ); then
2N/A :
2N/Aelse
2N/A exitcode=1
2N/A echo positional parameters were not saved.
2N/Afi
2N/A
2N/Atest $exitcode = 0) || { (exit 1); exit 1; }
2N/A
2N/A(
2N/A as_lineno_1=$LINENO
2N/A as_lineno_2=$LINENO
2N/A test "x$as_lineno_1" != "x$as_lineno_2" &&
2N/A test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
2N/A
2N/A_ASEOF
2N/A}; then
2N/A break
2N/Afi
2N/A
2N/Afi
2N/A
2N/A done
2N/A
2N/A if test "x$CONFIG_SHELL" != x; then
2N/A for as_var in BASH_ENV ENV
2N/A do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2N/A done
2N/A export CONFIG_SHELL
2N/A exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
2N/Afi
2N/A
2N/A
2N/A if test $as_have_required = no; then
2N/A echo This script requires a shell more modern than all the
2N/A echo shells that I found on your system. Please install a
2N/A echo modern shell, or manually run the script under such a
2N/A echo shell if you do have one.
2N/A { (exit 1); exit 1; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A(eval "as_func_return () {
2N/A (exit \$1)
2N/A}
2N/Aas_func_success () {
2N/A as_func_return 0
2N/A}
2N/Aas_func_failure () {
2N/A as_func_return 1
2N/A}
2N/Aas_func_ret_success () {
2N/A return 0
2N/A}
2N/Aas_func_ret_failure () {
2N/A return 1
2N/A}
2N/A
2N/Aexitcode=0
2N/Aif as_func_success; then
2N/A :
2N/Aelse
2N/A exitcode=1
2N/A echo as_func_success failed.
2N/Afi
2N/A
2N/Aif as_func_failure; then
2N/A exitcode=1
2N/A echo as_func_failure succeeded.
2N/Afi
2N/A
2N/Aif as_func_ret_success; then
2N/A :
2N/Aelse
2N/A exitcode=1
2N/A echo as_func_ret_success failed.
2N/Afi
2N/A
2N/Aif as_func_ret_failure; then
2N/A exitcode=1
2N/A echo as_func_ret_failure succeeded.
2N/Afi
2N/A
2N/Aif ( set x; as_func_ret_success y && test x = \"\$1\" ); then
2N/A :
2N/Aelse
2N/A exitcode=1
2N/A echo positional parameters were not saved.
2N/Afi
2N/A
2N/Atest \$exitcode = 0") || {
2N/A echo No shell found that supports shell functions.
2N/A echo Please tell bug-autoconf@gnu.org about your system,
2N/A echo including any error possibly output before this message.
2N/A echo This can help us improve future autoconf versions.
2N/A echo Configuration will now proceed without shell functions.
2N/A}
2N/A
2N/A
2N/A
2N/A as_lineno_1=$LINENO
2N/A as_lineno_2=$LINENO
2N/A test "x$as_lineno_1" != "x$as_lineno_2" &&
2N/A test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2N/A
2N/A # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2N/A # uniformly replaced by the line number. The first 'sed' inserts a
2N/A # line-number line after each line using $LINENO; the second 'sed'
2N/A # does the real work. The second script uses 'N' to pair each
2N/A # line-number line with the line containing $LINENO, and appends
2N/A # trailing '-' during substitution so that $LINENO is not a special
2N/A # case at line end.
2N/A # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2N/A # scripts with optimization help from Paolo Bonzini. Blame Lee
2N/A # E. McMahon (1931-1989) for sed's syntax. :-)
2N/A sed -n '
2N/A p
2N/A /[$]LINENO/=
2N/A ' <$as_myself |
2N/A sed '
2N/A s/[$]LINENO.*/&-/
2N/A t lineno
2N/A b
2N/A :lineno
2N/A N
2N/A :loop
2N/A s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2N/A t loop
2N/A s/-\n.*//
2N/A ' >$as_me.lineno &&
2N/A chmod +x "$as_me.lineno" ||
2N/A { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2N/A { (exit 1); exit 1; }; }
2N/A
2N/A # Don't try to exec as it changes $[0], causing all sort of problems
2N/A # (the dirname of $[0] is not the place where we might find the
2N/A # original and so on. Autoconf is especially sensitive to this).
2N/A . "./$as_me.lineno"
2N/A # Exit status is that of the last command.
2N/A exit
2N/A}
2N/A
2N/A
2N/Aif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2N/A as_dirname=dirname
2N/Aelse
2N/A as_dirname=false
2N/Afi
2N/A
2N/AECHO_C= ECHO_N= ECHO_T=
2N/Acase `echo -n x` in
2N/A-n*)
2N/A case `echo 'x\c'` in
2N/A *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2N/A *) ECHO_C='\c';;
2N/A esac;;
2N/A*)
2N/A ECHO_N='-n';;
2N/Aesac
2N/Aif expr a : '\(a\)' >/dev/null 2>&1 &&
2N/A test "X`expr 00001 : '.*\(...\)'`" = X001; then
2N/A as_expr=expr
2N/Aelse
2N/A as_expr=false
2N/Afi
2N/A
2N/Arm -f conf$$ conf$$.exe conf$$.file
2N/Aif test -d conf$$.dir; then
2N/A rm -f conf$$.dir/conf$$.file
2N/Aelse
2N/A rm -f conf$$.dir
2N/A mkdir conf$$.dir 2>/dev/null
2N/Afi
2N/Aif (echo >conf$$.file) 2>/dev/null; then
2N/A if ln -s conf$$.file conf$$ 2>/dev/null; then
2N/A as_ln_s='ln -s'
2N/A # ... but there are two gotchas:
2N/A # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2N/A # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2N/A # In both cases, we have to default to `cp -p'.
2N/A ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2N/A as_ln_s='cp -p'
2N/A elif ln conf$$.file conf$$ 2>/dev/null; then
2N/A as_ln_s=ln
2N/A else
2N/A as_ln_s='cp -p'
2N/A fi
2N/Aelse
2N/A as_ln_s='cp -p'
2N/Afi
2N/Arm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2N/Armdir conf$$.dir 2>/dev/null
2N/A
2N/Aif mkdir -p . 2>/dev/null; then
2N/A as_mkdir_p=:
2N/Aelse
2N/A test -d ./-p && rmdir ./-p
2N/A as_mkdir_p=false
2N/Afi
2N/A
2N/Aif test -x / >/dev/null 2>&1; then
2N/A as_test_x='test -x'
2N/Aelse
2N/A if ls -dL / >/dev/null 2>&1; then
2N/A as_ls_L_option=L
2N/A else
2N/A as_ls_L_option=
2N/A fi
2N/A as_test_x='
2N/A eval sh -c '\''
2N/A if test -d "$1"; then
2N/A test -d "$1/.";
2N/A else
2N/A case $1 in
2N/A -*)set "./$1";;
2N/A esac;
2N/A case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
2N/A ???[sx]*):;;*)false;;esac;fi
2N/A '\'' sh
2N/A '
2N/Afi
2N/Aas_executable_p=$as_test_x
2N/A
2N/A# Sed expression to map a string onto a valid CPP name.
2N/Aas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2N/A
2N/A# Sed expression to map a string onto a valid variable name.
2N/Aas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2N/A
2N/A
2N/A
2N/Aexec 7<&0 </dev/null 6>&1
2N/A
2N/A# Name of the host.
2N/A# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
2N/A# so uname gets run too.
2N/Aac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
2N/A
2N/A#
2N/A# Initializations.
2N/A#
2N/Aac_default_prefix=/usr/local
2N/Aac_clean_files=
2N/Aac_config_libobj_dir=.
2N/ALIB@&t@OBJS=
2N/Across_compiling=no
2N/Asubdirs=
2N/AMFLAGS=
2N/AMAKEFLAGS=
2N/ASHELL=${CONFIG_SHELL-/bin/sh}
2N/A
2N/A# Identity of this package.
2N/APACKAGE_NAME='GRUB'
2N/APACKAGE_TARNAME='grub'
2N/APACKAGE_VERSION='1.99'
2N/APACKAGE_STRING='GRUB 1.99'
2N/APACKAGE_BUGREPORT='bug-grub@gnu.org'
2N/A
2N/Aac_unique_file="include/grub/dl.h"
2N/A# Factoring default headers for most tests.
2N/Aac_includes_default="\
2N/A#include <stdio.h>
2N/A#ifdef HAVE_SYS_TYPES_H
2N/A# include <sys/types.h>
2N/A#endif
2N/A#ifdef HAVE_SYS_STAT_H
2N/A# include <sys/stat.h>
2N/A#endif
2N/A#ifdef STDC_HEADERS
2N/A# include <stdlib.h>
2N/A# include <stddef.h>
2N/A#else
2N/A# ifdef HAVE_STDLIB_H
2N/A# include <stdlib.h>
2N/A# endif
2N/A#endif
2N/A#ifdef HAVE_STRING_H
2N/A# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
2N/A# include <memory.h>
2N/A# endif
2N/A# include <string.h>
2N/A#endif
2N/A#ifdef HAVE_STRINGS_H
2N/A# include <strings.h>
2N/A#endif
2N/A#ifdef HAVE_INTTYPES_H
2N/A# include <inttypes.h>
2N/A#endif
2N/A#ifdef HAVE_STDINT_H
2N/A# include <stdint.h>
2N/A#endif
2N/A#ifdef HAVE_UNISTD_H
2N/A# include <unistd.h>
2N/A#endif"
2N/A
2N/Agt_needs=
2N/Aac_func_list=
2N/Aac_header_list=
2N/Agl_fnmatch_required=POSIX
2N/Agl_getopt_required=POSIX
2N/Agl_getopt_required=POSIX
2N/Aac_subst_vars='gltests_LTLIBOBJS
2N/Agltests_LIBOBJS
2N/Agl_LTLIBOBJS
2N/Agl_LIBOBJS
2N/ALTLIBOBJS
2N/ALIB@&t@OBJS
2N/ACOND_CYGWIN_FALSE
2N/ACOND_CYGWIN_TRUE
2N/ACOND_HAVE_ASM_USCORE_FALSE
2N/ACOND_HAVE_ASM_USCORE_TRUE
2N/ACOND_ENABLE_CACHE_STATS_FALSE
2N/ACOND_ENABLE_CACHE_STATS_TRUE
2N/ACOND_ENABLE_EFIEMU_FALSE
2N/ACOND_ENABLE_EFIEMU_TRUE
2N/ACOND_APPLE_CC_FALSE
2N/ACOND_APPLE_CC_TRUE
2N/ACOND_GRUB_PE2ELF_FALSE
2N/ACOND_GRUB_PE2ELF_TRUE
2N/ACOND_HAVE_FONT_SOURCE_FALSE
2N/ACOND_HAVE_FONT_SOURCE_TRUE
2N/ACOND_GRUB_MOUNT_FALSE
2N/ACOND_GRUB_MOUNT_TRUE
2N/ACOND_GRUB_MKFONT_FALSE
2N/ACOND_GRUB_MKFONT_TRUE
2N/ACOND_GRUB_EMU_PCI_FALSE
2N/ACOND_GRUB_EMU_PCI_TRUE
2N/ACOND_GRUB_EMU_SDL_FALSE
2N/ACOND_GRUB_EMU_SDL_TRUE
2N/ACOND_GRUB_EMU_USB_FALSE
2N/ACOND_GRUB_EMU_USB_TRUE
2N/ACOND_MAN_PAGES_FALSE
2N/ACOND_MAN_PAGES_TRUE
2N/ACOND_HOST_ILLUMOS_FALSE
2N/ACOND_HOST_ILLUMOS_TRUE
2N/ACOND_HOST_SOLARIS_FALSE
2N/ACOND_HOST_SOLARIS_TRUE
2N/ACOND_HOST_KFREEBSD_FALSE
2N/ACOND_HOST_KFREEBSD_TRUE
2N/ACOND_HOST_WINDOWS_FALSE
2N/ACOND_HOST_WINDOWS_TRUE
2N/ACOND_HOST_NETBSD_FALSE
2N/ACOND_HOST_NETBSD_TRUE
2N/ACOND_HOST_LINUX_FALSE
2N/ACOND_HOST_LINUX_TRUE
2N/ACOND_HOST_HURD_FALSE
2N/ACOND_HOST_HURD_TRUE
2N/ACOND_mips_FALSE
2N/ACOND_mips_TRUE
2N/ACOND_powerpc_ieee1275_FALSE
2N/ACOND_powerpc_ieee1275_TRUE
2N/ACOND_sparc64_ieee1275_FALSE
2N/ACOND_sparc64_ieee1275_TRUE
2N/ACOND_mips_arc_FALSE
2N/ACOND_mips_arc_TRUE
2N/ACOND_mips_qemu_mips_FALSE
2N/ACOND_mips_qemu_mips_TRUE
2N/ACOND_mips_loongson_FALSE
2N/ACOND_mips_loongson_TRUE
2N/ACOND_x86_64_efi_FALSE
2N/ACOND_x86_64_efi_TRUE
2N/ACOND_i386_multiboot_FALSE
2N/ACOND_i386_multiboot_TRUE
2N/ACOND_i386_coreboot_FALSE
2N/ACOND_i386_coreboot_TRUE
2N/ACOND_i386_ieee1275_FALSE
2N/ACOND_i386_ieee1275_TRUE
2N/ACOND_i386_qemu_FALSE
2N/ACOND_i386_qemu_TRUE
2N/ACOND_ia64_efi_FALSE
2N/ACOND_ia64_efi_TRUE
2N/ACOND_i386_efi_FALSE
2N/ACOND_i386_efi_TRUE
2N/ACOND_i386_pc_FALSE
2N/ACOND_i386_pc_TRUE
2N/ACOND_emu_FALSE
2N/ACOND_emu_TRUE
2N/ANEED_REGISTER_FRAME_INFO
2N/ANEED_ENABLE_EXECUTE_STACK
2N/AEND_SYMBOL
2N/ABSS_START_SYMBOL
2N/ADATA32
2N/AADDR32
2N/AHAVE_ASM_USCORE
2N/AUSE_APPLE_CC_FIXES
2N/AGRUB_BOOT_MACHINE_LINK_ADDR
2N/Apkglibrootdir
2N/ALIBNVPAIR
2N/ALIBZFS
2N/ALIBLZMA
2N/ALIBGEOM
2N/ALIBDEVMAPPER
2N/Aenable_grub_mount
2N/Afreetype_libs
2N/Afreetype_cflags
2N/Aenable_grub_mkfont
2N/AFREETYPE
2N/Aenable_grub_emu_pci
2N/Aenable_grub_emu_usb
2N/Aenable_grub_emu_sdl
2N/ALIBPCIACCESS
2N/ALIBSDL
2N/ALIBUSB
2N/ALIBCURSES
2N/ADISK_CACHE_STATS
2N/AHOST_CCASFLAGS
2N/AHOST_CPPFLAGS
2N/AHOST_LDFLAGS
2N/AHOST_CFLAGS
2N/ATARGET_IMG_BASE_LDOPT
2N/ATARGET_IMG_CFLAGS
2N/ATARGET_IMG_LDFLAGS
2N/ATARGET_IMG_LDSCRIPT
2N/ATARGET_CCASFLAGS
2N/ATARGET_CPPFLAGS
2N/ATARGET_LDFLAGS
2N/ATARGET_CFLAGS
2N/ATARGET_MODULE_FORMAT
2N/ATARGET_SOLARIS_LD
2N/ATARGET_APPLE_CC
2N/ATARGET_OBJ2ELF
2N/ATARGET_CCAS
2N/ATARGET_CPP
2N/ATARGET_CC_USES_GAS
2N/ATARGET_AS
2N/Aenable_efiemu
2N/AOBJCONV
2N/ACOND_ld_Solaris_FALSE
2N/ACOND_ld_Solaris_TRUE
2N/AHOST_CC
2N/ANM
2N/AOBJCOPY
2N/Aac_ct_TARGET_CC
2N/ATARGET_CC
2N/ALIBGNU_LTLIBDEPS
2N/ALIBGNU_LIBDEPS
2N/Agltests_WITNESS
2N/AREPLACE_ISWCNTRL
2N/AHAVE_WCTYPE_H
2N/ANEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
2N/ANEXT_WCTYPE_H
2N/AREPLACE_ISWBLANK
2N/AHAVE_ISWBLANK
2N/AHAVE_ISWCNTRL
2N/AHAVE_WINT_T
2N/AHAVE_WCHAR_H
2N/ANEXT_AS_FIRST_DIRECTIVE_WCHAR_H
2N/ANEXT_WCHAR_H
2N/AHAVE_UNISTD_H
2N/ANEXT_AS_FIRST_DIRECTIVE_UNISTD_H
2N/ANEXT_UNISTD_H
2N/ASYSEXITS_H
2N/AHAVE_SYSEXITS_H
2N/ANEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
2N/ANEXT_SYSEXITS_H
2N/ANEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H
2N/ANEXT_SYS_WAIT_H
2N/ANEXT_AS_FIRST_DIRECTIVE_STRINGS_H
2N/ANEXT_STRINGS_H
2N/ANEXT_AS_FIRST_DIRECTIVE_STRING_H
2N/ANEXT_STRING_H
2N/AHAVE_DECL_STRNCASECMP
2N/AHAVE_STRCASECMP
2N/AHAVE_RANDOM_H
2N/ANEXT_AS_FIRST_DIRECTIVE_STDLIB_H
2N/ANEXT_STDLIB_H
2N/ANEXT_AS_FIRST_DIRECTIVE_STDIO_H
2N/ANEXT_STDIO_H
2N/AASM_SYMBOL_PREFIX
2N/ASTDINT_H
2N/AWINT_T_SUFFIX
2N/AWCHAR_T_SUFFIX
2N/ASIG_ATOMIC_T_SUFFIX
2N/ASIZE_T_SUFFIX
2N/APTRDIFF_T_SUFFIX
2N/AHAVE_SIGNED_WINT_T
2N/AHAVE_SIGNED_WCHAR_T
2N/AHAVE_SIGNED_SIG_ATOMIC_T
2N/ABITSIZEOF_WINT_T
2N/ABITSIZEOF_WCHAR_T
2N/ABITSIZEOF_SIG_ATOMIC_T
2N/ABITSIZEOF_SIZE_T
2N/ABITSIZEOF_PTRDIFF_T
2N/AHAVE_SYS_BITYPES_H
2N/AHAVE_SYS_INTTYPES_H
2N/AHAVE_STDINT_H
2N/ANEXT_AS_FIRST_DIRECTIVE_STDINT_H
2N/ANEXT_STDINT_H
2N/AHAVE_SYS_TYPES_H
2N/AHAVE_INTTYPES_H
2N/AHAVE_UNSIGNED_LONG_LONG_INT
2N/AHAVE_LONG_LONG_INT
2N/ANEXT_AS_FIRST_DIRECTIVE_STDDEF_H
2N/ANEXT_STDDEF_H
2N/ASTDDEF_H
2N/AHAVE_WCHAR_T
2N/AREPLACE_NULL
2N/AHAVE__BOOL
2N/ASTDBOOL_H
2N/AAPPLE_UNIVERSAL_BUILD
2N/AUNDEFINE_STRTOK_R
2N/AREPLACE_STRTOK_R
2N/AREPLACE_STRSIGNAL
2N/AREPLACE_STRNLEN
2N/AREPLACE_STRNDUP
2N/AREPLACE_STRNCAT
2N/AREPLACE_STRERROR
2N/AREPLACE_STRCASESTR
2N/AREPLACE_STRSTR
2N/AREPLACE_STRDUP
2N/AREPLACE_STPNCPY
2N/AREPLACE_MEMMEM
2N/AREPLACE_MEMCHR
2N/AHAVE_STRVERSCMP
2N/AHAVE_DECL_STRSIGNAL
2N/AHAVE_DECL_STRTOK_R
2N/AHAVE_STRCASESTR
2N/AHAVE_STRSEP
2N/AHAVE_STRPBRK
2N/AHAVE_DECL_STRNLEN
2N/AHAVE_DECL_STRNDUP
2N/AHAVE_DECL_STRDUP
2N/AHAVE_STRCHRNUL
2N/AHAVE_STPNCPY
2N/AHAVE_STPCPY
2N/AHAVE_RAWMEMCHR
2N/AHAVE_DECL_MEMRCHR
2N/AHAVE_MEMPCPY
2N/AHAVE_DECL_MEMMEM
2N/AHAVE_MEMCHR
2N/AHAVE_MBSLEN
2N/AGNULIB_STRVERSCMP
2N/AGNULIB_STRSIGNAL
2N/AGNULIB_STRERROR
2N/AGNULIB_MBSTOK_R
2N/AGNULIB_MBSSEP
2N/AGNULIB_MBSSPN
2N/AGNULIB_MBSPBRK
2N/AGNULIB_MBSCSPN
2N/AGNULIB_MBSCASESTR
2N/AGNULIB_MBSPCASECMP
2N/AGNULIB_MBSNCASECMP
2N/AGNULIB_MBSCASECMP
2N/AGNULIB_MBSSTR
2N/AGNULIB_MBSRCHR
2N/AGNULIB_MBSCHR
2N/AGNULIB_MBSNLEN
2N/AGNULIB_MBSLEN
2N/AGNULIB_STRTOK_R
2N/AGNULIB_STRCASESTR
2N/AGNULIB_STRSTR
2N/AGNULIB_STRSEP
2N/AGNULIB_STRPBRK
2N/AGNULIB_STRNLEN
2N/AGNULIB_STRNDUP
2N/AGNULIB_STRNCAT
2N/AGNULIB_STRDUP
2N/AGNULIB_STRCHRNUL
2N/AGNULIB_STPNCPY
2N/AGNULIB_STPCPY
2N/AGNULIB_RAWMEMCHR
2N/AGNULIB_MEMRCHR
2N/AGNULIB_MEMPCPY
2N/AGNULIB_MEMMEM
2N/AGNULIB_MEMCHR
2N/ALOCALE_FR_UTF8
2N/ALOCALE_ZH_CN
2N/ALOCALE_JA
2N/AREPLACE_UNSETENV
2N/AREPLACE_STRTOD
2N/AREPLACE_SETENV
2N/AREPLACE_REALPATH
2N/AREPLACE_REALLOC
2N/AREPLACE_PUTENV
2N/AREPLACE_MKSTEMP
2N/AREPLACE_MALLOC
2N/AREPLACE_CANONICALIZE_FILE_NAME
2N/AREPLACE_CALLOC
2N/AHAVE_UNSETENV
2N/AHAVE_UNLOCKPT
2N/AHAVE_SYS_LOADAVG_H
2N/AHAVE_STRUCT_RANDOM_DATA
2N/AHAVE_STRTOULL
2N/AHAVE_STRTOLL
2N/AHAVE_STRTOD
2N/AHAVE_SETENV
2N/AHAVE_RPMATCH
2N/AHAVE_REALPATH
2N/AHAVE_RANDOM_R
2N/AHAVE_PTSNAME
2N/AHAVE_MKSTEMPS
2N/AHAVE_MKSTEMP
2N/AHAVE_MKOSTEMPS
2N/AHAVE_MKOSTEMP
2N/AHAVE_MKDTEMP
2N/AHAVE_GRANTPT
2N/AHAVE_GETSUBOPT
2N/AHAVE_DECL_GETLOADAVG
2N/AHAVE_CANONICALIZE_FILE_NAME
2N/AHAVE_ATOLL
2N/AHAVE__EXIT
2N/AGNULIB_UNSETENV
2N/AGNULIB_UNLOCKPT
2N/AGNULIB_STRTOULL
2N/AGNULIB_STRTOLL
2N/AGNULIB_STRTOD
2N/AGNULIB_SETENV
2N/AGNULIB_RPMATCH
2N/AGNULIB_REALPATH
2N/AGNULIB_REALLOC_POSIX
2N/AGNULIB_RANDOM_R
2N/AGNULIB_PUTENV
2N/AGNULIB_PTSNAME
2N/AGNULIB_MKSTEMPS
2N/AGNULIB_MKSTEMP
2N/AGNULIB_MKOSTEMPS
2N/AGNULIB_MKOSTEMP
2N/AGNULIB_MKDTEMP
2N/AGNULIB_MALLOC_POSIX
2N/AGNULIB_GRANTPT
2N/AGNULIB_GETSUBOPT
2N/AGNULIB_GETLOADAVG
2N/AGNULIB_CANONICALIZE_FILE_NAME
2N/AGNULIB_CALLOC_POSIX
2N/AGNULIB_ATOLL
2N/AGNULIB__EXIT
2N/ALOCALCHARSET_TESTS_ENVIRONMENT
2N/AGLIBC21
2N/AHAVE_LANGINFO_YESEXPR
2N/AHAVE_LANGINFO_ERA
2N/AHAVE_LANGINFO_T_FMT_AMPM
2N/AHAVE_LANGINFO_CODESET
2N/AHAVE_LANGINFO_H
2N/ANEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
2N/ANEXT_LANGINFO_H
2N/AREPLACE_NL_LANGINFO
2N/AHAVE_NL_LANGINFO
2N/AGNULIB_NL_LANGINFO
2N/AHAVE_GETOPT_H
2N/ANEXT_AS_FIRST_DIRECTIVE_GETOPT_H
2N/ANEXT_GETOPT_H
2N/AUNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
2N/AUNISTD_H_HAVE_WINSOCK2_H
2N/AREPLACE_WRITE
2N/AREPLACE_USLEEP
2N/AREPLACE_UNLINKAT
2N/AREPLACE_UNLINK
2N/AREPLACE_TTYNAME_R
2N/AREPLACE_SYMLINK
2N/AREPLACE_SLEEP
2N/AREPLACE_RMDIR
2N/AREPLACE_READLINK
2N/AREPLACE_PWRITE
2N/AREPLACE_PREAD
2N/AREPLACE_LSEEK
2N/AREPLACE_LINKAT
2N/AREPLACE_LINK
2N/AREPLACE_LCHOWN
2N/AREPLACE_GETPAGESIZE
2N/AREPLACE_GETGROUPS
2N/AREPLACE_GETCWD
2N/AREPLACE_FCHOWNAT
2N/AREPLACE_DUP2
2N/AREPLACE_DUP
2N/AREPLACE_CLOSE
2N/AREPLACE_CHOWN
2N/AHAVE_SYS_PARAM_H
2N/AHAVE_OS_H
2N/AHAVE_DECL_GETUSERSHELL
2N/AHAVE_DECL_GETPAGESIZE
2N/AHAVE_DECL_GETLOGIN_R
2N/AHAVE_DECL_ENVIRON
2N/AHAVE_USLEEP
2N/AHAVE_UNLINKAT
2N/AHAVE_TTYNAME_R
2N/AHAVE_SYMLINKAT
2N/AHAVE_SYMLINK
2N/AHAVE_SLEEP
2N/AHAVE_READLINKAT
2N/AHAVE_READLINK
2N/AHAVE_PWRITE
2N/AHAVE_PREAD
2N/AHAVE_PIPE2
2N/AHAVE_LINKAT
2N/AHAVE_LINK
2N/AHAVE_LCHOWN
2N/AHAVE_GETPAGESIZE
2N/AHAVE_GETLOGIN
2N/AHAVE_GETHOSTNAME
2N/AHAVE_GETGROUPS
2N/AHAVE_GETDTABLESIZE
2N/AHAVE_GETDOMAINNAME
2N/AHAVE_FTRUNCATE
2N/AHAVE_FSYNC
2N/AHAVE_FCHOWNAT
2N/AHAVE_FCHDIR
2N/AHAVE_FACCESSAT
2N/AHAVE_EUIDACCESS
2N/AHAVE_DUP3
2N/AHAVE_DUP2
2N/AHAVE_CHOWN
2N/AGNULIB_WRITE
2N/AGNULIB_USLEEP
2N/AGNULIB_UNLINKAT
2N/AGNULIB_UNLINK
2N/AGNULIB_UNISTD_H_SIGPIPE
2N/AGNULIB_UNISTD_H_GETOPT
2N/AGNULIB_TTYNAME_R
2N/AGNULIB_SYMLINKAT
2N/AGNULIB_SYMLINK
2N/AGNULIB_SLEEP
2N/AGNULIB_RMDIR
2N/AGNULIB_READLINKAT
2N/AGNULIB_READLINK
2N/AGNULIB_PWRITE
2N/AGNULIB_PREAD
2N/AGNULIB_PIPE2
2N/AGNULIB_LSEEK
2N/AGNULIB_LINKAT
2N/AGNULIB_LINK
2N/AGNULIB_LCHOWN
2N/AGNULIB_GETUSERSHELL
2N/AGNULIB_GETPAGESIZE
2N/AGNULIB_GETLOGIN_R
2N/AGNULIB_GETLOGIN
2N/AGNULIB_GETHOSTNAME
2N/AGNULIB_GETGROUPS
2N/AGNULIB_GETDTABLESIZE
2N/AGNULIB_GETDOMAINNAME
2N/AGNULIB_GETCWD
2N/AGNULIB_FTRUNCATE
2N/AGNULIB_FSYNC
2N/AGNULIB_FCHOWNAT
2N/AGNULIB_FCHDIR
2N/AGNULIB_FACCESSAT
2N/AGNULIB_EUIDACCESS
2N/AGNULIB_ENVIRON
2N/AGNULIB_DUP3
2N/AGNULIB_DUP2
2N/AGNULIB_CLOSE
2N/AGNULIB_CHOWN
2N/AREPLACE_VSPRINTF
2N/AREPLACE_VSNPRINTF
2N/AREPLACE_VPRINTF
2N/AREPLACE_VFPRINTF
2N/AREPLACE_VDPRINTF
2N/AREPLACE_VASPRINTF
2N/AREPLACE_TMPFILE
2N/AREPLACE_STDIO_WRITE_FUNCS
2N/AREPLACE_SPRINTF
2N/AREPLACE_SNPRINTF
2N/AREPLACE_RENAMEAT
2N/AREPLACE_RENAME
2N/AREPLACE_REMOVE
2N/AREPLACE_PRINTF
2N/AREPLACE_POPEN
2N/AREPLACE_PERROR
2N/AREPLACE_OBSTACK_PRINTF
2N/AREPLACE_GETLINE
2N/AREPLACE_GETDELIM
2N/AREPLACE_FTELLO
2N/AREPLACE_FTELL
2N/AREPLACE_FSEEKO
2N/AREPLACE_FSEEK
2N/AREPLACE_FREOPEN
2N/AREPLACE_FPURGE
2N/AREPLACE_FPRINTF
2N/AREPLACE_FOPEN
2N/AREPLACE_FFLUSH
2N/AREPLACE_FCLOSE
2N/AREPLACE_DPRINTF
2N/AHAVE_VDPRINTF
2N/AHAVE_VASPRINTF
2N/AHAVE_RENAMEAT
2N/AHAVE_FTELLO
2N/AHAVE_FSEEKO
2N/AHAVE_DPRINTF
2N/AHAVE_DECL_VSNPRINTF
2N/AHAVE_DECL_SNPRINTF
2N/AHAVE_DECL_OBSTACK_PRINTF
2N/AHAVE_DECL_GETLINE
2N/AHAVE_DECL_GETDELIM
2N/AHAVE_DECL_FPURGE
2N/AGNULIB_VSPRINTF_POSIX
2N/AGNULIB_VSNPRINTF
2N/AGNULIB_VPRINTF_POSIX
2N/AGNULIB_VPRINTF
2N/AGNULIB_VFPRINTF_POSIX
2N/AGNULIB_VFPRINTF
2N/AGNULIB_VDPRINTF
2N/AGNULIB_VASPRINTF
2N/AGNULIB_TMPFILE
2N/AGNULIB_STDIO_H_SIGPIPE
2N/AGNULIB_SPRINTF_POSIX
2N/AGNULIB_SNPRINTF
2N/AGNULIB_RENAMEAT
2N/AGNULIB_RENAME
2N/AGNULIB_REMOVE
2N/AGNULIB_PUTS
2N/AGNULIB_PUTCHAR
2N/AGNULIB_PUTC
2N/AGNULIB_PRINTF_POSIX
2N/AGNULIB_PRINTF
2N/AGNULIB_POPEN
2N/AGNULIB_PERROR
2N/AGNULIB_OBSTACK_PRINTF_POSIX
2N/AGNULIB_OBSTACK_PRINTF
2N/AGNULIB_GETLINE
2N/AGNULIB_GETDELIM
2N/AGNULIB_FWRITE
2N/AGNULIB_FTELLO
2N/AGNULIB_FTELL
2N/AGNULIB_FSEEKO
2N/AGNULIB_FSEEK
2N/AGNULIB_FREOPEN
2N/AGNULIB_FPUTS
2N/AGNULIB_FPUTC
2N/AGNULIB_FPURGE
2N/AGNULIB_FPRINTF_POSIX
2N/AGNULIB_FPRINTF
2N/AGNULIB_FOPEN
2N/AGNULIB_FFLUSH
2N/AGNULIB_FCLOSE
2N/AGNULIB_DPRINTF
2N/AFNMATCH_H
2N/AFLOAT_H
2N/ANEXT_AS_FIRST_DIRECTIVE_FLOAT_H
2N/ANEXT_FLOAT_H
2N/AEOVERFLOW_VALUE
2N/AEOVERFLOW_HIDDEN
2N/AENOLINK_VALUE
2N/AENOLINK_HIDDEN
2N/AEMULTIHOP_VALUE
2N/AEMULTIHOP_HIDDEN
2N/AERRNO_H
2N/ANEXT_AS_FIRST_DIRECTIVE_ERRNO_H
2N/ANEXT_ERRNO_H
2N/APRAGMA_SYSTEM_HEADER
2N/AINCLUDE_NEXT_AS_FIRST_DIRECTIVE
2N/AINCLUDE_NEXT
2N/ALOCALE_FR
2N/AREPLACE_WCWIDTH
2N/AREPLACE_WCSNRTOMBS
2N/AREPLACE_WCSRTOMBS
2N/AREPLACE_WCRTOMB
2N/AREPLACE_MBSNRTOWCS
2N/AREPLACE_MBSRTOWCS
2N/AREPLACE_MBRLEN
2N/AREPLACE_MBRTOWC
2N/AREPLACE_MBSINIT
2N/AREPLACE_WCTOB
2N/AREPLACE_BTOWC
2N/AREPLACE_MBSTATE_T
2N/AHAVE_DECL_WCWIDTH
2N/AHAVE_DECL_WCTOB
2N/AHAVE_WCSNRTOMBS
2N/AHAVE_WCSRTOMBS
2N/AHAVE_WCRTOMB
2N/AHAVE_MBSNRTOWCS
2N/AHAVE_MBSRTOWCS
2N/AHAVE_MBRLEN
2N/AHAVE_MBRTOWC
2N/AHAVE_MBSINIT
2N/AHAVE_BTOWC
2N/AGNULIB_WCWIDTH
2N/AGNULIB_WCSNRTOMBS
2N/AGNULIB_WCSRTOMBS
2N/AGNULIB_WCRTOMB
2N/AGNULIB_MBSNRTOWCS
2N/AGNULIB_MBSRTOWCS
2N/AGNULIB_MBRLEN
2N/AGNULIB_MBRTOWC
2N/AGNULIB_MBSINIT
2N/AGNULIB_WCTOB
2N/AGNULIB_BTOWC
2N/AGETOPT_H
2N/AALLOCA_H
2N/AALLOCA
2N/AGL_COND_LIBTOOL_FALSE
2N/AGL_COND_LIBTOOL_TRUE
2N/ABUILD_CC
2N/ALIBUTIL
2N/AHELP2MAN
2N/APOSUB
2N/ALTLIBINTL
2N/ALIBINTL
2N/AINTLLIBS
2N/ALTLIBICONV
2N/ALIBICONV
2N/AINTL_MACOSX_LIBS
2N/AXGETTEXT_EXTRA_OPTIONS
2N/AMSGMERGE
2N/AXGETTEXT_015
2N/AXGETTEXT
2N/AGMSGFMT_015
2N/AMSGFMT_015
2N/AGMSGFMT
2N/AMSGFMT
2N/AGETTEXT_MACRO_VERSION
2N/AUSE_NLS
2N/Aam__fastdepCCAS_FALSE
2N/Aam__fastdepCCAS_TRUE
2N/ACCASDEPMODE
2N/ACCASFLAGS
2N/ACCAS
2N/AEGREP
2N/AGREP
2N/ACPP
2N/ALN_S
2N/AYFLAGS
2N/ALEXLIB
2N/Aam__fastdepCC_FALSE
2N/Aam__fastdepCC_TRUE
2N/ACCDEPMODE
2N/AAMDEPBACKSLASH
2N/AAMDEP_FALSE
2N/AAMDEP_TRUE
2N/Aam__quote
2N/Aam__include
2N/ADEPDIR
2N/AOBJEXT
2N/AEXEEXT
2N/Aac_ct_CC
2N/ACPPFLAGS
2N/ALDFLAGS
2N/ACFLAGS
2N/ACC
2N/ALEX_OUTPUT_ROOT
2N/ALEX
2N/ARANLIB
2N/AFONT_SOURCE
2N/AYACC
2N/ACMP
2N/Agrubdirname
2N/Abootdirname
2N/Aplatform
2N/Ahost_kernel
2N/Aam__untar
2N/Aam__tar
2N/AAMTAR
2N/Aam__leading_dot
2N/ASET_MAKE
2N/AAWK
2N/Amkdir_p
2N/AMKDIR_P
2N/AINSTALL_STRIP_PROGRAM
2N/ASTRIP
2N/Ainstall_sh
2N/AMAKEINFO
2N/AAUTOHEADER
2N/AAUTOMAKE
2N/AAUTOCONF
2N/AACLOCAL
2N/AVERSION
2N/APACKAGE
2N/ACYGPATH_W
2N/Aam__isrc
2N/AINSTALL_DATA
2N/AINSTALL_SCRIPT
2N/AINSTALL_PROGRAM
2N/Atarget_os
2N/Atarget_vendor
2N/Atarget_cpu
2N/Atarget
2N/Ahost_os
2N/Ahost_vendor
2N/Ahost_cpu
2N/Ahost
2N/Abuild_os
2N/Abuild_vendor
2N/Abuild_cpu
2N/Abuild
2N/Atarget_alias
2N/Ahost_alias
2N/Abuild_alias
2N/ALIBS
2N/AECHO_T
2N/AECHO_N
2N/AECHO_C
2N/ADEFS
2N/Amandir
2N/Alocaledir
2N/Alibdir
2N/Apsdir
2N/Apdfdir
2N/Advidir
2N/Ahtmldir
2N/Ainfodir
2N/Adocdir
2N/Aoldincludedir
2N/Aincludedir
2N/Alocalstatedir
2N/Asharedstatedir
2N/Asysconfdir
2N/Adatadir
2N/Adatarootdir
2N/Alibexecdir
2N/Asbindir
2N/Abindir
2N/Aprogram_transform_name
2N/Aprefix
2N/Aexec_prefix
2N/APACKAGE_BUGREPORT
2N/APACKAGE_STRING
2N/APACKAGE_VERSION
2N/APACKAGE_TARNAME
2N/APACKAGE_NAME
2N/APATH_SEPARATOR
2N/ASHELL'
2N/Aac_subst_files=''
2N/Aac_user_opts='
2N/Aenable_option_checking
2N/Awith_platform
2N/Aenable_dependency_tracking
2N/Aenable_nls
2N/Awith_gnu_ld
2N/Aenable_rpath
2N/Awith_libiconv_prefix
2N/Awith_libintl_prefix
2N/Aenable_largefile
2N/Awith_included_regex
2N/Aenable_efiemu
2N/Aenable_werror
2N/Aenable_mm_debug
2N/Aenable_cache_stats
2N/Aenable_grub_emu_usb
2N/Aenable_grub_emu_sdl
2N/Aenable_grub_emu_pci
2N/Aenable_grub_mkfont
2N/Aenable_grub_mount
2N/Aenable_device_mapper
2N/A'
2N/A ac_precious_vars='build_alias
2N/Ahost_alias
2N/Atarget_alias
2N/ACC
2N/ACFLAGS
2N/ALDFLAGS
2N/ALIBS
2N/ACPPFLAGS
2N/AYACC
2N/AYFLAGS
2N/ACPP
2N/ACCAS
2N/ACCASFLAGS'
2N/A
2N/A
2N/A# Initialize some variables set by options.
2N/Aac_init_help=
2N/Aac_init_version=false
2N/Aac_unrecognized_opts=
2N/Aac_unrecognized_sep=
2N/A# The variables have the same names as the options, with
2N/A# dashes changed to underlines.
2N/Acache_file=/dev/null
2N/Aexec_prefix=NONE
2N/Ano_create=
2N/Ano_recursion=
2N/Aprefix=NONE
2N/Aprogram_prefix=NONE
2N/Aprogram_suffix=NONE
2N/Aprogram_transform_name=s,x,x,
2N/Asilent=
2N/Asite=
2N/Asrcdir=
2N/Averbose=
2N/Ax_includes=NONE
2N/Ax_libraries=NONE
2N/A
2N/A# Installation directory options.
2N/A# These are left unexpanded so users can "make install exec_prefix=/foo"
2N/A# and all the variables that are supposed to be based on exec_prefix
2N/A# by default will actually change.
2N/A# Use braces instead of parens because sh, perl, etc. also accept them.
2N/A# (The list follows the same order as the GNU Coding Standards.)
2N/Abindir='${exec_prefix}/bin'
2N/Asbindir='${exec_prefix}/sbin'
2N/Alibexecdir='${exec_prefix}/libexec'
2N/Adatarootdir='${prefix}/share'
2N/Adatadir='${datarootdir}'
2N/Asysconfdir='${prefix}/etc'
2N/Asharedstatedir='${prefix}/com'
2N/Alocalstatedir='${prefix}/var'
2N/Aincludedir='${prefix}/include'
2N/Aoldincludedir='/usr/include'
2N/Adocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
2N/Ainfodir='${datarootdir}/info'
2N/Ahtmldir='${docdir}'
2N/Advidir='${docdir}'
2N/Apdfdir='${docdir}'
2N/Apsdir='${docdir}'
2N/Alibdir='${exec_prefix}/lib'
2N/Alocaledir='${datarootdir}/locale'
2N/Amandir='${datarootdir}/man'
2N/A
2N/Aac_prev=
2N/Aac_dashdash=
2N/Afor ac_option
2N/Ado
2N/A # If the previous option needs an argument, assign it.
2N/A if test -n "$ac_prev"; then
2N/A eval $ac_prev=\$ac_option
2N/A ac_prev=
2N/A continue
2N/A fi
2N/A
2N/A case $ac_option in
2N/A *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
2N/A *) ac_optarg=yes ;;
2N/A esac
2N/A
2N/A # Accept the important Cygnus configure options, so we can diagnose typos.
2N/A
2N/A case $ac_dashdash$ac_option in
2N/A --)
2N/A ac_dashdash=yes ;;
2N/A
2N/A -bindir | --bindir | --bindi | --bind | --bin | --bi)
2N/A ac_prev=bindir ;;
2N/A -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
2N/A bindir=$ac_optarg ;;
2N/A
2N/A -build | --build | --buil | --bui | --bu)
2N/A ac_prev=build_alias ;;
2N/A -build=* | --build=* | --buil=* | --bui=* | --bu=*)
2N/A build_alias=$ac_optarg ;;
2N/A
2N/A -cache-file | --cache-file | --cache-fil | --cache-fi \
2N/A | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
2N/A ac_prev=cache_file ;;
2N/A -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
2N/A | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
2N/A cache_file=$ac_optarg ;;
2N/A
2N/A --config-cache | -C)
2N/A cache_file=config.cache ;;
2N/A
2N/A -datadir | --datadir | --datadi | --datad)
2N/A ac_prev=datadir ;;
2N/A -datadir=* | --datadir=* | --datadi=* | --datad=*)
2N/A datadir=$ac_optarg ;;
2N/A
2N/A -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
2N/A | --dataroo | --dataro | --datar)
2N/A ac_prev=datarootdir ;;
2N/A -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
2N/A | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
2N/A datarootdir=$ac_optarg ;;
2N/A
2N/A -disable-* | --disable-*)
2N/A ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
2N/A # Reject names that are not valid shell variable names.
2N/A expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2N/A { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
2N/A { (exit 1); exit 1; }; }
2N/A ac_useropt_orig=$ac_useropt
2N/A ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2N/A case $ac_user_opts in
2N/A *"
2N/A"enable_$ac_useropt"
2N/A"*) ;;
2N/A *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
2N/A ac_unrecognized_sep=', ';;
2N/A esac
2N/A eval enable_$ac_useropt=no ;;
2N/A
2N/A -docdir | --docdir | --docdi | --doc | --do)
2N/A ac_prev=docdir ;;
2N/A -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
2N/A docdir=$ac_optarg ;;
2N/A
2N/A -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
2N/A ac_prev=dvidir ;;
2N/A -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
2N/A dvidir=$ac_optarg ;;
2N/A
2N/A -enable-* | --enable-*)
2N/A ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
2N/A # Reject names that are not valid shell variable names.
2N/A expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2N/A { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
2N/A { (exit 1); exit 1; }; }
2N/A ac_useropt_orig=$ac_useropt
2N/A ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2N/A case $ac_user_opts in
2N/A *"
2N/A"enable_$ac_useropt"
2N/A"*) ;;
2N/A *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
2N/A ac_unrecognized_sep=', ';;
2N/A esac
2N/A eval enable_$ac_useropt=\$ac_optarg ;;
2N/A
2N/A -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
2N/A | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
2N/A | --exec | --exe | --ex)
2N/A ac_prev=exec_prefix ;;
2N/A -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
2N/A | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
2N/A | --exec=* | --exe=* | --ex=*)
2N/A exec_prefix=$ac_optarg ;;
2N/A
2N/A -gas | --gas | --ga | --g)
2N/A # Obsolete; use --with-gas.
2N/A with_gas=yes ;;
2N/A
2N/A -help | --help | --hel | --he | -h)
2N/A ac_init_help=long ;;
2N/A -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
2N/A ac_init_help=recursive ;;
2N/A -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
2N/A ac_init_help=short ;;
2N/A
2N/A -host | --host | --hos | --ho)
2N/A ac_prev=host_alias ;;
2N/A -host=* | --host=* | --hos=* | --ho=*)
2N/A host_alias=$ac_optarg ;;
2N/A
2N/A -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
2N/A ac_prev=htmldir ;;
2N/A -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
2N/A | --ht=*)
2N/A htmldir=$ac_optarg ;;
2N/A
2N/A -includedir | --includedir | --includedi | --included | --include \
2N/A | --includ | --inclu | --incl | --inc)
2N/A ac_prev=includedir ;;
2N/A -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
2N/A | --includ=* | --inclu=* | --incl=* | --inc=*)
2N/A includedir=$ac_optarg ;;
2N/A
2N/A -infodir | --infodir | --infodi | --infod | --info | --inf)
2N/A ac_prev=infodir ;;
2N/A -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
2N/A infodir=$ac_optarg ;;
2N/A
2N/A -libdir | --libdir | --libdi | --libd)
2N/A ac_prev=libdir ;;
2N/A -libdir=* | --libdir=* | --libdi=* | --libd=*)
2N/A libdir=$ac_optarg ;;
2N/A
2N/A -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
2N/A | --libexe | --libex | --libe)
2N/A ac_prev=libexecdir ;;
2N/A -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
2N/A | --libexe=* | --libex=* | --libe=*)
2N/A libexecdir=$ac_optarg ;;
2N/A
2N/A -localedir | --localedir | --localedi | --localed | --locale)
2N/A ac_prev=localedir ;;
2N/A -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
2N/A localedir=$ac_optarg ;;
2N/A
2N/A -localstatedir | --localstatedir | --localstatedi | --localstated \
2N/A | --localstate | --localstat | --localsta | --localst | --locals)
2N/A ac_prev=localstatedir ;;
2N/A -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
2N/A | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
2N/A localstatedir=$ac_optarg ;;
2N/A
2N/A -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
2N/A ac_prev=mandir ;;
2N/A -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
2N/A mandir=$ac_optarg ;;
2N/A
2N/A -nfp | --nfp | --nf)
2N/A # Obsolete; use --without-fp.
2N/A with_fp=no ;;
2N/A
2N/A -no-create | --no-create | --no-creat | --no-crea | --no-cre \
2N/A | --no-cr | --no-c | -n)
2N/A no_create=yes ;;
2N/A
2N/A -no-recursion | --no-recursion | --no-recursio | --no-recursi \
2N/A | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
2N/A no_recursion=yes ;;
2N/A
2N/A -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2N/A | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2N/A | --oldin | --oldi | --old | --ol | --o)
2N/A ac_prev=oldincludedir ;;
2N/A -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2N/A | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2N/A | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2N/A oldincludedir=$ac_optarg ;;
2N/A
2N/A -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2N/A ac_prev=prefix ;;
2N/A -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2N/A prefix=$ac_optarg ;;
2N/A
2N/A -program-prefix | --program-prefix | --program-prefi | --program-pref \
2N/A | --program-pre | --program-pr | --program-p)
2N/A ac_prev=program_prefix ;;
2N/A -program-prefix=* | --program-prefix=* | --program-prefi=* \
2N/A | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2N/A program_prefix=$ac_optarg ;;
2N/A
2N/A -program-suffix | --program-suffix | --program-suffi | --program-suff \
2N/A | --program-suf | --program-su | --program-s)
2N/A ac_prev=program_suffix ;;
2N/A -program-suffix=* | --program-suffix=* | --program-suffi=* \
2N/A | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2N/A program_suffix=$ac_optarg ;;
2N/A
2N/A -program-transform-name | --program-transform-name \
2N/A | --program-transform-nam | --program-transform-na \
2N/A | --program-transform-n | --program-transform- \
2N/A | --program-transform | --program-transfor \
2N/A | --program-transfo | --program-transf \
2N/A | --program-trans | --program-tran \
2N/A | --progr-tra | --program-tr | --program-t)
2N/A ac_prev=program_transform_name ;;
2N/A -program-transform-name=* | --program-transform-name=* \
2N/A | --program-transform-nam=* | --program-transform-na=* \
2N/A | --program-transform-n=* | --program-transform-=* \
2N/A | --program-transform=* | --program-transfor=* \
2N/A | --program-transfo=* | --program-transf=* \
2N/A | --program-trans=* | --program-tran=* \
2N/A | --progr-tra=* | --program-tr=* | --program-t=*)
2N/A program_transform_name=$ac_optarg ;;
2N/A
2N/A -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2N/A ac_prev=pdfdir ;;
2N/A -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2N/A pdfdir=$ac_optarg ;;
2N/A
2N/A -psdir | --psdir | --psdi | --psd | --ps)
2N/A ac_prev=psdir ;;
2N/A -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2N/A psdir=$ac_optarg ;;
2N/A
2N/A -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2N/A | -silent | --silent | --silen | --sile | --sil)
2N/A silent=yes ;;
2N/A
2N/A -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2N/A ac_prev=sbindir ;;
2N/A -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2N/A | --sbi=* | --sb=*)
2N/A sbindir=$ac_optarg ;;
2N/A
2N/A -sharedstatedir | --sharedstatedir | --sharedstatedi \
2N/A | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2N/A | --sharedst | --shareds | --shared | --share | --shar \
2N/A | --sha | --sh)
2N/A ac_prev=sharedstatedir ;;
2N/A -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2N/A | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2N/A | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2N/A | --sha=* | --sh=*)
2N/A sharedstatedir=$ac_optarg ;;
2N/A
2N/A -site | --site | --sit)
2N/A ac_prev=site ;;
2N/A -site=* | --site=* | --sit=*)
2N/A site=$ac_optarg ;;
2N/A
2N/A -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2N/A ac_prev=srcdir ;;
2N/A -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2N/A srcdir=$ac_optarg ;;
2N/A
2N/A -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2N/A | --syscon | --sysco | --sysc | --sys | --sy)
2N/A ac_prev=sysconfdir ;;
2N/A -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2N/A | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2N/A sysconfdir=$ac_optarg ;;
2N/A
2N/A -target | --target | --targe | --targ | --tar | --ta | --t)
2N/A ac_prev=target_alias ;;
2N/A -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2N/A target_alias=$ac_optarg ;;
2N/A
2N/A -v | -verbose | --verbose | --verbos | --verbo | --verb)
2N/A verbose=yes ;;
2N/A
2N/A -version | --version | --versio | --versi | --vers | -V)
2N/A ac_init_version=: ;;
2N/A
2N/A -with-* | --with-*)
2N/A ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2N/A # Reject names that are not valid shell variable names.
2N/A expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2N/A { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2N/A { (exit 1); exit 1; }; }
2N/A ac_useropt_orig=$ac_useropt
2N/A ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2N/A case $ac_user_opts in
2N/A *"
2N/A"with_$ac_useropt"
2N/A"*) ;;
2N/A *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2N/A ac_unrecognized_sep=', ';;
2N/A esac
2N/A eval with_$ac_useropt=\$ac_optarg ;;
2N/A
2N/A -without-* | --without-*)
2N/A ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2N/A # Reject names that are not valid shell variable names.
2N/A expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2N/A { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
2N/A { (exit 1); exit 1; }; }
2N/A ac_useropt_orig=$ac_useropt
2N/A ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2N/A case $ac_user_opts in
2N/A *"
2N/A"with_$ac_useropt"
2N/A"*) ;;
2N/A *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2N/A ac_unrecognized_sep=', ';;
2N/A esac
2N/A eval with_$ac_useropt=no ;;
2N/A
2N/A --x)
2N/A # Obsolete; use --with-x.
2N/A with_x=yes ;;
2N/A
2N/A -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2N/A | --x-incl | --x-inc | --x-in | --x-i)
2N/A ac_prev=x_includes ;;
2N/A -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2N/A | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2N/A x_includes=$ac_optarg ;;
2N/A
2N/A -x-libraries | --x-libraries | --x-librarie | --x-librari \
2N/A | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2N/A ac_prev=x_libraries ;;
2N/A -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2N/A | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2N/A x_libraries=$ac_optarg ;;
2N/A
2N/A -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
2N/ATry \`$0 --help' for more information." >&2
2N/A { (exit 1); exit 1; }; }
2N/A ;;
2N/A
2N/A *=*)
2N/A ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2N/A # Reject names that are not valid shell variable names.
2N/A expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
2N/A { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
2N/A { (exit 1); exit 1; }; }
2N/A eval $ac_envvar=\$ac_optarg
2N/A export $ac_envvar ;;
2N/A
2N/A *)
2N/A # FIXME: should be removed in autoconf 3.0.
2N/A $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2N/A expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2N/A $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2N/A : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2N/A ;;
2N/A
2N/A esac
2N/Adone
2N/A
2N/Aif test -n "$ac_prev"; then
2N/A ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2N/A { $as_echo "$as_me: error: missing argument to $ac_option" >&2
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/Aif test -n "$ac_unrecognized_opts"; then
2N/A case $enable_option_checking in
2N/A no) ;;
2N/A fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
2N/A { (exit 1); exit 1; }; } ;;
2N/A *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2N/A esac
2N/Afi
2N/A
2N/A# Check all directory arguments for consistency.
2N/Afor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2N/A datadir sysconfdir sharedstatedir localstatedir includedir \
2N/A oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2N/A libdir localedir mandir
2N/Ado
2N/A eval ac_val=\$$ac_var
2N/A # Remove trailing slashes.
2N/A case $ac_val in
2N/A */ )
2N/A ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2N/A eval $ac_var=\$ac_val;;
2N/A esac
2N/A # Be sure to have absolute directory names.
2N/A case $ac_val in
2N/A [\\/$]* | ?:[\\/]* ) continue;;
2N/A NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2N/A esac
2N/A { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
2N/A { (exit 1); exit 1; }; }
2N/Adone
2N/A
2N/A# There might be people who depend on the old broken behavior: `$host'
2N/A# used to hold the argument of --host etc.
2N/A# FIXME: To remove some day.
2N/Abuild=$build_alias
2N/Ahost=$host_alias
2N/Atarget=$target_alias
2N/A
2N/A# FIXME: To remove some day.
2N/Aif test "x$host_alias" != x; then
2N/A if test "x$build_alias" = x; then
2N/A cross_compiling=maybe
2N/A $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2N/A If a cross compiler is detected then cross compile mode will be used." >&2
2N/A elif test "x$build_alias" != "x$host_alias"; then
2N/A cross_compiling=yes
2N/A fi
2N/Afi
2N/A
2N/Aac_tool_prefix=
2N/Atest -n "$host_alias" && ac_tool_prefix=$host_alias-
2N/A
2N/Atest "$silent" = yes && exec 6>/dev/null
2N/A
2N/A
2N/Aac_pwd=`pwd` && test -n "$ac_pwd" &&
2N/Aac_ls_di=`ls -di .` &&
2N/Aac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2N/A { $as_echo "$as_me: error: working directory cannot be determined" >&2
2N/A { (exit 1); exit 1; }; }
2N/Atest "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2N/A { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
2N/A { (exit 1); exit 1; }; }
2N/A
2N/A
2N/A# Find the source files, if location was not specified.
2N/Aif test -z "$srcdir"; then
2N/A ac_srcdir_defaulted=yes
2N/A # Try the directory containing this script, then the parent directory.
2N/A ac_confdir=`$as_dirname -- "$as_myself" ||
2N/A$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2N/A X"$as_myself" : 'X\(//\)[^/]' \| \
2N/A X"$as_myself" : 'X\(//\)$' \| \
2N/A X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2N/A$as_echo X"$as_myself" |
2N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)[^/].*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\).*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A s/.*/./; q'`
2N/A srcdir=$ac_confdir
2N/A if test ! -r "$srcdir/$ac_unique_file"; then
2N/A srcdir=..
2N/A fi
2N/Aelse
2N/A ac_srcdir_defaulted=no
2N/Afi
2N/Aif test ! -r "$srcdir/$ac_unique_file"; then
2N/A test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2N/A { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2N/Aac_abs_confdir=`(
2N/A cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
2N/A { (exit 1); exit 1; }; }
2N/A pwd)`
2N/A# When building in place, set srcdir=.
2N/Aif test "$ac_abs_confdir" = "$ac_pwd"; then
2N/A srcdir=.
2N/Afi
2N/A# Remove unnecessary trailing slashes from srcdir.
2N/A# Double slashes in file names in object file debugging info
2N/A# mess up M-x gdb in Emacs.
2N/Acase $srcdir in
2N/A*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2N/Aesac
2N/Afor ac_var in $ac_precious_vars; do
2N/A eval ac_env_${ac_var}_set=\${${ac_var}+set}
2N/A eval ac_env_${ac_var}_value=\$${ac_var}
2N/A eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2N/A eval ac_cv_env_${ac_var}_value=\$${ac_var}
2N/Adone
2N/A
2N/A#
2N/A# Report the --help message.
2N/A#
2N/Aif test "$ac_init_help" = "long"; then
2N/A # Omit some internal or obsolete options to make the list less imposing.
2N/A # This message is too long to be a string in the A/UX 3.1 sh.
2N/A cat <<_ACEOF
2N/A\`configure' configures GRUB 1.99 to adapt to many kinds of systems.
2N/A
2N/AUsage: $0 [OPTION]... [VAR=VALUE]...
2N/A
2N/ATo assign environment variables (e.g., CC, CFLAGS...), specify them as
2N/AVAR=VALUE. See below for descriptions of some of the useful variables.
2N/A
2N/ADefaults for the options are specified in brackets.
2N/A
2N/AConfiguration:
2N/A -h, --help display this help and exit
2N/A --help=short display options specific to this package
2N/A --help=recursive display the short help of all the included packages
2N/A -V, --version display version information and exit
2N/A -q, --quiet, --silent do not print \`checking...' messages
2N/A --cache-file=FILE cache test results in FILE [disabled]
2N/A -C, --config-cache alias for \`--cache-file=config.cache'
2N/A -n, --no-create do not create output files
2N/A --srcdir=DIR find the sources in DIR [configure dir or \`..']
2N/A
2N/AInstallation directories:
2N/A --prefix=PREFIX install architecture-independent files in PREFIX
2N/A [$ac_default_prefix]
2N/A --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2N/A [PREFIX]
2N/A
2N/ABy default, \`make install' will install all the files in
2N/A\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2N/Aan installation prefix other than \`$ac_default_prefix' using \`--prefix',
2N/Afor instance \`--prefix=\$HOME'.
2N/A
2N/AFor better control, use the options below.
2N/A
2N/AFine tuning of the installation directories:
2N/A --bindir=DIR user executables [EPREFIX/bin]
2N/A --sbindir=DIR system admin executables [EPREFIX/sbin]
2N/A --libexecdir=DIR program executables [EPREFIX/libexec]
2N/A --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2N/A --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2N/A --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2N/A --libdir=DIR object code libraries [EPREFIX/lib]
2N/A --includedir=DIR C header files [PREFIX/include]
2N/A --oldincludedir=DIR C header files for non-gcc [/usr/include]
2N/A --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2N/A --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2N/A --infodir=DIR info documentation [DATAROOTDIR/info]
2N/A --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2N/A --mandir=DIR man documentation [DATAROOTDIR/man]
2N/A --docdir=DIR documentation root @<:@DATAROOTDIR/doc/grub@:>@
2N/A --htmldir=DIR html documentation [DOCDIR]
2N/A --dvidir=DIR dvi documentation [DOCDIR]
2N/A --pdfdir=DIR pdf documentation [DOCDIR]
2N/A --psdir=DIR ps documentation [DOCDIR]
2N/A_ACEOF
2N/A
2N/A cat <<\_ACEOF
2N/A
2N/AProgram names:
2N/A --program-prefix=PREFIX prepend PREFIX to installed program names
2N/A --program-suffix=SUFFIX append SUFFIX to installed program names
2N/A --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2N/A
2N/ASystem types:
2N/A --build=BUILD configure for building on BUILD [guessed]
2N/A --host=HOST cross-compile to build programs to run on HOST [BUILD]
2N/A --target=TARGET configure for building compilers for TARGET [HOST]
2N/A_ACEOF
2N/Afi
2N/A
2N/Aif test -n "$ac_init_help"; then
2N/A case $ac_init_help in
2N/A short | recursive ) echo "Configuration of GRUB 1.99:";;
2N/A esac
2N/A cat <<\_ACEOF
2N/A
2N/AOptional Features:
2N/A --disable-option-checking ignore unrecognized --enable/--with options
2N/A --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2N/A --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2N/A --disable-dependency-tracking speeds up one-time build
2N/A --enable-dependency-tracking do not reject slow dependency extractors
2N/A --disable-nls do not use Native Language Support
2N/A --disable-rpath do not hardcode runtime library paths
2N/A --disable-largefile omit support for large files
2N/A --enable-efiemu build and install the efiemu runtimes
2N/A (default=guessed)
2N/A --disable-werror do not use -Werror when building GRUB
2N/A --enable-mm-debug include memory manager debugging
2N/A --enable-cache-stats enable disk cache statistics collection
2N/A --enable-grub-emu-usb build and install the `grub-emu' debugging utility
2N/A with USB support (default=guessed)
2N/A --enable-grub-emu-sdl build and install the `grub-emu' debugging utility
2N/A with SDL support (default=guessed)
2N/A --enable-grub-emu-pci build and install the `grub-emu' debugging utility
2N/A with PCI support (potentially dangerous)
2N/A (default=no)
2N/A --enable-grub-mkfont build and install the `grub-mkfont' utility
2N/A (default=guessed)
2N/A --enable-grub-mount build and install the `grub-mount' utility
2N/A (default=guessed)
2N/A --enable-device-mapper enable Linux device-mapper support (default=guessed)
2N/A
2N/AOptional Packages:
2N/A --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2N/A --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2N/A --with-platform=PLATFORM
2N/A select the host platform [guessed]
2N/A --with-gnu-ld assume the C compiler uses GNU ld default=no
2N/A --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2N/A --without-libiconv-prefix don't search for libiconv in includedir and libdir
2N/A --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2N/A --without-libintl-prefix don't search for libintl in includedir and libdir
2N/A --without-included-regex
2N/A don't compile regex; this is the default on systems
2N/A with recent-enough versions of the GNU C Library
2N/A (use with caution on other systems).
2N/A
2N/ASome influential environment variables:
2N/A CC C compiler command
2N/A CFLAGS C compiler flags
2N/A LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2N/A nonstandard directory <lib dir>
2N/A LIBS libraries to pass to the linker, e.g. -l<library>
2N/A CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2N/A you have headers in a nonstandard directory <include dir>
2N/A YACC The `Yet Another C Compiler' implementation to use. Defaults to
2N/A the first program found out of: `bison -y', `byacc', `yacc'.
2N/A YFLAGS The list of arguments that will be passed by default to $YACC.
2N/A This script will default YFLAGS to the empty string to avoid a
2N/A default value of `-d' given by some make applications.
2N/A CPP C preprocessor
2N/A CCAS assembler compiler command (defaults to CC)
2N/A CCASFLAGS assembler compiler flags (defaults to CFLAGS)
2N/A
2N/AUse these variables to override the choices made by `configure' or to help
2N/Ait to find libraries and programs with nonstandard names/locations.
2N/A
2N/AReport bugs to <bug-grub@gnu.org>.
2N/A_ACEOF
2N/Aac_status=$?
2N/Afi
2N/A
2N/Aif test "$ac_init_help" = "recursive"; then
2N/A # If there are subdirs, report their specific --help.
2N/A for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2N/A test -d "$ac_dir" ||
2N/A { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2N/A continue
2N/A ac_builddir=.
2N/A
2N/Acase "$ac_dir" in
2N/A.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2N/A*)
2N/A ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2N/A # A ".." for each directory in $ac_dir_suffix.
2N/A ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2N/A case $ac_top_builddir_sub in
2N/A "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2N/A *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2N/A esac ;;
2N/Aesac
2N/Aac_abs_top_builddir=$ac_pwd
2N/Aac_abs_builddir=$ac_pwd$ac_dir_suffix
2N/A# for backward compatibility:
2N/Aac_top_builddir=$ac_top_build_prefix
2N/A
2N/Acase $srcdir in
2N/A .) # We are building in place.
2N/A ac_srcdir=.
2N/A ac_top_srcdir=$ac_top_builddir_sub
2N/A ac_abs_top_srcdir=$ac_pwd ;;
2N/A [\\/]* | ?:[\\/]* ) # Absolute name.
2N/A ac_srcdir=$srcdir$ac_dir_suffix;
2N/A ac_top_srcdir=$srcdir
2N/A ac_abs_top_srcdir=$srcdir ;;
2N/A *) # Relative name.
2N/A ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2N/A ac_top_srcdir=$ac_top_build_prefix$srcdir
2N/A ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2N/Aesac
2N/Aac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2N/A
2N/A cd "$ac_dir" || { ac_status=$?; continue; }
2N/A # Check for guested configure.
2N/A if test -f "$ac_srcdir/configure.gnu"; then
2N/A echo &&
2N/A $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2N/A elif test -f "$ac_srcdir/configure"; then
2N/A echo &&
2N/A $SHELL "$ac_srcdir/configure" --help=recursive
2N/A else
2N/A $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2N/A fi || ac_status=$?
2N/A cd "$ac_pwd" || { ac_status=$?; break; }
2N/A done
2N/Afi
2N/A
2N/Atest -n "$ac_init_help" && exit $ac_status
2N/Aif $ac_init_version; then
2N/A cat <<\_ACEOF
2N/AGRUB configure 1.99
2N/Agenerated by GNU Autoconf 2.63
2N/A
2N/ACopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2N/A2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2N/AThis configure script is free software; the Free Software Foundation
2N/Agives unlimited permission to copy, distribute and modify it.
2N/A_ACEOF
2N/A exit
2N/Afi
2N/Acat >config.log <<_ACEOF
2N/AThis file contains any messages produced by compilers while
2N/Arunning configure, to aid debugging if configure makes a mistake.
2N/A
2N/AIt was created by GRUB $as_me 1.99, which was
2N/Agenerated by GNU Autoconf 2.63. Invocation command line was
2N/A
2N/A $ $0 $@
2N/A
2N/A_ACEOF
2N/Aexec 5>>config.log
2N/A{
2N/Acat <<_ASUNAME
2N/A@%:@@%:@ --------- @%:@@%:@
2N/A@%:@@%:@ Platform. @%:@@%:@
2N/A@%:@@%:@ --------- @%:@@%:@
2N/A
2N/Ahostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2N/Auname -m = `(uname -m) 2>/dev/null || echo unknown`
2N/Auname -r = `(uname -r) 2>/dev/null || echo unknown`
2N/Auname -s = `(uname -s) 2>/dev/null || echo unknown`
2N/Auname -v = `(uname -v) 2>/dev/null || echo unknown`
2N/A
2N/A/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2N/A/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2N/A
2N/A/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2N/A/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2N/A/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2N/A/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2N/A/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2N/A/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2N/A/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2N/A
2N/A_ASUNAME
2N/A
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A $as_echo "PATH: $as_dir"
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/A} >&5
2N/A
2N/Acat >&5 <<_ACEOF
2N/A
2N/A
2N/A@%:@@%:@ ----------- @%:@@%:@
2N/A@%:@@%:@ Core tests. @%:@@%:@
2N/A@%:@@%:@ ----------- @%:@@%:@
2N/A
2N/A_ACEOF
2N/A
2N/A
2N/A# Keep a trace of the command line.
2N/A# Strip out --no-create and --no-recursion so they do not pile up.
2N/A# Strip out --silent because we don't want to record it for future runs.
2N/A# Also quote any args containing shell meta-characters.
2N/A# Make two passes to allow for proper duplicate-argument suppression.
2N/Aac_configure_args=
2N/Aac_configure_args0=
2N/Aac_configure_args1=
2N/Aac_must_keep_next=false
2N/Afor ac_pass in 1 2
2N/Ado
2N/A for ac_arg
2N/A do
2N/A case $ac_arg in
2N/A -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2N/A -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2N/A | -silent | --silent | --silen | --sile | --sil)
2N/A continue ;;
2N/A *\'*)
2N/A ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2N/A esac
2N/A case $ac_pass in
2N/A 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2N/A 2)
2N/A ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2N/A if test $ac_must_keep_next = true; then
2N/A ac_must_keep_next=false # Got value, back to normal.
2N/A else
2N/A case $ac_arg in
2N/A *=* | --config-cache | -C | -disable-* | --disable-* \
2N/A | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2N/A | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2N/A | -with-* | --with-* | -without-* | --without-* | --x)
2N/A case "$ac_configure_args0 " in
2N/A "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2N/A esac
2N/A ;;
2N/A -* ) ac_must_keep_next=true ;;
2N/A esac
2N/A fi
2N/A ac_configure_args="$ac_configure_args '$ac_arg'"
2N/A ;;
2N/A esac
2N/A done
2N/Adone
2N/A$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2N/A$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2N/A
2N/A# When interrupted or exit'd, cleanup temporary files, and complete
2N/A# config.log. We remove comments because anyway the quotes in there
2N/A# would cause problems or look ugly.
2N/A# WARNING: Use '\'' to represent an apostrophe within the trap.
2N/A# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2N/Atrap 'exit_status=$?
2N/A # Save into config.log some information that might help in debugging.
2N/A {
2N/A echo
2N/A
2N/A cat <<\_ASBOX
2N/A@%:@@%:@ ---------------- @%:@@%:@
2N/A@%:@@%:@ Cache variables. @%:@@%:@
2N/A@%:@@%:@ ---------------- @%:@@%:@
2N/A_ASBOX
2N/A echo
2N/A # The following way of writing the cache mishandles newlines in values,
2N/A(
2N/A for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2N/A eval ac_val=\$$ac_var
2N/A case $ac_val in #(
2N/A *${as_nl}*)
2N/A case $ac_var in #(
2N/A *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2N/A$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2N/A esac
2N/A case $ac_var in #(
2N/A _ | IFS | as_nl) ;; #(
2N/A BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2N/A *) $as_unset $ac_var ;;
2N/A esac ;;
2N/A esac
2N/A done
2N/A (set) 2>&1 |
2N/A case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2N/A *${as_nl}ac_space=\ *)
2N/A sed -n \
2N/A "s/'\''/'\''\\\\'\'''\''/g;
2N/A s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2N/A ;; #(
2N/A *)
2N/A sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2N/A ;;
2N/A esac |
2N/A sort
2N/A)
2N/A echo
2N/A
2N/A cat <<\_ASBOX
2N/A@%:@@%:@ ----------------- @%:@@%:@
2N/A@%:@@%:@ Output variables. @%:@@%:@
2N/A@%:@@%:@ ----------------- @%:@@%:@
2N/A_ASBOX
2N/A echo
2N/A for ac_var in $ac_subst_vars
2N/A do
2N/A eval ac_val=\$$ac_var
2N/A case $ac_val in
2N/A *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2N/A esac
2N/A $as_echo "$ac_var='\''$ac_val'\''"
2N/A done | sort
2N/A echo
2N/A
2N/A if test -n "$ac_subst_files"; then
2N/A cat <<\_ASBOX
2N/A@%:@@%:@ ------------------- @%:@@%:@
2N/A@%:@@%:@ File substitutions. @%:@@%:@
2N/A@%:@@%:@ ------------------- @%:@@%:@
2N/A_ASBOX
2N/A echo
2N/A for ac_var in $ac_subst_files
2N/A do
2N/A eval ac_val=\$$ac_var
2N/A case $ac_val in
2N/A *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2N/A esac
2N/A $as_echo "$ac_var='\''$ac_val'\''"
2N/A done | sort
2N/A echo
2N/A fi
2N/A
2N/A if test -s confdefs.h; then
2N/A cat <<\_ASBOX
2N/A@%:@@%:@ ----------- @%:@@%:@
2N/A@%:@@%:@ confdefs.h. @%:@@%:@
2N/A@%:@@%:@ ----------- @%:@@%:@
2N/A_ASBOX
2N/A echo
2N/A cat confdefs.h
2N/A echo
2N/A fi
2N/A test "$ac_signal" != 0 &&
2N/A $as_echo "$as_me: caught signal $ac_signal"
2N/A $as_echo "$as_me: exit $exit_status"
2N/A } >&5
2N/A rm -f core *.core core.conftest.* &&
2N/A rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2N/A exit $exit_status
2N/A' 0
2N/Afor ac_signal in 1 2 13 15; do
2N/A trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2N/Adone
2N/Aac_signal=0
2N/A
2N/A# confdefs.h avoids OS command line length limits that DEFS can exceed.
2N/Arm -f -r conftest* confdefs.h
2N/A
2N/A# Predefined preprocessor variables.
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2N/A_ACEOF
2N/A
2N/A
2N/A# Let the site file select an alternate cache file if it wants to.
2N/A# Prefer an explicitly selected file to automatically selected ones.
2N/Aac_site_file1=NONE
2N/Aac_site_file2=NONE
2N/Aif test -n "$CONFIG_SITE"; then
2N/A ac_site_file1=$CONFIG_SITE
2N/Aelif test "x$prefix" != xNONE; then
2N/A ac_site_file1=$prefix/share/config.site
2N/A ac_site_file2=$prefix/etc/config.site
2N/Aelse
2N/A ac_site_file1=$ac_default_prefix/share/config.site
2N/A ac_site_file2=$ac_default_prefix/etc/config.site
2N/Afi
2N/Afor ac_site_file in "$ac_site_file1" "$ac_site_file2"
2N/Ado
2N/A test "x$ac_site_file" = xNONE && continue
2N/A if test -r "$ac_site_file"; then
2N/A { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2N/A$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2N/A sed 's/^/| /' "$ac_site_file" >&5
2N/A . "$ac_site_file"
2N/A fi
2N/Adone
2N/A
2N/Aif test -r "$cache_file"; then
2N/A # Some versions of bash will fail to source /dev/null (special
2N/A # files actually), so we avoid doing that.
2N/A if test -f "$cache_file"; then
2N/A { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2N/A$as_echo "$as_me: loading cache $cache_file" >&6;}
2N/A case $cache_file in
2N/A [\\/]* | ?:[\\/]* ) . "$cache_file";;
2N/A *) . "./$cache_file";;
2N/A esac
2N/A fi
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2N/A$as_echo "$as_me: creating cache $cache_file" >&6;}
2N/A >$cache_file
2N/Afi
2N/A
2N/Agt_needs="$gt_needs "
2N/Aac_func_list="$ac_func_list flockfile"
2N/Aac_func_list="$ac_func_list funlockfile"
2N/Aac_header_list="$ac_header_list features.h"
2N/Aac_header_list="$ac_header_list linewrap.h"
2N/Aac_func_list="$ac_func_list btowc"
2N/Aac_header_list="$ac_header_list errno.h"
2N/Aac_header_list="$ac_header_list float.h"
2N/Aac_func_list="$ac_func_list isblank"
2N/Aac_func_list="$ac_func_list iswctype"
2N/Aac_func_list="$ac_func_list mbsrtowcs"
2N/Aac_func_list="$ac_func_list mempcpy"
2N/Aac_func_list="$ac_func_list wmemchr"
2N/Aac_func_list="$ac_func_list wmemcpy"
2N/Aac_func_list="$ac_func_list wmempcpy"
2N/Aac_header_list="$ac_header_list wctype.h"
2N/Aac_func_list="$ac_func_list getdelim"
2N/Agl_getopt_required=GNU
2N/Aac_header_list="$ac_header_list getopt.h"
2N/Aac_header_list="$ac_header_list langinfo.h"
2N/Aac_func_list="$ac_func_list mbsinit"
2N/Aac_func_list="$ac_func_list mbrtowc"
2N/Aac_header_list="$ac_header_list sys/mman.h"
2N/Aac_func_list="$ac_func_list mprotect"
2N/Aac_func_list="$ac_func_list memchr"
2N/Aac_func_list="$ac_func_list nl_langinfo"
2N/Aac_header_list="$ac_header_list locale.h"
2N/Aac_func_list="$ac_func_list wcscoll"
2N/Aac_func_list="$ac_func_list sleep"
2N/Aac_header_list="$ac_header_list stddef.h"
2N/Aac_header_list="$ac_header_list stdint.h"
2N/Aac_header_list="$ac_header_list wchar.h"
2N/Aac_header_list="$ac_header_list stdio.h"
2N/Aac_header_list="$ac_header_list stdlib.h"
2N/Aac_header_list="$ac_header_list sys/socket.h"
2N/Aac_header_list="$ac_header_list string.h"
2N/Aac_header_list="$ac_header_list strings.h"
2N/Aac_func_list="$ac_func_list strndup"
2N/Aac_header_list="$ac_header_list sys/wait.h"
2N/Aac_header_list="$ac_header_list sysexits.h"
2N/Aac_header_list="$ac_header_list unistd.h"
2N/Aac_func_list="$ac_func_list vasnprintf"
2N/Aac_func_list="$ac_func_list wcrtomb"
2N/Aac_func_list="$ac_func_list iswcntrl"
2N/Aac_func_list="$ac_func_list iswblank"
2N/A# Check that the precious variables saved in the cache have kept the same
2N/A# value.
2N/Aac_cache_corrupted=false
2N/Afor ac_var in $ac_precious_vars; do
2N/A eval ac_old_set=\$ac_cv_env_${ac_var}_set
2N/A eval ac_new_set=\$ac_env_${ac_var}_set
2N/A eval ac_old_val=\$ac_cv_env_${ac_var}_value
2N/A eval ac_new_val=\$ac_env_${ac_var}_value
2N/A case $ac_old_set,$ac_new_set in
2N/A set,)
2N/A { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2N/A$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2N/A ac_cache_corrupted=: ;;
2N/A ,set)
2N/A { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2N/A$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2N/A ac_cache_corrupted=: ;;
2N/A ,);;
2N/A *)
2N/A if test "x$ac_old_val" != "x$ac_new_val"; then
2N/A # differences in whitespace do not lead to failure.
2N/A ac_old_val_w=`echo x $ac_old_val`
2N/A ac_new_val_w=`echo x $ac_new_val`
2N/A if test "$ac_old_val_w" != "$ac_new_val_w"; then
2N/A { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2N/A$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2N/A ac_cache_corrupted=:
2N/A else
2N/A { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2N/A$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2N/A eval $ac_var=\$ac_old_val
2N/A fi
2N/A { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2N/A$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2N/A { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2N/A$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2N/A fi;;
2N/A esac
2N/A # Pass precious variables to config.status.
2N/A if test "$ac_new_set" = set; then
2N/A case $ac_new_val in
2N/A *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2N/A *) ac_arg=$ac_var=$ac_new_val ;;
2N/A esac
2N/A case " $ac_configure_args " in
2N/A *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2N/A *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2N/A esac
2N/A fi
2N/Adone
2N/Aif $ac_cache_corrupted; then
2N/A { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2N/A$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2N/A { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2N/A$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Aac_ext=c
2N/Aac_cpp='$CPP $CPPFLAGS'
2N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
2N/A
2N/A
2N/A
2N/Aac_aux_dir=
2N/Afor ac_dir in build-aux "$srcdir"/build-aux; do
2N/A if test -f "$ac_dir/install-sh"; then
2N/A ac_aux_dir=$ac_dir
2N/A ac_install_sh="$ac_aux_dir/install-sh -c"
2N/A break
2N/A elif test -f "$ac_dir/install.sh"; then
2N/A ac_aux_dir=$ac_dir
2N/A ac_install_sh="$ac_aux_dir/install.sh -c"
2N/A break
2N/A elif test -f "$ac_dir/shtool"; then
2N/A ac_aux_dir=$ac_dir
2N/A ac_install_sh="$ac_aux_dir/shtool install -c"
2N/A break
2N/A fi
2N/Adone
2N/Aif test -z "$ac_aux_dir"; then
2N/A { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2N/A$as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/A# These three variables are undocumented and unsupported,
2N/A# and are intended to be withdrawn in a future Autoconf release.
2N/A# They can cause serious problems if a builder's source tree is in a directory
2N/A# whose full name contains unusual characters.
2N/Aac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2N/Aac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2N/Aac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2N/A
2N/A
2N/A
2N/A# We don't want -g -O2 by default in CFLAGS
2N/A: ${CFLAGS=""}
2N/A
2N/A# Checks for host and target systems.
2N/A# Make sure we can run config.sub.
2N/A$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2N/A { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2N/A$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2N/A$as_echo_n "checking build system type... " >&6; }
2N/Aif test "${ac_cv_build+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_build_alias=$build_alias
2N/Atest "x$ac_build_alias" = x &&
2N/A ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2N/Atest "x$ac_build_alias" = x &&
2N/A { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2N/A$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Aac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2N/A { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2N/A$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2N/A$as_echo "$ac_cv_build" >&6; }
2N/Acase $ac_cv_build in
2N/A*-*-*) ;;
2N/A*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2N/A$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2N/A { (exit 1); exit 1; }; };;
2N/Aesac
2N/Abuild=$ac_cv_build
2N/Aac_save_IFS=$IFS; IFS='-'
2N/Aset x $ac_cv_build
2N/Ashift
2N/Abuild_cpu=$1
2N/Abuild_vendor=$2
2N/Ashift; shift
2N/A# Remember, the first character of IFS is used to create $*,
2N/A# except with old shells:
2N/Abuild_os=$*
2N/AIFS=$ac_save_IFS
2N/Acase $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2N/A$as_echo_n "checking host system type... " >&6; }
2N/Aif test "${ac_cv_host+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "x$host_alias" = x; then
2N/A ac_cv_host=$ac_cv_build
2N/Aelse
2N/A ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2N/A { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2N/A$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2N/A$as_echo "$ac_cv_host" >&6; }
2N/Acase $ac_cv_host in
2N/A*-*-*) ;;
2N/A*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2N/A$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2N/A { (exit 1); exit 1; }; };;
2N/Aesac
2N/Ahost=$ac_cv_host
2N/Aac_save_IFS=$IFS; IFS='-'
2N/Aset x $ac_cv_host
2N/Ashift
2N/Ahost_cpu=$1
2N/Ahost_vendor=$2
2N/Ashift; shift
2N/A# Remember, the first character of IFS is used to create $*,
2N/A# except with old shells:
2N/Ahost_os=$*
2N/AIFS=$ac_save_IFS
2N/Acase $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2N/A$as_echo_n "checking target system type... " >&6; }
2N/Aif test "${ac_cv_target+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "x$target_alias" = x; then
2N/A ac_cv_target=$ac_cv_host
2N/Aelse
2N/A ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2N/A { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2N/A$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2N/A$as_echo "$ac_cv_target" >&6; }
2N/Acase $ac_cv_target in
2N/A*-*-*) ;;
2N/A*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2N/A$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2N/A { (exit 1); exit 1; }; };;
2N/Aesac
2N/Atarget=$ac_cv_target
2N/Aac_save_IFS=$IFS; IFS='-'
2N/Aset x $ac_cv_target
2N/Ashift
2N/Atarget_cpu=$1
2N/Atarget_vendor=$2
2N/Ashift; shift
2N/A# Remember, the first character of IFS is used to create $*,
2N/A# except with old shells:
2N/Atarget_os=$*
2N/AIFS=$ac_save_IFS
2N/Acase $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2N/A
2N/A
2N/A# The aliases save the names the user supplied, while $host etc.
2N/A# will get canonicalized.
2N/Atest -n "$target_alias" &&
2N/A test "$program_prefix$program_suffix$program_transform_name" = \
2N/A NONENONEs,x,x, &&
2N/A program_prefix=${target_alias}-
2N/A
2N/Aam__api_version='1.10'
2N/A
2N/A# Find a good install program. We prefer a C program (faster),
2N/A# so one script is as good as another. But avoid the broken or
2N/A# incompatible versions:
2N/A# SysV /etc/install, /usr/sbin/install
2N/A# SunOS /usr/etc/install
2N/A# IRIX /sbin/install
2N/A# AIX /bin/install
2N/A# AmigaOS /C/install, which installs bootblocks on floppy discs
2N/A# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2N/A# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2N/A# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2N/A# OS/2's system install, which has a completely different semantic
2N/A# ./install, which can be erroneously created by make from ./install.sh.
2N/A# Reject install programs that cannot install multiple files.
2N/A{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2N/A$as_echo_n "checking for a BSD-compatible install... " >&6; }
2N/Aif test -z "$INSTALL"; then
2N/Aif test "${ac_cv_path_install+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A # Account for people who put trailing slashes in PATH elements.
2N/Acase $as_dir/ in
2N/A ./ | .// | /cC/* | \
2N/A /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2N/A ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2N/A /usr/ucb/* ) ;;
2N/A *)
2N/A # OSF1 and SCO ODT 3.0 have their own names for install.
2N/A # Don't use installbsd from OSF since it installs stuff as root
2N/A # by default.
2N/A for ac_prog in ginstall scoinst install; do
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2N/A if test $ac_prog = install &&
2N/A grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2N/A # AIX install. It has an incompatible calling convention.
2N/A :
2N/A elif test $ac_prog = install &&
2N/A grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2N/A # program-specific install script used by HP pwplus--don't use.
2N/A :
2N/A else
2N/A rm -rf conftest.one conftest.two conftest.dir
2N/A echo one > conftest.one
2N/A echo two > conftest.two
2N/A mkdir conftest.dir
2N/A if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2N/A test -s conftest.one && test -s conftest.two &&
2N/A test -s conftest.dir/conftest.one &&
2N/A test -s conftest.dir/conftest.two
2N/A then
2N/A ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2N/A break 3
2N/A fi
2N/A fi
2N/A fi
2N/A done
2N/A done
2N/A ;;
2N/Aesac
2N/A
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Arm -rf conftest.one conftest.two conftest.dir
2N/A
2N/Afi
2N/A if test "${ac_cv_path_install+set}" = set; then
2N/A INSTALL=$ac_cv_path_install
2N/A else
2N/A # As a last resort, use the slow shell script. Don't cache a
2N/A # value for INSTALL within a source directory, because that will
2N/A # break other packages using the cache if that directory is
2N/A # removed, or if the value is a relative name.
2N/A INSTALL=$ac_install_sh
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2N/A$as_echo "$INSTALL" >&6; }
2N/A
2N/A# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2N/A# It thinks the first close brace ends the variable substitution.
2N/Atest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2N/A
2N/Atest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2N/A
2N/Atest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2N/A$as_echo_n "checking whether build environment is sane... " >&6; }
2N/A# Just in case
2N/Asleep 1
2N/Aecho timestamp > conftest.file
2N/A# Do `set' in a subshell so we don't clobber the current shell's
2N/A# arguments. Must try -L first in case configure is actually a
2N/A# symlink; some systems play weird games with the mod time of symlinks
2N/A# (eg FreeBSD returns the mod time of the symlink's containing
2N/A# directory).
2N/Aif (
2N/A set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2N/A if test "$*" = "X"; then
2N/A # -L didn't work.
2N/A set X `ls -t $srcdir/configure conftest.file`
2N/A fi
2N/A rm -f conftest.file
2N/A if test "$*" != "X $srcdir/configure conftest.file" \
2N/A && test "$*" != "X conftest.file $srcdir/configure"; then
2N/A
2N/A # If neither matched, then we have a broken ls. This can happen
2N/A # if, for instance, CONFIG_SHELL is bash and it inherits a
2N/A # broken ls alias from the environment. This has actually
2N/A # happened. Such a system could not be considered "sane".
2N/A { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2N/Aalias in your environment" >&5
2N/A$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2N/Aalias in your environment" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A
2N/A test "$2" = conftest.file
2N/A )
2N/Athen
2N/A # Ok.
2N/A :
2N/Aelse
2N/A { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2N/ACheck your system clock" >&5
2N/A$as_echo "$as_me: error: newly created file is older than distributed files!
2N/ACheck your system clock" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/Atest "$program_prefix" != NONE &&
2N/A program_transform_name="s&^&$program_prefix&;$program_transform_name"
2N/A# Use a double $ so make ignores it.
2N/Atest "$program_suffix" != NONE &&
2N/A program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2N/A# Double any \ or $.
2N/A# By default was `s,x,x', remove it if useless.
2N/Aac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2N/Aprogram_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2N/A
2N/A# expand $ac_aux_dir to an absolute path
2N/Aam_aux_dir=`cd $ac_aux_dir && pwd`
2N/A
2N/Atest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2N/A# Use eval to expand $SHELL
2N/Aif eval "$MISSING --run true"; then
2N/A am_missing_run="$MISSING --run "
2N/Aelse
2N/A am_missing_run=
2N/A { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2N/A$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2N/A$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2N/Aif test -z "$MKDIR_P"; then
2N/A if test "${ac_cv_path_mkdir+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_prog in mkdir gmkdir; do
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2N/A case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2N/A 'mkdir (GNU coreutils) '* | \
2N/A 'mkdir (coreutils) '* | \
2N/A 'mkdir (fileutils) '4.1*)
2N/A ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2N/A break 3;;
2N/A esac
2N/A done
2N/A done
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/A
2N/A if test "${ac_cv_path_mkdir+set}" = set; then
2N/A MKDIR_P="$ac_cv_path_mkdir -p"
2N/A else
2N/A # As a last resort, use the slow shell script. Don't cache a
2N/A # value for MKDIR_P within a source directory, because that will
2N/A # break other packages using the cache if that directory is
2N/A # removed, or if the value is a relative name.
2N/A test -d ./--version && rmdir ./--version
2N/A MKDIR_P="$ac_install_sh -d"
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2N/A$as_echo "$MKDIR_P" >&6; }
2N/A
2N/A
2N/Amkdir_p="$MKDIR_P"
2N/Acase $mkdir_p in
2N/A [\\/$]* | ?:[\\/]*) ;;
2N/A */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2N/Aesac
2N/A
2N/Afor ac_prog in gawk mawk nawk awk
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_AWK+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$AWK"; then
2N/A ac_cv_prog_AWK="$AWK" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_AWK="$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/AAWK=$ac_cv_prog_AWK
2N/Aif test -n "$AWK"; then
2N/A { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2N/A$as_echo "$AWK" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$AWK" && break
2N/Adone
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2N/A$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2N/Aset x ${MAKE-make}
2N/Aac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2N/Aif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.make <<\_ACEOF
2N/ASHELL = /bin/sh
2N/Aall:
2N/A @echo '@@@%%%=$(MAKE)=@@@%%%'
2N/A_ACEOF
2N/A# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2N/Acase `${MAKE-make} -f conftest.make 2>/dev/null` in
2N/A *@@@%%%=?*=@@@%%%*)
2N/A eval ac_cv_prog_make_${ac_make}_set=yes;;
2N/A *)
2N/A eval ac_cv_prog_make_${ac_make}_set=no;;
2N/Aesac
2N/Arm -f conftest.make
2N/Afi
2N/Aif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2N/A { $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/A SET_MAKE=
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/A SET_MAKE="MAKE=${MAKE-make}"
2N/Afi
2N/A
2N/Arm -rf .tst 2>/dev/null
2N/Amkdir .tst 2>/dev/null
2N/Aif test -d .tst; then
2N/A am__leading_dot=.
2N/Aelse
2N/A am__leading_dot=_
2N/Afi
2N/Armdir .tst 2>/dev/null
2N/A
2N/Aif test "`cd $srcdir && pwd`" != "`pwd`"; then
2N/A # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2N/A # is not polluted with repeated "-I."
2N/A am__isrc=' -I$(srcdir)'
2N/A # test to see if srcdir already configured
2N/A if test -f $srcdir/config.status; then
2N/A { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2N/A$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/Afi
2N/A
2N/A# test whether we have cygpath
2N/Aif test -z "$CYGPATH_W"; then
2N/A if (cygpath --version) >/dev/null 2>/dev/null; then
2N/A CYGPATH_W='cygpath -w'
2N/A else
2N/A CYGPATH_W=echo
2N/A fi
2N/Afi
2N/A
2N/A
2N/A# Define the identity of the package.
2N/A PACKAGE='grub'
2N/A VERSION='1.99'
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define PACKAGE "$PACKAGE"
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define VERSION "$VERSION"
2N/A_ACEOF
2N/A
2N/A# Some tools Automake needs.
2N/A
2N/AACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2N/A
2N/A
2N/AAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2N/A
2N/A
2N/AAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2N/A
2N/A
2N/AAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2N/A
2N/A
2N/AMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2N/A
2N/Ainstall_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2N/A
2N/A# Installed binaries are usually stripped using `strip' when the user
2N/A# run `make install-strip'. However `strip' might not be the right
2N/A# tool to use in cross-compilation environments, therefore Automake
2N/A# will honor the `STRIP' environment variable to overrule this program.
2N/Aif test "$cross_compiling" != no; then
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}strip; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_STRIP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$STRIP"; then
2N/A ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ASTRIP=$ac_cv_prog_STRIP
2N/Aif test -n "$STRIP"; then
2N/A { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2N/A$as_echo "$STRIP" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_STRIP"; then
2N/A ac_ct_STRIP=$STRIP
2N/A # Extract the first word of "strip", so it can be a program name with args.
2N/Aset dummy strip; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_STRIP"; then
2N/A ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_STRIP="strip"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2N/Aif test -n "$ac_ct_STRIP"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2N/A$as_echo "$ac_ct_STRIP" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_STRIP" = x; then
2N/A STRIP=":"
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A STRIP=$ac_ct_STRIP
2N/A fi
2N/Aelse
2N/A STRIP="$ac_cv_prog_STRIP"
2N/Afi
2N/A
2N/Afi
2N/AINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2N/A
2N/A# We need awk for the "check" target. The system "awk" is bad on
2N/A# some platforms.
2N/A# Always define AMTAR for backward compatibility.
2N/A
2N/AAMTAR=${AMTAR-"${am_missing_run}tar"}
2N/A
2N/Aam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Aac_config_headers="$ac_config_headers config-util.h"
2N/A
2N/A
2N/A# Program name transformations
2N/A
2N/A
2N/A# Optimization flag. Allow user to override.
2N/Aif test "x$TARGET_CFLAGS" = x; then
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -Os"
2N/Afi
2N/A
2N/A# Default HOST_CPPFLAGS
2N/AHOST_CPPFLAGS="$HOST_CPPFLAGS -Wall -W"
2N/AHOST_CPPFLAGS="$HOST_CPPFLAGS -I\$(top_builddir)/include"
2N/AHOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_UTIL=1"
2N/AHOST_CPPFLAGS="$HOST_CPPFLAGS -DGRUB_LIBDIR=\\\"\$(pkglibdir)\\\""
2N/AHOST_CPPFLAGS="$HOST_CPPFLAGS -DLOCALEDIR=\\\"\$(localedir)\\\""
2N/A
2N/ATARGET_CPPFLAGS="$TARGET_CPPFLAGS -Wall -W"
2N/ATARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_srcdir)/include"
2N/ATARGET_CPPFLAGS="$TARGET_CPPFLAGS -I\$(top_builddir)/include"
2N/A
2N/Acase "$target_cpu" in
2N/A i[3456]86) target_cpu=i386 ;;
2N/A amd64) target_cpu=x86_64 ;;
2N/A sparc) target_cpu=sparc64 ;;
2N/A mipsel|mips64el)
2N/A target_cpu=mipsel;
2N/A machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPSEL=1";
2N/A ;;
2N/A mips|mips64)
2N/A target_cpu=mips;
2N/A machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_CPU_MIPS=1";
2N/A ;;
2N/Aesac
2N/A
2N/A# Specify the platform (such as firmware).
2N/A
2N/A@%:@ Check whether --with-platform was given.
2N/Aif test "${with_platform+set}" = set; then
2N/A withval=$with_platform;
2N/Afi
2N/A
2N/A
2N/A# Guess the platform if not specified.
2N/Aif test "x$with_platform" = x; then
2N/A case "$target_cpu"-"$target_vendor" in
2N/A i386-apple) platform=efi ;;
2N/A i386-*) platform=pc ;;
2N/A x86_64-apple) platform=efi ;;
2N/A x86_64-*) platform=pc ;;
2N/A powerpc-*) platform=ieee1275 ;;
2N/A powerpc64-*) platform=ieee1275 ;;
2N/A sparc64-*) platform=ieee1275 ;;
2N/A mipsel-*) platform=loongson ;;
2N/A mips-*) platform=arc ;;
2N/A ia64-*) platform=efi ;;
2N/A *) { { $as_echo "$as_me:$LINENO: error: unsupported CPU: \"$target_cpu\"" >&5
2N/A$as_echo "$as_me: error: unsupported CPU: \"$target_cpu\"" >&2;}
2N/A { (exit 1); exit 1; }; } ;;
2N/A esac
2N/Aelse
2N/A platform="$with_platform"
2N/Afi
2N/A
2N/Acase "$target_cpu"-"$platform" in
2N/A x86_64-efi) ;;
2N/A x86_64-emu) ;;
2N/A x86_64-*) target_cpu=i386 ;;
2N/A powerpc64-ieee1275) target_cpu=powerpc ;;
2N/Aesac
2N/A
2N/A# Check if the platform is supported, make final adjustments.
2N/Acase "$target_cpu"-"$platform" in
2N/A i386-efi) ;;
2N/A x86_64-efi) ;;
2N/A i386-pc) ;;
2N/A i386-multiboot) ;;
2N/A i386-coreboot) ;;
2N/A i386-linuxbios) platform=coreboot ;;
2N/A i386-ieee1275) ;;
2N/A i386-qemu) ;;
2N/A powerpc-ieee1275) ;;
2N/A sparc64-ieee1275) ;;
2N/A ia64-efi) ;;
2N/A mips-qemu_mips) ;;
2N/A mips-qemu-mips) platform=qemu_mips;;
2N/A mips-arc) ;;
2N/A mipsel-qemu_mips) ;;
2N/A mipsel-qemu-mips) platform=qemu_mips;;
2N/A mipsel-yeeloong) platform=loongson ;;
2N/A mipsel-fuloong) platform=loongson ;;
2N/A mipsel-loongson) ;;
2N/A *-emu) ;;
2N/A *) { { $as_echo "$as_me:$LINENO: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&5
2N/A$as_echo "$as_me: error: platform \"$platform\" is not supported for target CPU \"$target_cpu\"" >&2;}
2N/A { (exit 1); exit 1; }; } ;;
2N/Aesac
2N/A
2N/Acase "$target_cpu" in
2N/A i386 | powerpc) target_m32=1 ;;
2N/A x86_64 | sparc64) target_m64=1 ;;
2N/Aesac
2N/A
2N/Acase "$host_os" in
2N/A mingw32*) host_os=cygwin ;;
2N/Aesac
2N/A
2N/A# This normalizes the names, and creates a new variable ("host_kernel")
2N/A# while at it, since the mapping is not always 1:1 (e.g. different OSes
2N/A# using the same kernel type).
2N/Acase "$host_os" in
2N/A gnu*) host_kernel=hurd ;;
2N/A linux*) host_kernel=linux ;;
2N/A solaris*) host_kernel=solaris ;;
2N/A freebsd* | kfreebsd*-gnu) host_kernel=kfreebsd ;;
2N/A netbsd*) host_kernel=netbsd ;;
2N/A solaris*) host_kernel=illumos ;;
2N/A cygwin) host_kernel=windows ;;
2N/Aesac
2N/A
2N/Acase "$platform" in
2N/A coreboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_COREBOOT=1" ;;
2N/A multiboot) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MULTIBOOT=1" ;;
2N/A efi) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EFI=1" ;;
2N/A ieee1275) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_IEEE1275=1" ;;
2N/A qemu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_QEMU=1" ;;
2N/A pc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;;
2N/A emu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;;
2N/A loongson) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
2N/A qemu_mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1 -DGRUB_MACHINE_MIPS_BONITO=1" ;;
2N/A arc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;;
2N/Aesac
2N/Acase "$target_cpu" in
2N/A mips |mipsel) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS=1" ;;
2N/A sparc64) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_SPARC64=1" ;;
2N/Aesac
2N/Aif test x${target_cpu} = xmipsel ; then
2N/A machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo mips_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`"
2N/Aelse
2N/A machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE=`echo ${target_cpu}_$platform | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,` -DGRUB_TARGET_CPU_`echo ${target_cpu} | sed y,abcdefghijklmnopqrstuvwxyz,ABCDEFGHIJKLMNOPQRSTUVWXYZ,`=1"
2N/Afi
2N/A
2N/AHOST_CPPFLAGS="$HOST_CPPFLAGS $machine_CPPFLAGS"
2N/ATARGET_CPPFLAGS="$TARGET_CPPFLAGS $machine_CPPFLAGS"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A# Define default variables
2N/Acase "$host_os" in
2N/A netbsd* | openbsd*)
2N/A # Because /boot is used for the boot block in NetBSD and OpenBSD,
2N/A bootdirname='' ;;
2N/A *) bootdirname='boot' ;;
2N/Aesac
2N/Abootdirname=`echo "$bootdirname" | sed "$program_transform_name"`
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define GRUB_BOOT_DIR_NAME "$bootdirname"
2N/A_ACEOF
2N/A
2N/A
2N/Agrubdirname=`echo "$PACKAGE" | sed "$program_transform_name"`
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define GRUB_DIR_NAME "$grubdirname"
2N/A_ACEOF
2N/A
2N/A
2N/A#
2N/A# Checks for build programs.
2N/A#
2N/A
2N/A# Although cmp is listed in the GNU Coding Standards as a command which
2N/A# can used directly, OpenBSD lacks cmp in the default installation.
2N/Afor ac_prog in cmp
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_CMP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$CMP"; then
2N/A ac_cv_prog_CMP="$CMP" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_CMP="$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ACMP=$ac_cv_prog_CMP
2N/Aif test -n "$CMP"; then
2N/A { $as_echo "$as_me:$LINENO: result: $CMP" >&5
2N/A$as_echo "$CMP" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$CMP" && break
2N/Adone
2N/A
2N/Aif test "x$CMP" = x; then
2N/A { { $as_echo "$as_me:$LINENO: error: cmp is not found" >&5
2N/A$as_echo "$as_me: error: cmp is not found" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/Afor ac_prog in bison
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_YACC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$YACC"; then
2N/A ac_cv_prog_YACC="$YACC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_YACC="$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/AYACC=$ac_cv_prog_YACC
2N/Aif test -n "$YACC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $YACC" >&5
2N/A$as_echo "$YACC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$YACC" && break
2N/Adone
2N/A
2N/Aif test "x$YACC" = x; then
2N/A { { $as_echo "$as_me:$LINENO: error: bison is not found" >&5
2N/A$as_echo "$as_me: error: bison is not found" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/AFONT_SOURCE=
2N/A
2N/Afor ext in pcf pcf.gz bdf bdf.gz ttf ttf.gz; do
2N/A for dir in . /usr/src /usr/share/fonts/X11/misc /usr/share/fonts/unifont /usr/share/fonts/TrueType/unifont; do
2N/A if test -f "$dir/unifont.$ext"; then
2N/A FONT_SOURCE="$dir/unifont.$ext"
2N/A break 2
2N/A fi
2N/A done
2N/Adone
2N/A
2N/Aif test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xqemu_mips); then
2N/A { { $as_echo "$as_me:$LINENO: error: qemu and loongson ports need unifont" >&5
2N/A$as_echo "$as_me: error: qemu and loongson ports need unifont" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/A
2N/A
2N/Aif test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}ranlib; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_RANLIB+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$RANLIB"; then
2N/A ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ARANLIB=$ac_cv_prog_RANLIB
2N/Aif test -n "$RANLIB"; then
2N/A { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
2N/A$as_echo "$RANLIB" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_RANLIB"; then
2N/A ac_ct_RANLIB=$RANLIB
2N/A # Extract the first word of "ranlib", so it can be a program name with args.
2N/Aset dummy ranlib; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_RANLIB"; then
2N/A ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_RANLIB="ranlib"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2N/Aif test -n "$ac_ct_RANLIB"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2N/A$as_echo "$ac_ct_RANLIB" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_RANLIB" = x; then
2N/A RANLIB=":"
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A RANLIB=$ac_ct_RANLIB
2N/A fi
2N/Aelse
2N/A RANLIB="$ac_cv_prog_RANLIB"
2N/Afi
2N/A
2N/A# Find a good install program. We prefer a C program (faster),
2N/A# so one script is as good as another. But avoid the broken or
2N/A# incompatible versions:
2N/A# SysV /etc/install, /usr/sbin/install
2N/A# SunOS /usr/etc/install
2N/A# IRIX /sbin/install
2N/A# AIX /bin/install
2N/A# AmigaOS /C/install, which installs bootblocks on floppy discs
2N/A# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2N/A# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2N/A# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2N/A# OS/2's system install, which has a completely different semantic
2N/A# ./install, which can be erroneously created by make from ./install.sh.
2N/A# Reject install programs that cannot install multiple files.
2N/A{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2N/A$as_echo_n "checking for a BSD-compatible install... " >&6; }
2N/Aif test -z "$INSTALL"; then
2N/Aif test "${ac_cv_path_install+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A # Account for people who put trailing slashes in PATH elements.
2N/Acase $as_dir/ in
2N/A ./ | .// | /cC/* | \
2N/A /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2N/A ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2N/A /usr/ucb/* ) ;;
2N/A *)
2N/A # OSF1 and SCO ODT 3.0 have their own names for install.
2N/A # Don't use installbsd from OSF since it installs stuff as root
2N/A # by default.
2N/A for ac_prog in ginstall scoinst install; do
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2N/A if test $ac_prog = install &&
2N/A grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2N/A # AIX install. It has an incompatible calling convention.
2N/A :
2N/A elif test $ac_prog = install &&
2N/A grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2N/A # program-specific install script used by HP pwplus--don't use.
2N/A :
2N/A else
2N/A rm -rf conftest.one conftest.two conftest.dir
2N/A echo one > conftest.one
2N/A echo two > conftest.two
2N/A mkdir conftest.dir
2N/A if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2N/A test -s conftest.one && test -s conftest.two &&
2N/A test -s conftest.dir/conftest.one &&
2N/A test -s conftest.dir/conftest.two
2N/A then
2N/A ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2N/A break 3
2N/A fi
2N/A fi
2N/A fi
2N/A done
2N/A done
2N/A ;;
2N/Aesac
2N/A
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Arm -rf conftest.one conftest.two conftest.dir
2N/A
2N/Afi
2N/A if test "${ac_cv_path_install+set}" = set; then
2N/A INSTALL=$ac_cv_path_install
2N/A else
2N/A # As a last resort, use the slow shell script. Don't cache a
2N/A # value for INSTALL within a source directory, because that will
2N/A # break other packages using the cache if that directory is
2N/A # removed, or if the value is a relative name.
2N/A INSTALL=$ac_install_sh
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2N/A$as_echo "$INSTALL" >&6; }
2N/A
2N/A# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2N/A# It thinks the first close brace ends the variable substitution.
2N/Atest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2N/A
2N/Atest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2N/A
2N/Atest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2N/A
2N/Afor ac_prog in gawk mawk nawk awk
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_AWK+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$AWK"; then
2N/A ac_cv_prog_AWK="$AWK" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_AWK="$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/AAWK=$ac_cv_prog_AWK
2N/Aif test -n "$AWK"; then
2N/A { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2N/A$as_echo "$AWK" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$AWK" && break
2N/Adone
2N/A
2N/ADEPDIR="${am__leading_dot}deps"
2N/A
2N/Aac_config_commands="$ac_config_commands depfiles"
2N/A
2N/A
2N/Aam_make=${MAKE-make}
2N/Acat > confinc << 'END'
2N/Aam__doit:
2N/A @echo done
2N/A.PHONY: am__doit
2N/AEND
2N/A# If we don't find an include directive, just comment out the code.
2N/A{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2N/A$as_echo_n "checking for style of include used by $am_make... " >&6; }
2N/Aam__include="#"
2N/Aam__quote=
2N/A_am_result=none
2N/A# First try GNU make style include.
2N/Aecho "include confinc" > confmf
2N/A# We grep out `Entering directory' and `Leaving directory'
2N/A# messages which can occur if `w' ends up in MAKEFLAGS.
2N/A# In particular we don't look at `^make:' because GNU make might
2N/A# be invoked under some other name (usually "gmake"), in which
2N/A# case it prints its new name instead of `make'.
2N/Aif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2N/A am__include=include
2N/A am__quote=
2N/A _am_result=GNU
2N/Afi
2N/A# Now try BSD make style include.
2N/Aif test "$am__include" = "#"; then
2N/A echo '.include "confinc"' > confmf
2N/A if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2N/A am__include=.include
2N/A am__quote="\""
2N/A _am_result=BSD
2N/A fi
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2N/A$as_echo "$_am_result" >&6; }
2N/Arm -f confinc confmf
2N/A
2N/A@%:@ Check whether --enable-dependency-tracking was given.
2N/Aif test "${enable_dependency_tracking+set}" = set; then
2N/A enableval=$enable_dependency_tracking;
2N/Afi
2N/A
2N/Aif test "x$enable_dependency_tracking" != xno; then
2N/A am_depcomp="$ac_aux_dir/depcomp"
2N/A AMDEPBACKSLASH='\'
2N/Afi
2N/A if test "x$enable_dependency_tracking" != xno; then
2N/A AMDEP_TRUE=
2N/A AMDEP_FALSE='#'
2N/Aelse
2N/A AMDEP_TRUE='#'
2N/A AMDEP_FALSE=
2N/Afi
2N/A
2N/A
2N/Aac_ext=c
2N/Aac_cpp='$CPP $CPPFLAGS'
2N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
2N/Aif test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}gcc; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$CC"; then
2N/A ac_cv_prog_CC="$CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_CC="${ac_tool_prefix}gcc"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ACC=$ac_cv_prog_CC
2N/Aif test -n "$CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $CC" >&5
2N/A$as_echo "$CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_CC"; then
2N/A ac_ct_CC=$CC
2N/A # Extract the first word of "gcc", so it can be a program name with args.
2N/Aset dummy gcc; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_CC"; then
2N/A ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_CC="gcc"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_CC=$ac_cv_prog_ac_ct_CC
2N/Aif test -n "$ac_ct_CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2N/A$as_echo "$ac_ct_CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_CC" = x; then
2N/A CC=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A CC=$ac_ct_CC
2N/A fi
2N/Aelse
2N/A CC="$ac_cv_prog_CC"
2N/Afi
2N/A
2N/Aif test -z "$CC"; then
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}cc; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$CC"; then
2N/A ac_cv_prog_CC="$CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_CC="${ac_tool_prefix}cc"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ACC=$ac_cv_prog_CC
2N/Aif test -n "$CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $CC" >&5
2N/A$as_echo "$CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A fi
2N/Afi
2N/Aif test -z "$CC"; then
2N/A # Extract the first word of "cc", so it can be a program name with args.
2N/Aset dummy cc; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$CC"; then
2N/A ac_cv_prog_CC="$CC" # Let the user override the test.
2N/Aelse
2N/A ac_prog_rejected=no
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2N/A ac_prog_rejected=yes
2N/A continue
2N/A fi
2N/A ac_cv_prog_CC="cc"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Aif test $ac_prog_rejected = yes; then
2N/A # We found a bogon in the path, so make sure we never use it.
2N/A set dummy $ac_cv_prog_CC
2N/A shift
2N/A if test $@%:@ != 0; then
2N/A # We chose a different compiler from the bogus one.
2N/A # However, it has the same basename, so the bogon will be chosen
2N/A # first if we set CC to just the basename; use the full file name.
2N/A shift
2N/A ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2N/A fi
2N/Afi
2N/Afi
2N/Afi
2N/ACC=$ac_cv_prog_CC
2N/Aif test -n "$CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $CC" >&5
2N/A$as_echo "$CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$CC"; then
2N/A if test -n "$ac_tool_prefix"; then
2N/A for ac_prog in cl.exe
2N/A do
2N/A # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$CC"; then
2N/A ac_cv_prog_CC="$CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ACC=$ac_cv_prog_CC
2N/Aif test -n "$CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $CC" >&5
2N/A$as_echo "$CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$CC" && break
2N/A done
2N/Afi
2N/Aif test -z "$CC"; then
2N/A ac_ct_CC=$CC
2N/A for ac_prog in cl.exe
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_CC"; then
2N/A ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_CC="$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_CC=$ac_cv_prog_ac_ct_CC
2N/Aif test -n "$ac_ct_CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2N/A$as_echo "$ac_ct_CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$ac_ct_CC" && break
2N/Adone
2N/A
2N/A if test "x$ac_ct_CC" = x; then
2N/A CC=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A CC=$ac_ct_CC
2N/A fi
2N/Afi
2N/A
2N/Afi
2N/A
2N/A
2N/Atest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2N/ASee \`config.log' for more details." >&5
2N/A$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2N/ASee \`config.log' for more details." >&2;}
2N/A { (exit 1); exit 1; }; }; }
2N/A
2N/A# Provide some information about the compiler.
2N/A$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2N/Aset X $ac_compile
2N/Aac_compiler=$2
2N/A{ (ac_try="$ac_compiler --version >&5"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compiler --version >&5") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }
2N/A{ (ac_try="$ac_compiler -v >&5"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compiler -v >&5") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }
2N/A{ (ac_try="$ac_compiler -V >&5"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compiler -V >&5") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }
2N/A
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Aac_clean_files_save=$ac_clean_files
2N/Aac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2N/A# Try to create an executable without -o first, disregard a.out.
2N/A# It will help us diagnose broken compilers, and finding out an intuition
2N/A# of exeext.
2N/A{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2N/A$as_echo_n "checking for C compiler default output file name... " >&6; }
2N/Aac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2N/A
2N/A# The possible output files:
2N/Aac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2N/A
2N/Aac_rmfiles=
2N/Afor ac_file in $ac_files
2N/Ado
2N/A case $ac_file in
2N/A *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2N/A * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2N/A esac
2N/Adone
2N/Arm -f $ac_rmfiles
2N/A
2N/Aif { (ac_try="$ac_link_default"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link_default") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; then
2N/A # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2N/A# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2N/A# in a Makefile. We should not override ac_cv_exeext if it was cached,
2N/A# so that the user can short-circuit this test for compilers unknown to
2N/A# Autoconf.
2N/Afor ac_file in $ac_files ''
2N/Ado
2N/A test -f "$ac_file" || continue
2N/A case $ac_file in
2N/A *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2N/A ;;
2N/A [ab].out )
2N/A # We found the default executable, but exeext='' is most
2N/A # certainly right.
2N/A break;;
2N/A *.* )
2N/A if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2N/A then :; else
2N/A ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2N/A fi
2N/A # We set ac_cv_exeext here because the later test for it is not
2N/A # safe: cross compilers may not add the suffix if given an `-o'
2N/A # argument, so we may need to know it at that point already.
2N/A # Even if this section looks crufty: it has the advantage of
2N/A # actually working.
2N/A break;;
2N/A * )
2N/A break;;
2N/A esac
2N/Adone
2N/Atest "$ac_cv_exeext" = no && ac_cv_exeext=
2N/A
2N/Aelse
2N/A ac_file=''
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2N/A$as_echo "$ac_file" >&6; }
2N/Aif test -z "$ac_file"; then
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2N/ASee \`config.log' for more details." >&5
2N/A$as_echo "$as_me: error: C compiler cannot create executables
2N/ASee \`config.log' for more details." >&2;}
2N/A { (exit 77); exit 77; }; }; }
2N/Afi
2N/A
2N/Aac_exeext=$ac_cv_exeext
2N/A
2N/A# Check that the compiler produces executables we can run. If not, either
2N/A# the compiler is broken, or we cross compile.
2N/A{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2N/A$as_echo_n "checking whether the C compiler works... " >&6; }
2N/A# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2N/A# If not cross compiling, check that we can run a simple program.
2N/Aif test "$cross_compiling" != yes; then
2N/A if { ac_try='./$ac_file'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A cross_compiling=no
2N/A else
2N/A if test "$cross_compiling" = maybe; then
2N/A cross_compiling=yes
2N/A else
2N/A { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2N/AIf you meant to cross compile, use \`--host'.
2N/ASee \`config.log' for more details." >&5
2N/A$as_echo "$as_me: error: cannot run C compiled programs.
2N/AIf you meant to cross compile, use \`--host'.
2N/ASee \`config.log' for more details." >&2;}
2N/A { (exit 1); exit 1; }; }; }
2N/A fi
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/A
2N/Arm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2N/Aac_clean_files=$ac_clean_files_save
2N/A# Check that the compiler produces executables we can run. If not, either
2N/A# the compiler is broken, or we cross compile.
2N/A{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2N/A$as_echo_n "checking whether we are cross compiling... " >&6; }
2N/A{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2N/A$as_echo "$cross_compiling" >&6; }
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2N/A$as_echo_n "checking for suffix of executables... " >&6; }
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; then
2N/A # If both `conftest.exe' and `conftest' are `present' (well, observable)
2N/A# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2N/A# work properly (i.e., refer to `conftest.exe'), while it won't with
2N/A# `rm'.
2N/Afor ac_file in conftest.exe conftest conftest.*; do
2N/A test -f "$ac_file" || continue
2N/A case $ac_file in
2N/A *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2N/A *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2N/A break;;
2N/A * ) break;;
2N/A esac
2N/Adone
2N/Aelse
2N/A { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2N/ASee \`config.log' for more details." >&5
2N/A$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2N/ASee \`config.log' for more details." >&2;}
2N/A { (exit 1); exit 1; }; }; }
2N/Afi
2N/A
2N/Arm -f conftest$ac_cv_exeext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2N/A$as_echo "$ac_cv_exeext" >&6; }
2N/A
2N/Arm -f conftest.$ac_ext
2N/AEXEEXT=$ac_cv_exeext
2N/Aac_exeext=$EXEEXT
2N/A{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2N/A$as_echo_n "checking for suffix of object files... " >&6; }
2N/Aif test "${ac_cv_objext+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.o conftest.obj
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; then
2N/A for ac_file in conftest.o conftest.obj conftest.*; do
2N/A test -f "$ac_file" || continue;
2N/A case $ac_file in
2N/A *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2N/A *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2N/A break;;
2N/A esac
2N/Adone
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2N/ASee \`config.log' for more details." >&5
2N/A$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2N/ASee \`config.log' for more details." >&2;}
2N/A { (exit 1); exit 1; }; }; }
2N/Afi
2N/A
2N/Arm -f conftest.$ac_cv_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2N/A$as_echo "$ac_cv_objext" >&6; }
2N/AOBJEXT=$ac_cv_objext
2N/Aac_objext=$OBJEXT
2N/A{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2N/A$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2N/Aif test "${ac_cv_c_compiler_gnu+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef __GNUC__
2N/A choke me
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_compiler_gnu=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_compiler_gnu=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Aac_cv_c_compiler_gnu=$ac_compiler_gnu
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2N/A$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2N/Aif test $ac_compiler_gnu = yes; then
2N/A GCC=yes
2N/Aelse
2N/A GCC=
2N/Afi
2N/Aac_test_CFLAGS=${CFLAGS+set}
2N/Aac_save_CFLAGS=$CFLAGS
2N/A{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2N/A$as_echo_n "checking whether $CC accepts -g... " >&6; }
2N/Aif test "${ac_cv_prog_cc_g+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_save_c_werror_flag=$ac_c_werror_flag
2N/A ac_c_werror_flag=yes
2N/A ac_cv_prog_cc_g=no
2N/A CFLAGS="-g"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_prog_cc_g=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A CFLAGS=""
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A :
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_c_werror_flag=$ac_save_c_werror_flag
2N/A CFLAGS="-g"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_prog_cc_g=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A ac_c_werror_flag=$ac_save_c_werror_flag
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2N/A$as_echo "$ac_cv_prog_cc_g" >&6; }
2N/Aif test "$ac_test_CFLAGS" = set; then
2N/A CFLAGS=$ac_save_CFLAGS
2N/Aelif test $ac_cv_prog_cc_g = yes; then
2N/A if test "$GCC" = yes; then
2N/A CFLAGS="-g -O2"
2N/A else
2N/A CFLAGS="-g"
2N/A fi
2N/Aelse
2N/A if test "$GCC" = yes; then
2N/A CFLAGS="-O2"
2N/A else
2N/A CFLAGS=
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2N/A$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2N/Aif test "${ac_cv_prog_cc_c89+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_prog_cc_c89=no
2N/Aac_save_CC=$CC
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdarg.h>
2N/A#include <stdio.h>
2N/A#include <sys/types.h>
2N/A#include <sys/stat.h>
2N/A/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2N/Astruct buf { int x; };
2N/AFILE * (*rcsopen) (struct buf *, struct stat *, int);
2N/Astatic char *e (p, i)
2N/A char **p;
2N/A int i;
2N/A{
2N/A return p[i];
2N/A}
2N/Astatic char *f (char * (*g) (char **, int), char **p, ...)
2N/A{
2N/A char *s;
2N/A va_list v;
2N/A va_start (v,p);
2N/A s = g (p, va_arg (v,int));
2N/A va_end (v);
2N/A return s;
2N/A}
2N/A
2N/A/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2N/A function prototypes and stuff, but not '\xHH' hex character constants.
2N/A These don't provoke an error unfortunately, instead are silently treated
2N/A as 'x'. The following induces an error, until -std is added to get
2N/A proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2N/A array size at least. It's necessary to write '\x00'==0 to get something
2N/A that's true only with -std. */
2N/Aint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2N/A
2N/A/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2N/A inside strings and character constants. */
2N/A#define FOO(x) 'x'
2N/Aint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2N/A
2N/Aint test (int i, double x);
2N/Astruct s1 {int (*f) (int a);};
2N/Astruct s2 {int (*f) (double a);};
2N/Aint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2N/Aint argc;
2N/Achar **argv;
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Afor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2N/A -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2N/Ado
2N/A CC="$ac_save_CC $ac_arg"
2N/A rm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_prog_cc_c89=$ac_arg
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext
2N/A test "x$ac_cv_prog_cc_c89" != "xno" && break
2N/Adone
2N/Arm -f conftest.$ac_ext
2N/ACC=$ac_save_CC
2N/A
2N/Afi
2N/A# AC_CACHE_VAL
2N/Acase "x$ac_cv_prog_cc_c89" in
2N/A x)
2N/A { $as_echo "$as_me:$LINENO: result: none needed" >&5
2N/A$as_echo "none needed" >&6; } ;;
2N/A xno)
2N/A { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2N/A$as_echo "unsupported" >&6; } ;;
2N/A *)
2N/A CC="$CC $ac_cv_prog_cc_c89"
2N/A { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2N/A$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2N/Aesac
2N/A
2N/A
2N/Aac_ext=c
2N/Aac_cpp='$CPP $CPPFLAGS'
2N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
2N/A
2N/Adepcc="$CC" am_compiler_list=
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2N/A$as_echo_n "checking dependency style of $depcc... " >&6; }
2N/Aif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2N/A # We make a subdir and do the tests there. Otherwise we can end up
2N/A # making bogus files that we don't know about and never remove. For
2N/A # instance it was reported that on HP-UX the gcc test will end up
2N/A # making a dummy file named `D' -- because `-MD' means `put the output
2N/A # in D'.
2N/A mkdir conftest.dir
2N/A # Copy depcomp to subdir because otherwise we won't find it if we're
2N/A # using a relative directory.
2N/A cp "$am_depcomp" conftest.dir
2N/A cd conftest.dir
2N/A # We will build objects and dependencies in a subdirectory because
2N/A # it helps to detect inapplicable dependency modes. For instance
2N/A # both Tru64's cc and ICC support -MD to output dependencies as a
2N/A # side effect of compilation, but ICC will put the dependencies in
2N/A # the current directory while Tru64 will put them in the object
2N/A # directory.
2N/A mkdir sub
2N/A
2N/A am_cv_CC_dependencies_compiler_type=none
2N/A if test "$am_compiler_list" = ""; then
2N/A am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2N/A fi
2N/A for depmode in $am_compiler_list; do
2N/A # Setup a source with many dependencies, because some compilers
2N/A # like to wrap large dependency lists on column 80 (with \), and
2N/A # we should not choose a depcomp mode which is confused by this.
2N/A #
2N/A # We need to recreate these files for each test, as the compiler may
2N/A # overwrite some of them when testing with obscure command lines.
2N/A # This happens at least with the AIX C compiler.
2N/A : > sub/conftest.c
2N/A for i in 1 2 3 4 5 6; do
2N/A echo '#include "conftst'$i'.h"' >> sub/conftest.c
2N/A # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2N/A # Solaris 8's {/usr,}/bin/sh.
2N/A touch sub/conftst$i.h
2N/A done
2N/A echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2N/A
2N/A case $depmode in
2N/A nosideeffect)
2N/A # after this tag, mechanisms are not by side-effect, so they'll
2N/A # only be used when explicitly requested
2N/A if test "x$enable_dependency_tracking" = xyes; then
2N/A continue
2N/A else
2N/A break
2N/A fi
2N/A ;;
2N/A none) break ;;
2N/A esac
2N/A # We check with `-c' and `-o' for the sake of the "dashmstdout"
2N/A # mode. It turns out that the SunPro C++ compiler does not properly
2N/A # handle `-M -o', and we need to detect this.
2N/A if depmode=$depmode \
2N/A source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2N/A depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2N/A $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2N/A >/dev/null 2>conftest.err &&
2N/A grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2N/A grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2N/A grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2N/A ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2N/A # icc doesn't choke on unknown options, it will just issue warnings
2N/A # or remarks (even with -Werror). So we grep stderr for any message
2N/A # that says an option was ignored or not supported.
2N/A # When given -MP, icc 7.0 and 7.1 complain thusly:
2N/A # icc: Command line warning: ignoring option '-M'; no argument required
2N/A # The diagnosis changed in icc 8.0:
2N/A # icc: Command line remark: option '-MP' not supported
2N/A if (grep 'ignoring option' conftest.err ||
2N/A grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2N/A am_cv_CC_dependencies_compiler_type=$depmode
2N/A break
2N/A fi
2N/A fi
2N/A done
2N/A
2N/A cd ..
2N/A rm -rf conftest.dir
2N/Aelse
2N/A am_cv_CC_dependencies_compiler_type=none
2N/Afi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2N/A$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2N/ACCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2N/A
2N/A if
2N/A test "x$enable_dependency_tracking" != xno \
2N/A && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2N/A am__fastdepCC_TRUE=
2N/A am__fastdepCC_FALSE='#'
2N/Aelse
2N/A am__fastdepCC_TRUE='#'
2N/A am__fastdepCC_FALSE=
2N/Afi
2N/A
2N/A
2N/A
2N/Afor ac_prog in flex lex
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_LEX+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$LEX"; then
2N/A ac_cv_prog_LEX="$LEX" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_LEX="$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ALEX=$ac_cv_prog_LEX
2N/Aif test -n "$LEX"; then
2N/A { $as_echo "$as_me:$LINENO: result: $LEX" >&5
2N/A$as_echo "$LEX" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$LEX" && break
2N/Adone
2N/Atest -n "$LEX" || LEX=":"
2N/A
2N/Aif test "x$LEX" != "x:"; then
2N/A cat >conftest.l <<_ACEOF
2N/A%%
2N/Aa { ECHO; }
2N/Ab { REJECT; }
2N/Ac { yymore (); }
2N/Ad { yyless (1); }
2N/Ae { yyless (input () != 0); }
2N/Af { unput (yytext[0]); }
2N/A. { BEGIN INITIAL; }
2N/A%%
2N/A#ifdef YYTEXT_POINTER
2N/Aextern char *yytext;
2N/A#endif
2N/Aint
2N/Amain (void)
2N/A{
2N/A return ! yylex () + ! yywrap ();
2N/A}
2N/A_ACEOF
2N/A{ (ac_try="$LEX conftest.l"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$LEX conftest.l") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }
2N/A{ $as_echo "$as_me:$LINENO: checking lex output file root" >&5
2N/A$as_echo_n "checking lex output file root... " >&6; }
2N/Aif test "${ac_cv_prog_lex_root+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/Aif test -f lex.yy.c; then
2N/A ac_cv_prog_lex_root=lex.yy
2N/Aelif test -f lexyy.c; then
2N/A ac_cv_prog_lex_root=lexyy
2N/Aelse
2N/A { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
2N/A$as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
2N/A$as_echo "$ac_cv_prog_lex_root" >&6; }
2N/ALEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
2N/A
2N/Aif test -z "${LEXLIB+set}"; then
2N/A { $as_echo "$as_me:$LINENO: checking lex library" >&5
2N/A$as_echo_n "checking lex library... " >&6; }
2N/Aif test "${ac_cv_lib_lex+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A ac_save_LIBS=$LIBS
2N/A ac_cv_lib_lex='none needed'
2N/A for ac_lib in '' -lfl -ll; do
2N/A LIBS="$ac_lib $ac_save_LIBS"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A`cat $LEX_OUTPUT_ROOT.c`
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_lex=$ac_lib
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A test "$ac_cv_lib_lex" != 'none needed' && break
2N/A done
2N/A LIBS=$ac_save_LIBS
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
2N/A$as_echo "$ac_cv_lib_lex" >&6; }
2N/A test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
2N/A$as_echo_n "checking whether yytext is a pointer... " >&6; }
2N/Aif test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A # POSIX says lex can declare yytext either as a pointer or an array; the
2N/A# default is implementation-dependent. Figure out which it is, since
2N/A# not all implementations provide the %pointer and %array declarations.
2N/Aac_cv_prog_lex_yytext_pointer=no
2N/Aac_save_LIBS=$LIBS
2N/ALIBS="$LEXLIB $ac_save_LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A#define YYTEXT_POINTER 1
2N/A`cat $LEX_OUTPUT_ROOT.c`
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_prog_lex_yytext_pointer=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_save_LIBS
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
2N/A$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
2N/Aif test $ac_cv_prog_lex_yytext_pointer = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define YYTEXT_POINTER 1
2N/A_ACEOF
2N/A
2N/Afi
2N/Arm -f conftest.l $LEX_OUTPUT_ROOT.c
2N/A
2N/Afi
2N/Afor ac_prog in 'bison -y' byacc
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_YACC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$YACC"; then
2N/A ac_cv_prog_YACC="$YACC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_YACC="$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/AYACC=$ac_cv_prog_YACC
2N/Aif test -n "$YACC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $YACC" >&5
2N/A$as_echo "$YACC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$YACC" && break
2N/Adone
2N/Atest -n "$YACC" || YACC="yacc"
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2N/A$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2N/Aset x ${MAKE-make}
2N/Aac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2N/Aif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.make <<\_ACEOF
2N/ASHELL = /bin/sh
2N/Aall:
2N/A @echo '@@@%%%=$(MAKE)=@@@%%%'
2N/A_ACEOF
2N/A# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2N/Acase `${MAKE-make} -f conftest.make 2>/dev/null` in
2N/A *@@@%%%=?*=@@@%%%*)
2N/A eval ac_cv_prog_make_${ac_make}_set=yes;;
2N/A *)
2N/A eval ac_cv_prog_make_${ac_make}_set=no;;
2N/Aesac
2N/Arm -f conftest.make
2N/Afi
2N/Aif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2N/A { $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/A SET_MAKE=
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/A SET_MAKE="MAKE=${MAKE-make}"
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2N/A$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2N/Aif test -z "$MKDIR_P"; then
2N/A if test "${ac_cv_path_mkdir+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_prog in mkdir gmkdir; do
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2N/A case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2N/A 'mkdir (GNU coreutils) '* | \
2N/A 'mkdir (coreutils) '* | \
2N/A 'mkdir (fileutils) '4.1*)
2N/A ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2N/A break 3;;
2N/A esac
2N/A done
2N/A done
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/A
2N/A if test "${ac_cv_path_mkdir+set}" = set; then
2N/A MKDIR_P="$ac_cv_path_mkdir -p"
2N/A else
2N/A # As a last resort, use the slow shell script. Don't cache a
2N/A # value for MKDIR_P within a source directory, because that will
2N/A # break other packages using the cache if that directory is
2N/A # removed, or if the value is a relative name.
2N/A test -d ./--version && rmdir ./--version
2N/A MKDIR_P="$ac_install_sh -d"
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2N/A$as_echo "$MKDIR_P" >&6; }
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
2N/A$as_echo_n "checking whether ln -s works... " >&6; }
2N/ALN_S=$as_ln_s
2N/Aif test "$LN_S" = "ln -s"; then
2N/A { $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2N/A$as_echo "no, using $LN_S" >&6; }
2N/Afi
2N/A
2N/A
2N/Aif test "x$LEX" = "x:"; then
2N/A { { $as_echo "$as_me:$LINENO: error: flex is not found" >&5
2N/A$as_echo "$as_me: error: flex is not found" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Aelse
2N/A version=`$LEX --version | $AWK '{ split($NF,x,"."); print x[1]*10000+x[2]*100+x[3]; }'`
2N/A if test -n "$version" -a "$version" -ge 20535; then
2N/A :
2N/A else
2N/A { { $as_echo "$as_me:$LINENO: error: flex is too old. GRUB requires 2.5.35 or above" >&5
2N/A$as_echo "$as_me: error: flex is too old. GRUB requires 2.5.35 or above" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/Afi
2N/A
2N/A# These are not a "must".
2N/Afor ac_prog in makeinfo true
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_path_MAKEINFO+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A case $MAKEINFO in
2N/A [\\/]* | ?:[\\/]*)
2N/A ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
2N/A ;;
2N/A *)
2N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/A ;;
2N/Aesac
2N/Afi
2N/AMAKEINFO=$ac_cv_path_MAKEINFO
2N/Aif test -n "$MAKEINFO"; then
2N/A { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
2N/A$as_echo "$MAKEINFO" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$MAKEINFO" && break
2N/Adone
2N/A
2N/A
2N/A#
2N/A# Checks for host programs.
2N/A#
2N/A
2N/Aac_ext=c
2N/Aac_cpp='$CPP $CPPFLAGS'
2N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
2N/Aif test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}gcc; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$CC"; then
2N/A ac_cv_prog_CC="$CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_CC="${ac_tool_prefix}gcc"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ACC=$ac_cv_prog_CC
2N/Aif test -n "$CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $CC" >&5
2N/A$as_echo "$CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_CC"; then
2N/A ac_ct_CC=$CC
2N/A # Extract the first word of "gcc", so it can be a program name with args.
2N/Aset dummy gcc; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_CC"; then
2N/A ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_CC="gcc"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_CC=$ac_cv_prog_ac_ct_CC
2N/Aif test -n "$ac_ct_CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2N/A$as_echo "$ac_ct_CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_CC" = x; then
2N/A CC=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A CC=$ac_ct_CC
2N/A fi
2N/Aelse
2N/A CC="$ac_cv_prog_CC"
2N/Afi
2N/A
2N/Aif test -z "$CC"; then
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}cc; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$CC"; then
2N/A ac_cv_prog_CC="$CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_CC="${ac_tool_prefix}cc"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ACC=$ac_cv_prog_CC
2N/Aif test -n "$CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $CC" >&5
2N/A$as_echo "$CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A fi
2N/Afi
2N/Aif test -z "$CC"; then
2N/A # Extract the first word of "cc", so it can be a program name with args.
2N/Aset dummy cc; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$CC"; then
2N/A ac_cv_prog_CC="$CC" # Let the user override the test.
2N/Aelse
2N/A ac_prog_rejected=no
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2N/A ac_prog_rejected=yes
2N/A continue
2N/A fi
2N/A ac_cv_prog_CC="cc"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Aif test $ac_prog_rejected = yes; then
2N/A # We found a bogon in the path, so make sure we never use it.
2N/A set dummy $ac_cv_prog_CC
2N/A shift
2N/A if test $@%:@ != 0; then
2N/A # We chose a different compiler from the bogus one.
2N/A # However, it has the same basename, so the bogon will be chosen
2N/A # first if we set CC to just the basename; use the full file name.
2N/A shift
2N/A ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2N/A fi
2N/Afi
2N/Afi
2N/Afi
2N/ACC=$ac_cv_prog_CC
2N/Aif test -n "$CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $CC" >&5
2N/A$as_echo "$CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$CC"; then
2N/A if test -n "$ac_tool_prefix"; then
2N/A for ac_prog in cl.exe
2N/A do
2N/A # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$CC"; then
2N/A ac_cv_prog_CC="$CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ACC=$ac_cv_prog_CC
2N/Aif test -n "$CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $CC" >&5
2N/A$as_echo "$CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$CC" && break
2N/A done
2N/Afi
2N/Aif test -z "$CC"; then
2N/A ac_ct_CC=$CC
2N/A for ac_prog in cl.exe
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_CC"; then
2N/A ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_CC="$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_CC=$ac_cv_prog_ac_ct_CC
2N/Aif test -n "$ac_ct_CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2N/A$as_echo "$ac_ct_CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$ac_ct_CC" && break
2N/Adone
2N/A
2N/A if test "x$ac_ct_CC" = x; then
2N/A CC=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A CC=$ac_ct_CC
2N/A fi
2N/Afi
2N/A
2N/Afi
2N/A
2N/A
2N/Atest -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2N/ASee \`config.log' for more details." >&5
2N/A$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2N/ASee \`config.log' for more details." >&2;}
2N/A { (exit 1); exit 1; }; }; }
2N/A
2N/A# Provide some information about the compiler.
2N/A$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2N/Aset X $ac_compile
2N/Aac_compiler=$2
2N/A{ (ac_try="$ac_compiler --version >&5"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compiler --version >&5") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }
2N/A{ (ac_try="$ac_compiler -v >&5"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compiler -v >&5") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }
2N/A{ (ac_try="$ac_compiler -V >&5"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compiler -V >&5") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2N/A$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2N/Aif test "${ac_cv_c_compiler_gnu+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef __GNUC__
2N/A choke me
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_compiler_gnu=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_compiler_gnu=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Aac_cv_c_compiler_gnu=$ac_compiler_gnu
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2N/A$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2N/Aif test $ac_compiler_gnu = yes; then
2N/A GCC=yes
2N/Aelse
2N/A GCC=
2N/Afi
2N/Aac_test_CFLAGS=${CFLAGS+set}
2N/Aac_save_CFLAGS=$CFLAGS
2N/A{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2N/A$as_echo_n "checking whether $CC accepts -g... " >&6; }
2N/Aif test "${ac_cv_prog_cc_g+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_save_c_werror_flag=$ac_c_werror_flag
2N/A ac_c_werror_flag=yes
2N/A ac_cv_prog_cc_g=no
2N/A CFLAGS="-g"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_prog_cc_g=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A CFLAGS=""
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A :
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_c_werror_flag=$ac_save_c_werror_flag
2N/A CFLAGS="-g"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_prog_cc_g=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A ac_c_werror_flag=$ac_save_c_werror_flag
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2N/A$as_echo "$ac_cv_prog_cc_g" >&6; }
2N/Aif test "$ac_test_CFLAGS" = set; then
2N/A CFLAGS=$ac_save_CFLAGS
2N/Aelif test $ac_cv_prog_cc_g = yes; then
2N/A if test "$GCC" = yes; then
2N/A CFLAGS="-g -O2"
2N/A else
2N/A CFLAGS="-g"
2N/A fi
2N/Aelse
2N/A if test "$GCC" = yes; then
2N/A CFLAGS="-O2"
2N/A else
2N/A CFLAGS=
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2N/A$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2N/Aif test "${ac_cv_prog_cc_c89+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_prog_cc_c89=no
2N/Aac_save_CC=$CC
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdarg.h>
2N/A#include <stdio.h>
2N/A#include <sys/types.h>
2N/A#include <sys/stat.h>
2N/A/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2N/Astruct buf { int x; };
2N/AFILE * (*rcsopen) (struct buf *, struct stat *, int);
2N/Astatic char *e (p, i)
2N/A char **p;
2N/A int i;
2N/A{
2N/A return p[i];
2N/A}
2N/Astatic char *f (char * (*g) (char **, int), char **p, ...)
2N/A{
2N/A char *s;
2N/A va_list v;
2N/A va_start (v,p);
2N/A s = g (p, va_arg (v,int));
2N/A va_end (v);
2N/A return s;
2N/A}
2N/A
2N/A/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2N/A function prototypes and stuff, but not '\xHH' hex character constants.
2N/A These don't provoke an error unfortunately, instead are silently treated
2N/A as 'x'. The following induces an error, until -std is added to get
2N/A proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2N/A array size at least. It's necessary to write '\x00'==0 to get something
2N/A that's true only with -std. */
2N/Aint osf4_cc_array ['\x00' == 0 ? 1 : -1];
2N/A
2N/A/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2N/A inside strings and character constants. */
2N/A#define FOO(x) 'x'
2N/Aint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2N/A
2N/Aint test (int i, double x);
2N/Astruct s1 {int (*f) (int a);};
2N/Astruct s2 {int (*f) (double a);};
2N/Aint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2N/Aint argc;
2N/Achar **argv;
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Afor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2N/A -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2N/Ado
2N/A CC="$ac_save_CC $ac_arg"
2N/A rm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_prog_cc_c89=$ac_arg
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext
2N/A test "x$ac_cv_prog_cc_c89" != "xno" && break
2N/Adone
2N/Arm -f conftest.$ac_ext
2N/ACC=$ac_save_CC
2N/A
2N/Afi
2N/A# AC_CACHE_VAL
2N/Acase "x$ac_cv_prog_cc_c89" in
2N/A x)
2N/A { $as_echo "$as_me:$LINENO: result: none needed" >&5
2N/A$as_echo "none needed" >&6; } ;;
2N/A xno)
2N/A { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2N/A$as_echo "unsupported" >&6; } ;;
2N/A *)
2N/A CC="$CC $ac_cv_prog_cc_c89"
2N/A { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2N/A$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2N/Aesac
2N/A
2N/A
2N/Aac_ext=c
2N/Aac_cpp='$CPP $CPPFLAGS'
2N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
2N/A
2N/Adepcc="$CC" am_compiler_list=
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2N/A$as_echo_n "checking dependency style of $depcc... " >&6; }
2N/Aif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2N/A # We make a subdir and do the tests there. Otherwise we can end up
2N/A # making bogus files that we don't know about and never remove. For
2N/A # instance it was reported that on HP-UX the gcc test will end up
2N/A # making a dummy file named `D' -- because `-MD' means `put the output
2N/A # in D'.
2N/A mkdir conftest.dir
2N/A # Copy depcomp to subdir because otherwise we won't find it if we're
2N/A # using a relative directory.
2N/A cp "$am_depcomp" conftest.dir
2N/A cd conftest.dir
2N/A # We will build objects and dependencies in a subdirectory because
2N/A # it helps to detect inapplicable dependency modes. For instance
2N/A # both Tru64's cc and ICC support -MD to output dependencies as a
2N/A # side effect of compilation, but ICC will put the dependencies in
2N/A # the current directory while Tru64 will put them in the object
2N/A # directory.
2N/A mkdir sub
2N/A
2N/A am_cv_CC_dependencies_compiler_type=none
2N/A if test "$am_compiler_list" = ""; then
2N/A am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2N/A fi
2N/A for depmode in $am_compiler_list; do
2N/A # Setup a source with many dependencies, because some compilers
2N/A # like to wrap large dependency lists on column 80 (with \), and
2N/A # we should not choose a depcomp mode which is confused by this.
2N/A #
2N/A # We need to recreate these files for each test, as the compiler may
2N/A # overwrite some of them when testing with obscure command lines.
2N/A # This happens at least with the AIX C compiler.
2N/A : > sub/conftest.c
2N/A for i in 1 2 3 4 5 6; do
2N/A echo '#include "conftst'$i'.h"' >> sub/conftest.c
2N/A # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2N/A # Solaris 8's {/usr,}/bin/sh.
2N/A touch sub/conftst$i.h
2N/A done
2N/A echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2N/A
2N/A case $depmode in
2N/A nosideeffect)
2N/A # after this tag, mechanisms are not by side-effect, so they'll
2N/A # only be used when explicitly requested
2N/A if test "x$enable_dependency_tracking" = xyes; then
2N/A continue
2N/A else
2N/A break
2N/A fi
2N/A ;;
2N/A none) break ;;
2N/A esac
2N/A # We check with `-c' and `-o' for the sake of the "dashmstdout"
2N/A # mode. It turns out that the SunPro C++ compiler does not properly
2N/A # handle `-M -o', and we need to detect this.
2N/A if depmode=$depmode \
2N/A source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2N/A depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2N/A $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2N/A >/dev/null 2>conftest.err &&
2N/A grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2N/A grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2N/A grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2N/A ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2N/A # icc doesn't choke on unknown options, it will just issue warnings
2N/A # or remarks (even with -Werror). So we grep stderr for any message
2N/A # that says an option was ignored or not supported.
2N/A # When given -MP, icc 7.0 and 7.1 complain thusly:
2N/A # icc: Command line warning: ignoring option '-M'; no argument required
2N/A # The diagnosis changed in icc 8.0:
2N/A # icc: Command line remark: option '-MP' not supported
2N/A if (grep 'ignoring option' conftest.err ||
2N/A grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2N/A am_cv_CC_dependencies_compiler_type=$depmode
2N/A break
2N/A fi
2N/A fi
2N/A done
2N/A
2N/A cd ..
2N/A rm -rf conftest.dir
2N/Aelse
2N/A am_cv_CC_dependencies_compiler_type=none
2N/Afi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2N/A$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
2N/ACCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2N/A
2N/A if
2N/A test "x$enable_dependency_tracking" != xno \
2N/A && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2N/A am__fastdepCC_TRUE=
2N/A am__fastdepCC_FALSE='#'
2N/Aelse
2N/A am__fastdepCC_TRUE='#'
2N/A am__fastdepCC_FALSE=
2N/Afi
2N/A
2N/A
2N/Aac_ext=c
2N/Aac_cpp='$CPP $CPPFLAGS'
2N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
2N/A{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2N/A$as_echo_n "checking how to run the C preprocessor... " >&6; }
2N/A# On Suns, sometimes $CPP names a directory.
2N/Aif test -n "$CPP" && test -d "$CPP"; then
2N/A CPP=
2N/Afi
2N/Aif test -z "$CPP"; then
2N/A if test "${ac_cv_prog_CPP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A # Double quotes because CPP needs to be expanded
2N/A for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2N/A do
2N/A ac_preproc_ok=false
2N/Afor ac_c_preproc_warn_flag in '' yes
2N/Ado
2N/A # Use a header file that comes with gcc, so configuring glibc
2N/A # with a fresh cross-compiler works.
2N/A # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A # <limits.h> exists even on freestanding compilers.
2N/A # On the NeXT, cc -E runs the code through the compiler's parser,
2N/A # not just through cpp. "Syntax error" is here to catch this case.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@ifdef __STDC__
2N/A@%:@ include <limits.h>
2N/A@%:@else
2N/A@%:@ include <assert.h>
2N/A@%:@endif
2N/A Syntax error
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A :
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A # Broken: fails on valid input.
2N/Acontinue
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A
2N/A # OK, works on sane cases. Now check whether nonexistent headers
2N/A # can be detected and how.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <ac_nonexistent.h>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A # Broken: success on invalid input.
2N/Acontinue
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A # Passes both tests.
2N/Aac_preproc_ok=:
2N/Abreak
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A
2N/Adone
2N/A# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2N/Arm -f conftest.err conftest.$ac_ext
2N/Aif $ac_preproc_ok; then
2N/A break
2N/Afi
2N/A
2N/A done
2N/A ac_cv_prog_CPP=$CPP
2N/A
2N/Afi
2N/A CPP=$ac_cv_prog_CPP
2N/Aelse
2N/A ac_cv_prog_CPP=$CPP
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
2N/A$as_echo "$CPP" >&6; }
2N/Aac_preproc_ok=false
2N/Afor ac_c_preproc_warn_flag in '' yes
2N/Ado
2N/A # Use a header file that comes with gcc, so configuring glibc
2N/A # with a fresh cross-compiler works.
2N/A # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A # <limits.h> exists even on freestanding compilers.
2N/A # On the NeXT, cc -E runs the code through the compiler's parser,
2N/A # not just through cpp. "Syntax error" is here to catch this case.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@ifdef __STDC__
2N/A@%:@ include <limits.h>
2N/A@%:@else
2N/A@%:@ include <assert.h>
2N/A@%:@endif
2N/A Syntax error
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A :
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A # Broken: fails on valid input.
2N/Acontinue
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A
2N/A # OK, works on sane cases. Now check whether nonexistent headers
2N/A # can be detected and how.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <ac_nonexistent.h>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A # Broken: success on invalid input.
2N/Acontinue
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A # Passes both tests.
2N/Aac_preproc_ok=:
2N/Abreak
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A
2N/Adone
2N/A# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2N/Arm -f conftest.err conftest.$ac_ext
2N/Aif $ac_preproc_ok; then
2N/A :
2N/Aelse
2N/A { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2N/ASee \`config.log' for more details." >&5
2N/A$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2N/ASee \`config.log' for more details." >&2;}
2N/A { (exit 1); exit 1; }; }; }
2N/Afi
2N/A
2N/Aac_ext=c
2N/Aac_cpp='$CPP $CPPFLAGS'
2N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
2N/A$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2N/Aif test "${ac_cv_path_GREP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -z "$GREP"; then
2N/A ac_path_GREP_found=false
2N/A # Loop through the user's path and test for each of PROGNAME-LIST
2N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_prog in grep ggrep; do
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2N/A { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2N/A# Check for GNU ac_path_GREP and select it if it is found.
2N/A # Check for GNU $ac_path_GREP
2N/Acase `"$ac_path_GREP" --version 2>&1` in
2N/A*GNU*)
2N/A ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2N/A*)
2N/A ac_count=0
2N/A $as_echo_n 0123456789 >"conftest.in"
2N/A while :
2N/A do
2N/A cat "conftest.in" "conftest.in" >"conftest.tmp"
2N/A mv "conftest.tmp" "conftest.in"
2N/A cp "conftest.in" "conftest.nl"
2N/A $as_echo 'GREP' >> "conftest.nl"
2N/A "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2N/A diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2N/A ac_count=`expr $ac_count + 1`
2N/A if test $ac_count -gt ${ac_path_GREP_max-0}; then
2N/A # Best one so far, save it but keep looking for a better one
2N/A ac_cv_path_GREP="$ac_path_GREP"
2N/A ac_path_GREP_max=$ac_count
2N/A fi
2N/A # 10*(2^10) chars as input seems more than enough
2N/A test $ac_count -gt 10 && break
2N/A done
2N/A rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2N/Aesac
2N/A
2N/A $ac_path_GREP_found && break 3
2N/A done
2N/A done
2N/Adone
2N/AIFS=$as_save_IFS
2N/A if test -z "$ac_cv_path_GREP"; then
2N/A { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2N/A$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/Aelse
2N/A ac_cv_path_GREP=$GREP
2N/Afi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
2N/A$as_echo "$ac_cv_path_GREP" >&6; }
2N/A GREP="$ac_cv_path_GREP"
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
2N/A$as_echo_n "checking for egrep... " >&6; }
2N/Aif test "${ac_cv_path_EGREP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2N/A then ac_cv_path_EGREP="$GREP -E"
2N/A else
2N/A if test -z "$EGREP"; then
2N/A ac_path_EGREP_found=false
2N/A # Loop through the user's path and test for each of PROGNAME-LIST
2N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_prog in egrep; do
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2N/A { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2N/A# Check for GNU ac_path_EGREP and select it if it is found.
2N/A # Check for GNU $ac_path_EGREP
2N/Acase `"$ac_path_EGREP" --version 2>&1` in
2N/A*GNU*)
2N/A ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2N/A*)
2N/A ac_count=0
2N/A $as_echo_n 0123456789 >"conftest.in"
2N/A while :
2N/A do
2N/A cat "conftest.in" "conftest.in" >"conftest.tmp"
2N/A mv "conftest.tmp" "conftest.in"
2N/A cp "conftest.in" "conftest.nl"
2N/A $as_echo 'EGREP' >> "conftest.nl"
2N/A "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2N/A diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2N/A ac_count=`expr $ac_count + 1`
2N/A if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2N/A # Best one so far, save it but keep looking for a better one
2N/A ac_cv_path_EGREP="$ac_path_EGREP"
2N/A ac_path_EGREP_max=$ac_count
2N/A fi
2N/A # 10*(2^10) chars as input seems more than enough
2N/A test $ac_count -gt 10 && break
2N/A done
2N/A rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2N/Aesac
2N/A
2N/A $ac_path_EGREP_found && break 3
2N/A done
2N/A done
2N/Adone
2N/AIFS=$as_save_IFS
2N/A if test -z "$ac_cv_path_EGREP"; then
2N/A { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
2N/A$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/Aelse
2N/A ac_cv_path_EGREP=$EGREP
2N/Afi
2N/A
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
2N/A$as_echo "$ac_cv_path_EGREP" >&6; }
2N/A EGREP="$ac_cv_path_EGREP"
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2N/A$as_echo_n "checking for ANSI C header files... " >&6; }
2N/Aif test "${ac_cv_header_stdc+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdlib.h>
2N/A#include <stdarg.h>
2N/A#include <string.h>
2N/A#include <float.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_header_stdc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_header_stdc=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Aif test $ac_cv_header_stdc = yes; then
2N/A # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <string.h>
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "memchr" >/dev/null 2>&1; then
2N/A :
2N/Aelse
2N/A ac_cv_header_stdc=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/Afi
2N/A
2N/Aif test $ac_cv_header_stdc = yes; then
2N/A # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdlib.h>
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "free" >/dev/null 2>&1; then
2N/A :
2N/Aelse
2N/A ac_cv_header_stdc=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/Afi
2N/A
2N/Aif test $ac_cv_header_stdc = yes; then
2N/A # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <ctype.h>
2N/A#include <stdlib.h>
2N/A#if ((' ' & 0x0FF) == 0x020)
2N/A# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2N/A# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2N/A#else
2N/A# define ISLOWER(c) \
2N/A (('a' <= (c) && (c) <= 'i') \
2N/A || ('j' <= (c) && (c) <= 'r') \
2N/A || ('s' <= (c) && (c) <= 'z'))
2N/A# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2N/A#endif
2N/A
2N/A#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2N/Aint
2N/Amain ()
2N/A{
2N/A int i;
2N/A for (i = 0; i < 256; i++)
2N/A if (XOR (islower (i), ISLOWER (i))
2N/A || toupper (i) != TOUPPER (i))
2N/A return 2;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A :
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aac_cv_header_stdc=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2N/A$as_echo "$ac_cv_header_stdc" >&6; }
2N/Aif test $ac_cv_header_stdc = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define STDC_HEADERS 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/A# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2N/A inttypes.h stdint.h unistd.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A eval "$as_ac_Header=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_Header=no"
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test "${ac_cv_header_minix_config_h+set}" = set; then
2N/A { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
2N/A$as_echo_n "checking for minix/config.h... " >&6; }
2N/Aif test "${ac_cv_header_minix_config_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2N/A$as_echo "$ac_cv_header_minix_config_h" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2N/A$as_echo_n "checking minix/config.h usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <minix/config.h>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2N/A$as_echo_n "checking minix/config.h presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <minix/config.h>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
2N/A$as_echo_n "checking for minix/config.h... " >&6; }
2N/Aif test "${ac_cv_header_minix_config_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_header_minix_config_h=$ac_header_preproc
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2N/A$as_echo "$ac_cv_header_minix_config_h" >&6; }
2N/A
2N/Afi
2N/Aif test "x$ac_cv_header_minix_config_h" = x""yes; then
2N/A MINIX=yes
2N/Aelse
2N/A MINIX=
2N/Afi
2N/A
2N/A
2N/A if test "$MINIX" = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define _POSIX_SOURCE 1
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define _POSIX_1_SOURCE 2
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define _MINIX 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A case "$host_os" in
2N/A hpux*)
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define _XOPEN_SOURCE 500
2N/A_ACEOF
2N/A
2N/A ;;
2N/A esac
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
2N/A$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
2N/Aif test "${ac_cv_safe_to_define___extensions__+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A# define __EXTENSIONS__ 1
2N/A $ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_safe_to_define___extensions__=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_safe_to_define___extensions__=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
2N/A$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
2N/A test $ac_cv_safe_to_define___extensions__ = yes &&
2N/A cat >>confdefs.h <<\_ACEOF
2N/A@%:@define __EXTENSIONS__ 1
2N/A_ACEOF
2N/A
2N/A cat >>confdefs.h <<\_ACEOF
2N/A@%:@define _ALL_SOURCE 1
2N/A_ACEOF
2N/A
2N/A cat >>confdefs.h <<\_ACEOF
2N/A@%:@define _GNU_SOURCE 1
2N/A_ACEOF
2N/A
2N/A cat >>confdefs.h <<\_ACEOF
2N/A@%:@define _POSIX_PTHREAD_SEMANTICS 1
2N/A_ACEOF
2N/A
2N/A cat >>confdefs.h <<\_ACEOF
2N/A@%:@define _TANDEM_SOURCE 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A # Code from module alloca:
2N/A # Code from module alloca-opt:
2N/A # Code from module arg-nonnull:
2N/A # Code from module argp:
2N/A # Code from module btowc:
2N/A # Code from module c++defs:
2N/A # Code from module configmake:
2N/A # Code from module dirname-lgpl:
2N/A # Code from module double-slash-root:
2N/A # Code from module errno:
2N/A # Code from module error:
2N/A # Code from module extensions:
2N/A
2N/A # Code from module float:
2N/A # Code from module fnmatch:
2N/A # Code from module getdelim:
2N/A # Code from module getline:
2N/A # Code from module getopt-gnu:
2N/A # Code from module getopt-posix:
2N/A # Code from module gettext:
2N/A # Code from module gettext-h:
2N/A # Code from module havelib:
2N/A # Code from module include_next:
2N/A # Code from module intprops:
2N/A # Code from module langinfo:
2N/A # Code from module localcharset:
2N/A # Code from module malloc-gnu:
2N/A # Code from module malloc-posix:
2N/A # Code from module mbrtowc:
2N/A # Code from module mbsinit:
2N/A # Code from module mbsrtowcs:
2N/A # Code from module memchr:
2N/A # Code from module mempcpy:
2N/A # Code from module multiarch:
2N/A # Code from module nl_langinfo:
2N/A # Code from module progname:
2N/A # Code from module rawmemchr:
2N/A # Code from module realloc-posix:
2N/A # Code from module regex:
2N/A # Code from module size_max:
2N/A # Code from module sleep:
2N/A # Code from module ssize_t:
2N/A # Code from module stdbool:
2N/A # Code from module stddef:
2N/A # Code from module stdint:
2N/A # Code from module stdio:
2N/A # Code from module stdlib:
2N/A # Code from module strcase:
2N/A # Code from module strchrnul:
2N/A # Code from module streq:
2N/A # Code from module strerror:
2N/A # Code from module string:
2N/A # Code from module strings:
2N/A # Code from module strndup:
2N/A # Code from module strnlen:
2N/A # Code from module strnlen1:
2N/A # Code from module sys_wait:
2N/A # Code from module sysexits:
2N/A # Code from module unistd:
2N/A # Code from module vasnprintf:
2N/A # Code from module verify:
2N/A # Code from module vsnprintf:
2N/A # Code from module warn-on-use:
2N/A # Code from module wchar:
2N/A # Code from module wcrtomb:
2N/A # Code from module wctype:
2N/A # Code from module xsize:
2N/A
2N/Aif test "x$CC" != xcc; then
2N/A { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2N/A$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2N/A$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
2N/Afi
2N/Aset dummy $CC; ac_cc=`$as_echo "$2" |
2N/A sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2N/Aif { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/A# Make sure it works both with $CC and with simple cc.
2N/A# We do the test twice because some compilers refuse to overwrite an
2N/A# existing .o file with -o, though they will create one.
2N/Aac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2N/Arm -f conftest2.*
2N/Aif { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } &&
2N/A test -f conftest2.$ac_objext && { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); };
2N/Athen
2N/A eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2N/A if test "x$CC" != xcc; then
2N/A # Test first that cc exists at all.
2N/A if { ac_try='cc -c conftest.$ac_ext >&5'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
2N/A rm -f conftest2.*
2N/A if { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } &&
2N/A test -f conftest2.$ac_objext && { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); };
2N/A then
2N/A # cc works too.
2N/A :
2N/A else
2N/A # cc exists but doesn't like -o.
2N/A eval ac_cv_prog_cc_${ac_cc}_c_o=no
2N/A fi
2N/A fi
2N/A fi
2N/Aelse
2N/A eval ac_cv_prog_cc_${ac_cc}_c_o=no
2N/Afi
2N/Arm -f core conftest*
2N/A
2N/Afi
2N/Aif eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
2N/A { $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define NO_MINUS_C_MINUS_O 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/A# FIXME: we rely on the cache variable name because
2N/A# there is no other way.
2N/Aset dummy $CC
2N/Aac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2N/Aif eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
2N/A # Losing compiler, so override with the script.
2N/A # FIXME: It is wrong to rewrite CC.
2N/A # But if we don't then we get into trouble of one sort or another.
2N/A # A longer-term fix would be to have automake use am__CC in this case,
2N/A # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
2N/A CC="$am_aux_dir/compile $CC"
2N/Afi
2N/A
2N/A
2N/A# By default we simply use the C compiler to build assembly code.
2N/A
2N/Atest "${CCAS+set}" = set || CCAS=$CC
2N/Atest "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
2N/A
2N/A
2N/A
2N/Adepcc="$CCAS" am_compiler_list=
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2N/A$as_echo_n "checking dependency style of $depcc... " >&6; }
2N/Aif test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2N/A # We make a subdir and do the tests there. Otherwise we can end up
2N/A # making bogus files that we don't know about and never remove. For
2N/A # instance it was reported that on HP-UX the gcc test will end up
2N/A # making a dummy file named `D' -- because `-MD' means `put the output
2N/A # in D'.
2N/A mkdir conftest.dir
2N/A # Copy depcomp to subdir because otherwise we won't find it if we're
2N/A # using a relative directory.
2N/A cp "$am_depcomp" conftest.dir
2N/A cd conftest.dir
2N/A # We will build objects and dependencies in a subdirectory because
2N/A # it helps to detect inapplicable dependency modes. For instance
2N/A # both Tru64's cc and ICC support -MD to output dependencies as a
2N/A # side effect of compilation, but ICC will put the dependencies in
2N/A # the current directory while Tru64 will put them in the object
2N/A # directory.
2N/A mkdir sub
2N/A
2N/A am_cv_CCAS_dependencies_compiler_type=none
2N/A if test "$am_compiler_list" = ""; then
2N/A am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2N/A fi
2N/A for depmode in $am_compiler_list; do
2N/A # Setup a source with many dependencies, because some compilers
2N/A # like to wrap large dependency lists on column 80 (with \), and
2N/A # we should not choose a depcomp mode which is confused by this.
2N/A #
2N/A # We need to recreate these files for each test, as the compiler may
2N/A # overwrite some of them when testing with obscure command lines.
2N/A # This happens at least with the AIX C compiler.
2N/A : > sub/conftest.c
2N/A for i in 1 2 3 4 5 6; do
2N/A echo '#include "conftst'$i'.h"' >> sub/conftest.c
2N/A # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2N/A # Solaris 8's {/usr,}/bin/sh.
2N/A touch sub/conftst$i.h
2N/A done
2N/A echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2N/A
2N/A case $depmode in
2N/A nosideeffect)
2N/A # after this tag, mechanisms are not by side-effect, so they'll
2N/A # only be used when explicitly requested
2N/A if test "x$enable_dependency_tracking" = xyes; then
2N/A continue
2N/A else
2N/A break
2N/A fi
2N/A ;;
2N/A none) break ;;
2N/A esac
2N/A # We check with `-c' and `-o' for the sake of the "dashmstdout"
2N/A # mode. It turns out that the SunPro C++ compiler does not properly
2N/A # handle `-M -o', and we need to detect this.
2N/A if depmode=$depmode \
2N/A source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2N/A depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2N/A $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2N/A >/dev/null 2>conftest.err &&
2N/A grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
2N/A grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2N/A grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2N/A ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2N/A # icc doesn't choke on unknown options, it will just issue warnings
2N/A # or remarks (even with -Werror). So we grep stderr for any message
2N/A # that says an option was ignored or not supported.
2N/A # When given -MP, icc 7.0 and 7.1 complain thusly:
2N/A # icc: Command line warning: ignoring option '-M'; no argument required
2N/A # The diagnosis changed in icc 8.0:
2N/A # icc: Command line remark: option '-MP' not supported
2N/A if (grep 'ignoring option' conftest.err ||
2N/A grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2N/A am_cv_CCAS_dependencies_compiler_type=$depmode
2N/A break
2N/A fi
2N/A fi
2N/A done
2N/A
2N/A cd ..
2N/A rm -rf conftest.dir
2N/Aelse
2N/A am_cv_CCAS_dependencies_compiler_type=none
2N/Afi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
2N/A$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
2N/ACCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
2N/A
2N/A if
2N/A test "x$enable_dependency_tracking" != xno \
2N/A && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
2N/A am__fastdepCCAS_TRUE=
2N/A am__fastdepCCAS_FALSE='#'
2N/Aelse
2N/A am__fastdepCCAS_TRUE='#'
2N/A am__fastdepCCAS_FALSE=
2N/Afi
2N/A
2N/A
2N/A
2N/A# Must be GCC.
2N/Atest "x$GCC" = xyes || { { $as_echo "$as_me:$LINENO: error: GCC is required" >&5
2N/A$as_echo "$as_me: error: GCC is required" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2N/A$as_echo_n "checking whether NLS is requested... " >&6; }
2N/A @%:@ Check whether --enable-nls was given.
2N/Aif test "${enable_nls+set}" = set; then
2N/A enableval=$enable_nls; USE_NLS=$enableval
2N/Aelse
2N/A USE_NLS=yes
2N/Afi
2N/A
2N/A { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
2N/A$as_echo "$USE_NLS" >&6; }
2N/A
2N/A
2N/A
2N/A
2N/A GETTEXT_MACRO_VERSION=0.18
2N/A
2N/A
2N/A
2N/A
2N/A# Prepare PATH_SEPARATOR.
2N/A# The user is always right.
2N/Aif test "${PATH_SEPARATOR+set}" != set; then
2N/A # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
2N/A # contains only /bin. Note that ksh looks also at the FPATH variable,
2N/A # so we have to set that as well for the test.
2N/A PATH_SEPARATOR=:
2N/A (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2N/A && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2N/A || PATH_SEPARATOR=';'
2N/A }
2N/Afi
2N/A
2N/A# Find out how to test for executable files. Don't use a zero-byte file,
2N/A# as systems may use methods other than mode bits to determine executability.
2N/Acat >conf$$.file <<_ASEOF
2N/A#! /bin/sh
2N/Aexit 0
2N/A_ASEOF
2N/Achmod +x conf$$.file
2N/Aif test -x conf$$.file >/dev/null 2>&1; then
2N/A ac_executable_p="test -x"
2N/Aelse
2N/A ac_executable_p="test -f"
2N/Afi
2N/Arm -f conf$$.file
2N/A
2N/A# Extract the first word of "msgfmt", so it can be a program name with args.
2N/Aset dummy msgfmt; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_path_MSGFMT+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A case "$MSGFMT" in
2N/A [\\/]* | ?:[\\/]*)
2N/A ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2N/A ;;
2N/A *)
2N/A ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2N/A for ac_dir in $PATH; do
2N/A IFS="$ac_save_IFS"
2N/A test -z "$ac_dir" && ac_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2N/A echo "$as_me: trying $ac_dir/$ac_word..." >&5
2N/A if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2N/A (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2N/A ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2N/A break 2
2N/A fi
2N/A fi
2N/A done
2N/A done
2N/A IFS="$ac_save_IFS"
2N/A test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2N/A ;;
2N/Aesac
2N/Afi
2N/AMSGFMT="$ac_cv_path_MSGFMT"
2N/Aif test "$MSGFMT" != ":"; then
2N/A { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
2N/A$as_echo "$MSGFMT" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A # Extract the first word of "gmsgfmt", so it can be a program name with args.
2N/Aset dummy gmsgfmt; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_path_GMSGFMT+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A case $GMSGFMT in
2N/A [\\/]* | ?:[\\/]*)
2N/A ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2N/A ;;
2N/A *)
2N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/A test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2N/A ;;
2N/Aesac
2N/Afi
2N/AGMSGFMT=$ac_cv_path_GMSGFMT
2N/Aif test -n "$GMSGFMT"; then
2N/A { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2N/A$as_echo "$GMSGFMT" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A
2N/A case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2N/A '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
2N/A *) MSGFMT_015=$MSGFMT ;;
2N/A esac
2N/A
2N/A case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2N/A '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
2N/A *) GMSGFMT_015=$GMSGFMT ;;
2N/A esac
2N/A
2N/A
2N/A
2N/A# Prepare PATH_SEPARATOR.
2N/A# The user is always right.
2N/Aif test "${PATH_SEPARATOR+set}" != set; then
2N/A # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
2N/A # contains only /bin. Note that ksh looks also at the FPATH variable,
2N/A # so we have to set that as well for the test.
2N/A PATH_SEPARATOR=:
2N/A (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2N/A && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2N/A || PATH_SEPARATOR=';'
2N/A }
2N/Afi
2N/A
2N/A# Find out how to test for executable files. Don't use a zero-byte file,
2N/A# as systems may use methods other than mode bits to determine executability.
2N/Acat >conf$$.file <<_ASEOF
2N/A#! /bin/sh
2N/Aexit 0
2N/A_ASEOF
2N/Achmod +x conf$$.file
2N/Aif test -x conf$$.file >/dev/null 2>&1; then
2N/A ac_executable_p="test -x"
2N/Aelse
2N/A ac_executable_p="test -f"
2N/Afi
2N/Arm -f conf$$.file
2N/A
2N/A# Extract the first word of "xgettext", so it can be a program name with args.
2N/Aset dummy xgettext; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_path_XGETTEXT+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A case "$XGETTEXT" in
2N/A [\\/]* | ?:[\\/]*)
2N/A ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2N/A ;;
2N/A *)
2N/A ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2N/A for ac_dir in $PATH; do
2N/A IFS="$ac_save_IFS"
2N/A test -z "$ac_dir" && ac_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2N/A echo "$as_me: trying $ac_dir/$ac_word..." >&5
2N/A if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
2N/A (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
2N/A ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2N/A break 2
2N/A fi
2N/A fi
2N/A done
2N/A done
2N/A IFS="$ac_save_IFS"
2N/A test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2N/A ;;
2N/Aesac
2N/Afi
2N/AXGETTEXT="$ac_cv_path_XGETTEXT"
2N/Aif test "$XGETTEXT" != ":"; then
2N/A { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2N/A$as_echo "$XGETTEXT" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A rm -f messages.po
2N/A
2N/A case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
2N/A '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
2N/A *) XGETTEXT_015=$XGETTEXT ;;
2N/A esac
2N/A
2N/A
2N/A
2N/A# Prepare PATH_SEPARATOR.
2N/A# The user is always right.
2N/Aif test "${PATH_SEPARATOR+set}" != set; then
2N/A # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
2N/A # contains only /bin. Note that ksh looks also at the FPATH variable,
2N/A # so we have to set that as well for the test.
2N/A PATH_SEPARATOR=:
2N/A (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2N/A && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2N/A || PATH_SEPARATOR=';'
2N/A }
2N/Afi
2N/A
2N/A# Find out how to test for executable files. Don't use a zero-byte file,
2N/A# as systems may use methods other than mode bits to determine executability.
2N/Acat >conf$$.file <<_ASEOF
2N/A#! /bin/sh
2N/Aexit 0
2N/A_ASEOF
2N/Achmod +x conf$$.file
2N/Aif test -x conf$$.file >/dev/null 2>&1; then
2N/A ac_executable_p="test -x"
2N/Aelse
2N/A ac_executable_p="test -f"
2N/Afi
2N/Arm -f conf$$.file
2N/A
2N/A# Extract the first word of "msgmerge", so it can be a program name with args.
2N/Aset dummy msgmerge; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_path_MSGMERGE+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A case "$MSGMERGE" in
2N/A [\\/]* | ?:[\\/]*)
2N/A ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2N/A ;;
2N/A *)
2N/A ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2N/A for ac_dir in $PATH; do
2N/A IFS="$ac_save_IFS"
2N/A test -z "$ac_dir" && ac_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2N/A echo "$as_me: trying $ac_dir/$ac_word..." >&5
2N/A if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2N/A ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2N/A break 2
2N/A fi
2N/A fi
2N/A done
2N/A done
2N/A IFS="$ac_save_IFS"
2N/A test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2N/A ;;
2N/Aesac
2N/Afi
2N/AMSGMERGE="$ac_cv_path_MSGMERGE"
2N/Aif test "$MSGMERGE" != ":"; then
2N/A { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2N/A$as_echo "$MSGMERGE" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$localedir" || localedir='${datadir}/locale'
2N/A
2N/A
2N/A test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
2N/A
2N/A
2N/A ac_config_commands="$ac_config_commands po-directories"
2N/A
2N/A
2N/A
2N/A if test "X$prefix" = "XNONE"; then
2N/A acl_final_prefix="$ac_default_prefix"
2N/A else
2N/A acl_final_prefix="$prefix"
2N/A fi
2N/A if test "X$exec_prefix" = "XNONE"; then
2N/A acl_final_exec_prefix='${prefix}'
2N/A else
2N/A acl_final_exec_prefix="$exec_prefix"
2N/A fi
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A
2N/A@%:@ Check whether --with-gnu-ld was given.
2N/Aif test "${with_gnu_ld+set}" = set; then
2N/A withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
2N/Aelse
2N/A with_gnu_ld=no
2N/Afi
2N/A
2N/A# Prepare PATH_SEPARATOR.
2N/A# The user is always right.
2N/Aif test "${PATH_SEPARATOR+set}" != set; then
2N/A # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
2N/A # contains only /bin. Note that ksh looks also at the FPATH variable,
2N/A # so we have to set that as well for the test.
2N/A PATH_SEPARATOR=:
2N/A (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2N/A && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
2N/A || PATH_SEPARATOR=';'
2N/A }
2N/Afi
2N/Aac_prog=ld
2N/Aif test "$GCC" = yes; then
2N/A # Check if gcc -print-prog-name=ld gives a path.
2N/A { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2N/A$as_echo_n "checking for ld used by GCC... " >&6; }
2N/A case $host in
2N/A *-*-mingw*)
2N/A # gcc leaves a trailing carriage return which upsets mingw
2N/A ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2N/A *)
2N/A ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2N/A esac
2N/A case $ac_prog in
2N/A # Accept absolute paths.
2N/A [\\/]* | [A-Za-z]:[\\/]*)
2N/A re_direlt='/[^/][^/]*/\.\./'
2N/A # Canonicalize the path of ld
2N/A ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2N/A while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2N/A ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2N/A done
2N/A test -z "$LD" && LD="$ac_prog"
2N/A ;;
2N/A "")
2N/A # If it fails, then pretend we aren't using GCC.
2N/A ac_prog=ld
2N/A ;;
2N/A *)
2N/A # If it is relative, then search for the first ld in PATH.
2N/A with_gnu_ld=unknown
2N/A ;;
2N/A esac
2N/Aelif test "$with_gnu_ld" = yes; then
2N/A { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
2N/A$as_echo_n "checking for GNU ld... " >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2N/A$as_echo_n "checking for non-GNU ld... " >&6; }
2N/Afi
2N/Aif test "${acl_cv_path_LD+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -z "$LD"; then
2N/A IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2N/A for ac_dir in $PATH; do
2N/A test -z "$ac_dir" && ac_dir=.
2N/A if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2N/A acl_cv_path_LD="$ac_dir/$ac_prog"
2N/A # Check to see if the program is GNU ld. I'd rather use --version,
2N/A # but apparently some GNU ld's only accept -v.
2N/A # Break only if it was the GNU/non-GNU ld that we prefer.
2N/A case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
2N/A *GNU* | *'with BFD'*)
2N/A test "$with_gnu_ld" != no && break ;;
2N/A *)
2N/A test "$with_gnu_ld" != yes && break ;;
2N/A esac
2N/A fi
2N/A done
2N/A IFS="$ac_save_ifs"
2N/Aelse
2N/A acl_cv_path_LD="$LD" # Let the user override the test with a path.
2N/Afi
2N/Afi
2N/A
2N/ALD="$acl_cv_path_LD"
2N/Aif test -n "$LD"; then
2N/A { $as_echo "$as_me:$LINENO: result: $LD" >&5
2N/A$as_echo "$LD" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/Atest -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2N/A$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2N/A$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
2N/Aif test "${acl_cv_prog_gnu_ld+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2N/Acase `$LD -v 2>&1 </dev/null` in
2N/A*GNU* | *'with BFD'*)
2N/A acl_cv_prog_gnu_ld=yes ;;
2N/A*)
2N/A acl_cv_prog_gnu_ld=no ;;
2N/Aesac
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
2N/A$as_echo "$acl_cv_prog_gnu_ld" >&6; }
2N/Awith_gnu_ld=$acl_cv_prog_gnu_ld
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
2N/A$as_echo_n "checking for shared library run path origin... " >&6; }
2N/Aif test "${acl_cv_rpath+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
2N/A ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
2N/A . ./conftest.sh
2N/A rm -f ./conftest.sh
2N/A acl_cv_rpath=done
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
2N/A$as_echo "$acl_cv_rpath" >&6; }
2N/A wl="$acl_cv_wl"
2N/A acl_libext="$acl_cv_libext"
2N/A acl_shlibext="$acl_cv_shlibext"
2N/A acl_libname_spec="$acl_cv_libname_spec"
2N/A acl_library_names_spec="$acl_cv_library_names_spec"
2N/A acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
2N/A acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
2N/A acl_hardcode_direct="$acl_cv_hardcode_direct"
2N/A acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
2N/A @%:@ Check whether --enable-rpath was given.
2N/Aif test "${enable_rpath+set}" = set; then
2N/A enableval=$enable_rpath; :
2N/Aelse
2N/A enable_rpath=yes
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A acl_libdirstem=lib
2N/A acl_libdirstem2=
2N/A case "$host_os" in
2N/A solaris*)
2N/A { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
2N/A$as_echo_n "checking for 64-bit host... " >&6; }
2N/Aif test "${gl_cv_solaris_64bit+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#ifdef _LP64
2N/Asixtyfour bits
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "sixtyfour bits" >/dev/null 2>&1; then
2N/A gl_cv_solaris_64bit=yes
2N/Aelse
2N/A gl_cv_solaris_64bit=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
2N/A$as_echo "$gl_cv_solaris_64bit" >&6; }
2N/A if test $gl_cv_solaris_64bit = yes; then
2N/A acl_libdirstem=lib/64
2N/A case "$host_cpu" in
2N/A sparc*) acl_libdirstem2=lib/sparcv9 ;;
2N/A i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
2N/A esac
2N/A fi
2N/A ;;
2N/A *)
2N/A searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
2N/A if test -n "$searchpath"; then
2N/A acl_save_IFS="${IFS= }"; IFS=":"
2N/A for searchdir in $searchpath; do
2N/A if test -d "$searchdir"; then
2N/A case "$searchdir" in
2N/A */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
2N/A */../ | */.. )
2N/A # Better ignore directories of this form. They are misleading.
2N/A ;;
2N/A *) searchdir=`cd "$searchdir" && pwd`
2N/A case "$searchdir" in
2N/A */lib64 ) acl_libdirstem=lib64 ;;
2N/A esac ;;
2N/A esac
2N/A fi
2N/A done
2N/A IFS="$acl_save_IFS"
2N/A fi
2N/A ;;
2N/A esac
2N/A test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A use_additional=yes
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/A
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A
2N/A@%:@ Check whether --with-libiconv-prefix was given.
2N/Aif test "${with_libiconv_prefix+set}" = set; then
2N/A withval=$with_libiconv_prefix;
2N/A if test "X$withval" = "Xno"; then
2N/A use_additional=no
2N/A else
2N/A if test "X$withval" = "X"; then
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/A
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A else
2N/A additional_includedir="$withval/include"
2N/A additional_libdir="$withval/$acl_libdirstem"
2N/A if test "$acl_libdirstem2" != "$acl_libdirstem" \
2N/A && ! test -d "$withval/$acl_libdirstem"; then
2N/A additional_libdir="$withval/$acl_libdirstem2"
2N/A fi
2N/A fi
2N/A fi
2N/A
2N/Afi
2N/A
2N/A LIBICONV=
2N/A LTLIBICONV=
2N/A INCICONV=
2N/A LIBICONV_PREFIX=
2N/A HAVE_LIBICONV=
2N/A rpathdirs=
2N/A ltrpathdirs=
2N/A names_already_handled=
2N/A names_next_round='iconv '
2N/A while test -n "$names_next_round"; do
2N/A names_this_round="$names_next_round"
2N/A names_next_round=
2N/A for name in $names_this_round; do
2N/A already_handled=
2N/A for n in $names_already_handled; do
2N/A if test "$n" = "$name"; then
2N/A already_handled=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$already_handled"; then
2N/A names_already_handled="$names_already_handled $name"
2N/A uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
2N/A eval value=\"\$HAVE_LIB$uppername\"
2N/A if test -n "$value"; then
2N/A if test "$value" = yes; then
2N/A eval value=\"\$LIB$uppername\"
2N/A test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
2N/A eval value=\"\$LTLIB$uppername\"
2N/A test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
2N/A else
2N/A :
2N/A fi
2N/A else
2N/A found_dir=
2N/A found_la=
2N/A found_so=
2N/A found_a=
2N/A eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
2N/A if test -n "$acl_shlibext"; then
2N/A shrext=".$acl_shlibext" # typically: shrext=.so
2N/A else
2N/A shrext=
2N/A fi
2N/A if test $use_additional = yes; then
2N/A dir="$additional_libdir"
2N/A if test -n "$acl_shlibext"; then
2N/A if test -f "$dir/$libname$shrext"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$libname$shrext"
2N/A else
2N/A if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
2N/A ver=`(cd "$dir" && \
2N/A for f in "$libname$shrext".*; do echo "$f"; done \
2N/A | sed -e "s,^$libname$shrext\\\\.,," \
2N/A | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
2N/A | sed 1q ) 2>/dev/null`
2N/A if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$libname$shrext.$ver"
2N/A fi
2N/A else
2N/A eval library_names=\"$acl_library_names_spec\"
2N/A for f in $library_names; do
2N/A if test -f "$dir/$f"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$f"
2N/A break
2N/A fi
2N/A done
2N/A fi
2N/A fi
2N/A fi
2N/A if test "X$found_dir" = "X"; then
2N/A if test -f "$dir/$libname.$acl_libext"; then
2N/A found_dir="$dir"
2N/A found_a="$dir/$libname.$acl_libext"
2N/A fi
2N/A fi
2N/A if test "X$found_dir" != "X"; then
2N/A if test -f "$dir/$libname.la"; then
2N/A found_la="$dir/$libname.la"
2N/A fi
2N/A fi
2N/A fi
2N/A if test "X$found_dir" = "X"; then
2N/A for x in $LDFLAGS $LTLIBICONV; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A case "$x" in
2N/A -L*)
2N/A dir=`echo "X$x" | sed -e 's/^X-L//'`
2N/A if test -n "$acl_shlibext"; then
2N/A if test -f "$dir/$libname$shrext"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$libname$shrext"
2N/A else
2N/A if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
2N/A ver=`(cd "$dir" && \
2N/A for f in "$libname$shrext".*; do echo "$f"; done \
2N/A | sed -e "s,^$libname$shrext\\\\.,," \
2N/A | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
2N/A | sed 1q ) 2>/dev/null`
2N/A if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$libname$shrext.$ver"
2N/A fi
2N/A else
2N/A eval library_names=\"$acl_library_names_spec\"
2N/A for f in $library_names; do
2N/A if test -f "$dir/$f"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$f"
2N/A break
2N/A fi
2N/A done
2N/A fi
2N/A fi
2N/A fi
2N/A if test "X$found_dir" = "X"; then
2N/A if test -f "$dir/$libname.$acl_libext"; then
2N/A found_dir="$dir"
2N/A found_a="$dir/$libname.$acl_libext"
2N/A fi
2N/A fi
2N/A if test "X$found_dir" != "X"; then
2N/A if test -f "$dir/$libname.la"; then
2N/A found_la="$dir/$libname.la"
2N/A fi
2N/A fi
2N/A ;;
2N/A esac
2N/A if test "X$found_dir" != "X"; then
2N/A break
2N/A fi
2N/A done
2N/A fi
2N/A if test "X$found_dir" != "X"; then
2N/A LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
2N/A if test "X$found_so" != "X"; then
2N/A if test "$enable_rpath" = no \
2N/A || test "X$found_dir" = "X/usr/$acl_libdirstem" \
2N/A || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
2N/A else
2N/A haveit=
2N/A for x in $ltrpathdirs; do
2N/A if test "X$x" = "X$found_dir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A ltrpathdirs="$ltrpathdirs $found_dir"
2N/A fi
2N/A if test "$acl_hardcode_direct" = yes; then
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
2N/A else
2N/A if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
2N/A haveit=
2N/A for x in $rpathdirs; do
2N/A if test "X$x" = "X$found_dir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A rpathdirs="$rpathdirs $found_dir"
2N/A fi
2N/A else
2N/A haveit=
2N/A for x in $LDFLAGS $LIBICONV; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A if test "X$x" = "X-L$found_dir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
2N/A fi
2N/A if test "$acl_hardcode_minus_L" != no; then
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
2N/A else
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A else
2N/A if test "X$found_a" != "X"; then
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
2N/A else
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
2N/A fi
2N/A fi
2N/A additional_includedir=
2N/A case "$found_dir" in
2N/A */$acl_libdirstem | */$acl_libdirstem/)
2N/A basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
2N/A if test "$name" = 'iconv'; then
2N/A LIBICONV_PREFIX="$basedir"
2N/A fi
2N/A additional_includedir="$basedir/include"
2N/A ;;
2N/A */$acl_libdirstem2 | */$acl_libdirstem2/)
2N/A basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
2N/A if test "$name" = 'iconv'; then
2N/A LIBICONV_PREFIX="$basedir"
2N/A fi
2N/A additional_includedir="$basedir/include"
2N/A ;;
2N/A esac
2N/A if test "X$additional_includedir" != "X"; then
2N/A if test "X$additional_includedir" != "X/usr/include"; then
2N/A haveit=
2N/A if test "X$additional_includedir" = "X/usr/local/include"; then
2N/A if test -n "$GCC"; then
2N/A case $host_os in
2N/A linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2N/A esac
2N/A fi
2N/A fi
2N/A if test -z "$haveit"; then
2N/A for x in $CPPFLAGS $INCICONV; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A if test "X$x" = "X-I$additional_includedir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A if test -d "$additional_includedir"; then
2N/A INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A if test -n "$found_la"; then
2N/A save_libdir="$libdir"
2N/A case "$found_la" in
2N/A */* | *\\*) . "$found_la" ;;
2N/A *) . "./$found_la" ;;
2N/A esac
2N/A libdir="$save_libdir"
2N/A for dep in $dependency_libs; do
2N/A case "$dep" in
2N/A -L*)
2N/A additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
2N/A if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
2N/A && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
2N/A haveit=
2N/A if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
2N/A || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
2N/A if test -n "$GCC"; then
2N/A case $host_os in
2N/A linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2N/A esac
2N/A fi
2N/A fi
2N/A if test -z "$haveit"; then
2N/A haveit=
2N/A for x in $LDFLAGS $LIBICONV; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A if test "X$x" = "X-L$additional_libdir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A if test -d "$additional_libdir"; then
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
2N/A fi
2N/A fi
2N/A haveit=
2N/A for x in $LDFLAGS $LTLIBICONV; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A if test "X$x" = "X-L$additional_libdir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A if test -d "$additional_libdir"; then
2N/A LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A ;;
2N/A -R*)
2N/A dir=`echo "X$dep" | sed -e 's/^X-R//'`
2N/A if test "$enable_rpath" != no; then
2N/A haveit=
2N/A for x in $rpathdirs; do
2N/A if test "X$x" = "X$dir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A rpathdirs="$rpathdirs $dir"
2N/A fi
2N/A haveit=
2N/A for x in $ltrpathdirs; do
2N/A if test "X$x" = "X$dir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A ltrpathdirs="$ltrpathdirs $dir"
2N/A fi
2N/A fi
2N/A ;;
2N/A -l*)
2N/A names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
2N/A ;;
2N/A *.la)
2N/A names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
2N/A ;;
2N/A *)
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
2N/A LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
2N/A ;;
2N/A esac
2N/A done
2N/A fi
2N/A else
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
2N/A LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
2N/A fi
2N/A fi
2N/A fi
2N/A done
2N/A done
2N/A if test "X$rpathdirs" != "X"; then
2N/A if test -n "$acl_hardcode_libdir_separator"; then
2N/A alldirs=
2N/A for found_dir in $rpathdirs; do
2N/A alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
2N/A done
2N/A acl_save_libdir="$libdir"
2N/A libdir="$alldirs"
2N/A eval flag=\"$acl_hardcode_libdir_flag_spec\"
2N/A libdir="$acl_save_libdir"
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
2N/A else
2N/A for found_dir in $rpathdirs; do
2N/A acl_save_libdir="$libdir"
2N/A libdir="$found_dir"
2N/A eval flag=\"$acl_hardcode_libdir_flag_spec\"
2N/A libdir="$acl_save_libdir"
2N/A LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
2N/A done
2N/A fi
2N/A fi
2N/A if test "X$ltrpathdirs" != "X"; then
2N/A for found_dir in $ltrpathdirs; do
2N/A LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
2N/A done
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
2N/A$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
2N/Aif test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A gt_save_LIBS="$LIBS"
2N/A LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <CoreFoundation/CFPreferences.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/ACFPreferencesCopyAppValue(NULL, NULL)
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A gt_cv_func_CFPreferencesCopyAppValue=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gt_cv_func_CFPreferencesCopyAppValue=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A LIBS="$gt_save_LIBS"
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
2N/A$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
2N/A if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_CFPREFERENCESCOPYAPPVALUE 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
2N/A$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
2N/Aif test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A gt_save_LIBS="$LIBS"
2N/A LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <CoreFoundation/CFLocale.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/ACFLocaleCopyCurrent();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A gt_cv_func_CFLocaleCopyCurrent=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gt_cv_func_CFLocaleCopyCurrent=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A LIBS="$gt_save_LIBS"
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
2N/A$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
2N/A if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_CFLOCALECOPYCURRENT 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A INTL_MACOSX_LIBS=
2N/A if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
2N/A INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A LIBINTL=
2N/A LTLIBINTL=
2N/A POSUB=
2N/A
2N/A case " $gt_needs " in
2N/A *" need-formatstring-macros "*) gt_api_version=3 ;;
2N/A *" need-ngettext "*) gt_api_version=2 ;;
2N/A *) gt_api_version=1 ;;
2N/A esac
2N/A gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
2N/A gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
2N/A
2N/A if test "$USE_NLS" = "yes"; then
2N/A gt_use_preinstalled_gnugettext=no
2N/A
2N/A
2N/A if test $gt_api_version -ge 3; then
2N/A gt_revision_test_code='
2N/A#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
2N/A#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
2N/A#endif
2N/Atypedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
2N/A'
2N/A else
2N/A gt_revision_test_code=
2N/A fi
2N/A if test $gt_api_version -ge 2; then
2N/A gt_expression_test_code=' + * ngettext ("", "", 0)'
2N/A else
2N/A gt_expression_test_code=
2N/A fi
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
2N/A$as_echo_n "checking for GNU gettext in libc... " >&6; }
2N/Aif { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <libintl.h>
2N/A$gt_revision_test_code
2N/Aextern int _nl_msg_cat_cntr;
2N/Aextern int *_nl_domain_bindings;
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/Abindtextdomain ("", "");
2N/Areturn * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$gt_func_gnugettext_libc=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$gt_func_gnugettext_libc=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/A if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A am_save_CPPFLAGS="$CPPFLAGS"
2N/A
2N/A for element in $INCICONV; do
2N/A haveit=
2N/A for x in $CPPFLAGS; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A if test "X$x" = "X$element"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
2N/A fi
2N/A done
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for iconv" >&5
2N/A$as_echo_n "checking for iconv... " >&6; }
2N/Aif test "${am_cv_func_iconv+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A am_cv_func_iconv="no, consider installing GNU libiconv"
2N/A am_cv_lib_iconv=no
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <stdlib.h>
2N/A#include <iconv.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Aiconv_t cd = iconv_open("","");
2N/A iconv(cd,NULL,NULL,NULL,NULL);
2N/A iconv_close(cd);
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A am_cv_func_iconv=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A if test "$am_cv_func_iconv" != yes; then
2N/A am_save_LIBS="$LIBS"
2N/A LIBS="$LIBS $LIBICONV"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <stdlib.h>
2N/A#include <iconv.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Aiconv_t cd = iconv_open("","");
2N/A iconv(cd,NULL,NULL,NULL,NULL);
2N/A iconv_close(cd);
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A am_cv_lib_iconv=yes
2N/A am_cv_func_iconv=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A LIBS="$am_save_LIBS"
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
2N/A$as_echo "$am_cv_func_iconv" >&6; }
2N/A if test "$am_cv_func_iconv" = yes; then
2N/A { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
2N/A$as_echo_n "checking for working iconv... " >&6; }
2N/Aif test "${am_cv_func_iconv_works+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A am_save_LIBS="$LIBS"
2N/A if test $am_cv_lib_iconv = yes; then
2N/A LIBS="$LIBS $LIBICONV"
2N/A fi
2N/A if test "$cross_compiling" = yes; then
2N/A
2N/A case "$host_os" in
2N/A aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
2N/A *) am_cv_func_iconv_works="guessing yes" ;;
2N/A esac
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <iconv.h>
2N/A#include <string.h>
2N/Aint main ()
2N/A{
2N/A /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
2N/A returns. */
2N/A {
2N/A iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
2N/A if (cd_utf8_to_88591 != (iconv_t)(-1))
2N/A {
2N/A static const char input[] = "\342\202\254"; /* EURO SIGN */
2N/A char buf[10];
2N/A const char *inptr = input;
2N/A size_t inbytesleft = strlen (input);
2N/A char *outptr = buf;
2N/A size_t outbytesleft = sizeof (buf);
2N/A size_t res = iconv (cd_utf8_to_88591,
2N/A (char **) &inptr, &inbytesleft,
2N/A &outptr, &outbytesleft);
2N/A if (res == 0)
2N/A return 1;
2N/A }
2N/A }
2N/A /* Test against Solaris 10 bug: Failures are not distinguishable from
2N/A successful returns. */
2N/A {
2N/A iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
2N/A if (cd_ascii_to_88591 != (iconv_t)(-1))
2N/A {
2N/A static const char input[] = "\263";
2N/A char buf[10];
2N/A const char *inptr = input;
2N/A size_t inbytesleft = strlen (input);
2N/A char *outptr = buf;
2N/A size_t outbytesleft = sizeof (buf);
2N/A size_t res = iconv (cd_ascii_to_88591,
2N/A (char **) &inptr, &inbytesleft,
2N/A &outptr, &outbytesleft);
2N/A if (res == 0)
2N/A return 1;
2N/A }
2N/A }
2N/A /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
2N/A {
2N/A iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
2N/A if (cd_88591_to_utf8 != (iconv_t)(-1))
2N/A {
2N/A static const char input[] = "\304";
2N/A static char buf[2] = { (char)0xDE, (char)0xAD };
2N/A const char *inptr = input;
2N/A size_t inbytesleft = 1;
2N/A char *outptr = buf;
2N/A size_t outbytesleft = 1;
2N/A size_t res = iconv (cd_88591_to_utf8,
2N/A (char **) &inptr, &inbytesleft,
2N/A &outptr, &outbytesleft);
2N/A if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
2N/A return 1;
2N/A }
2N/A }
2N/A#if 0 /* This bug could be worked around by the caller. */
2N/A /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
2N/A {
2N/A iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
2N/A if (cd_88591_to_utf8 != (iconv_t)(-1))
2N/A {
2N/A static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
2N/A char buf[50];
2N/A const char *inptr = input;
2N/A size_t inbytesleft = strlen (input);
2N/A char *outptr = buf;
2N/A size_t outbytesleft = sizeof (buf);
2N/A size_t res = iconv (cd_88591_to_utf8,
2N/A (char **) &inptr, &inbytesleft,
2N/A &outptr, &outbytesleft);
2N/A if ((int)res > 0)
2N/A return 1;
2N/A }
2N/A }
2N/A#endif
2N/A /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
2N/A provided. */
2N/A if (/* Try standardized names. */
2N/A iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
2N/A /* Try IRIX, OSF/1 names. */
2N/A && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
2N/A /* Try AIX names. */
2N/A && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
2N/A /* Try HP-UX names. */
2N/A && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
2N/A return 1;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A am_cv_func_iconv_works=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aam_cv_func_iconv_works=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A LIBS="$am_save_LIBS"
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
2N/A$as_echo "$am_cv_func_iconv_works" >&6; }
2N/A case "$am_cv_func_iconv_works" in
2N/A *no) am_func_iconv=no am_cv_lib_iconv=no ;;
2N/A *) am_func_iconv=yes ;;
2N/A esac
2N/A else
2N/A am_func_iconv=no am_cv_lib_iconv=no
2N/A fi
2N/A if test "$am_func_iconv" = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_ICONV 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A if test "$am_cv_lib_iconv" = yes; then
2N/A { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
2N/A$as_echo_n "checking how to link with libiconv... " >&6; }
2N/A { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
2N/A$as_echo "$LIBICONV" >&6; }
2N/A else
2N/A CPPFLAGS="$am_save_CPPFLAGS"
2N/A LIBICONV=
2N/A LTLIBICONV=
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A use_additional=yes
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/A
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A
2N/A@%:@ Check whether --with-libintl-prefix was given.
2N/Aif test "${with_libintl_prefix+set}" = set; then
2N/A withval=$with_libintl_prefix;
2N/A if test "X$withval" = "Xno"; then
2N/A use_additional=no
2N/A else
2N/A if test "X$withval" = "X"; then
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A
2N/A eval additional_includedir=\"$includedir\"
2N/A eval additional_libdir=\"$libdir\"
2N/A
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A else
2N/A additional_includedir="$withval/include"
2N/A additional_libdir="$withval/$acl_libdirstem"
2N/A if test "$acl_libdirstem2" != "$acl_libdirstem" \
2N/A && ! test -d "$withval/$acl_libdirstem"; then
2N/A additional_libdir="$withval/$acl_libdirstem2"
2N/A fi
2N/A fi
2N/A fi
2N/A
2N/Afi
2N/A
2N/A LIBINTL=
2N/A LTLIBINTL=
2N/A INCINTL=
2N/A LIBINTL_PREFIX=
2N/A HAVE_LIBINTL=
2N/A rpathdirs=
2N/A ltrpathdirs=
2N/A names_already_handled=
2N/A names_next_round='intl '
2N/A while test -n "$names_next_round"; do
2N/A names_this_round="$names_next_round"
2N/A names_next_round=
2N/A for name in $names_this_round; do
2N/A already_handled=
2N/A for n in $names_already_handled; do
2N/A if test "$n" = "$name"; then
2N/A already_handled=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$already_handled"; then
2N/A names_already_handled="$names_already_handled $name"
2N/A uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
2N/A eval value=\"\$HAVE_LIB$uppername\"
2N/A if test -n "$value"; then
2N/A if test "$value" = yes; then
2N/A eval value=\"\$LIB$uppername\"
2N/A test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
2N/A eval value=\"\$LTLIB$uppername\"
2N/A test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
2N/A else
2N/A :
2N/A fi
2N/A else
2N/A found_dir=
2N/A found_la=
2N/A found_so=
2N/A found_a=
2N/A eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
2N/A if test -n "$acl_shlibext"; then
2N/A shrext=".$acl_shlibext" # typically: shrext=.so
2N/A else
2N/A shrext=
2N/A fi
2N/A if test $use_additional = yes; then
2N/A dir="$additional_libdir"
2N/A if test -n "$acl_shlibext"; then
2N/A if test -f "$dir/$libname$shrext"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$libname$shrext"
2N/A else
2N/A if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
2N/A ver=`(cd "$dir" && \
2N/A for f in "$libname$shrext".*; do echo "$f"; done \
2N/A | sed -e "s,^$libname$shrext\\\\.,," \
2N/A | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
2N/A | sed 1q ) 2>/dev/null`
2N/A if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$libname$shrext.$ver"
2N/A fi
2N/A else
2N/A eval library_names=\"$acl_library_names_spec\"
2N/A for f in $library_names; do
2N/A if test -f "$dir/$f"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$f"
2N/A break
2N/A fi
2N/A done
2N/A fi
2N/A fi
2N/A fi
2N/A if test "X$found_dir" = "X"; then
2N/A if test -f "$dir/$libname.$acl_libext"; then
2N/A found_dir="$dir"
2N/A found_a="$dir/$libname.$acl_libext"
2N/A fi
2N/A fi
2N/A if test "X$found_dir" != "X"; then
2N/A if test -f "$dir/$libname.la"; then
2N/A found_la="$dir/$libname.la"
2N/A fi
2N/A fi
2N/A fi
2N/A if test "X$found_dir" = "X"; then
2N/A for x in $LDFLAGS $LTLIBINTL; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A case "$x" in
2N/A -L*)
2N/A dir=`echo "X$x" | sed -e 's/^X-L//'`
2N/A if test -n "$acl_shlibext"; then
2N/A if test -f "$dir/$libname$shrext"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$libname$shrext"
2N/A else
2N/A if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
2N/A ver=`(cd "$dir" && \
2N/A for f in "$libname$shrext".*; do echo "$f"; done \
2N/A | sed -e "s,^$libname$shrext\\\\.,," \
2N/A | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
2N/A | sed 1q ) 2>/dev/null`
2N/A if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$libname$shrext.$ver"
2N/A fi
2N/A else
2N/A eval library_names=\"$acl_library_names_spec\"
2N/A for f in $library_names; do
2N/A if test -f "$dir/$f"; then
2N/A found_dir="$dir"
2N/A found_so="$dir/$f"
2N/A break
2N/A fi
2N/A done
2N/A fi
2N/A fi
2N/A fi
2N/A if test "X$found_dir" = "X"; then
2N/A if test -f "$dir/$libname.$acl_libext"; then
2N/A found_dir="$dir"
2N/A found_a="$dir/$libname.$acl_libext"
2N/A fi
2N/A fi
2N/A if test "X$found_dir" != "X"; then
2N/A if test -f "$dir/$libname.la"; then
2N/A found_la="$dir/$libname.la"
2N/A fi
2N/A fi
2N/A ;;
2N/A esac
2N/A if test "X$found_dir" != "X"; then
2N/A break
2N/A fi
2N/A done
2N/A fi
2N/A if test "X$found_dir" != "X"; then
2N/A LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
2N/A if test "X$found_so" != "X"; then
2N/A if test "$enable_rpath" = no \
2N/A || test "X$found_dir" = "X/usr/$acl_libdirstem" \
2N/A || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
2N/A else
2N/A haveit=
2N/A for x in $ltrpathdirs; do
2N/A if test "X$x" = "X$found_dir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A ltrpathdirs="$ltrpathdirs $found_dir"
2N/A fi
2N/A if test "$acl_hardcode_direct" = yes; then
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
2N/A else
2N/A if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
2N/A haveit=
2N/A for x in $rpathdirs; do
2N/A if test "X$x" = "X$found_dir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A rpathdirs="$rpathdirs $found_dir"
2N/A fi
2N/A else
2N/A haveit=
2N/A for x in $LDFLAGS $LIBINTL; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A if test "X$x" = "X-L$found_dir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
2N/A fi
2N/A if test "$acl_hardcode_minus_L" != no; then
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
2N/A else
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A else
2N/A if test "X$found_a" != "X"; then
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
2N/A else
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
2N/A fi
2N/A fi
2N/A additional_includedir=
2N/A case "$found_dir" in
2N/A */$acl_libdirstem | */$acl_libdirstem/)
2N/A basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
2N/A if test "$name" = 'intl'; then
2N/A LIBINTL_PREFIX="$basedir"
2N/A fi
2N/A additional_includedir="$basedir/include"
2N/A ;;
2N/A */$acl_libdirstem2 | */$acl_libdirstem2/)
2N/A basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
2N/A if test "$name" = 'intl'; then
2N/A LIBINTL_PREFIX="$basedir"
2N/A fi
2N/A additional_includedir="$basedir/include"
2N/A ;;
2N/A esac
2N/A if test "X$additional_includedir" != "X"; then
2N/A if test "X$additional_includedir" != "X/usr/include"; then
2N/A haveit=
2N/A if test "X$additional_includedir" = "X/usr/local/include"; then
2N/A if test -n "$GCC"; then
2N/A case $host_os in
2N/A linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2N/A esac
2N/A fi
2N/A fi
2N/A if test -z "$haveit"; then
2N/A for x in $CPPFLAGS $INCINTL; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A if test "X$x" = "X-I$additional_includedir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A if test -d "$additional_includedir"; then
2N/A INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A if test -n "$found_la"; then
2N/A save_libdir="$libdir"
2N/A case "$found_la" in
2N/A */* | *\\*) . "$found_la" ;;
2N/A *) . "./$found_la" ;;
2N/A esac
2N/A libdir="$save_libdir"
2N/A for dep in $dependency_libs; do
2N/A case "$dep" in
2N/A -L*)
2N/A additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
2N/A if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
2N/A && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
2N/A haveit=
2N/A if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
2N/A || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
2N/A if test -n "$GCC"; then
2N/A case $host_os in
2N/A linux* | gnu* | k*bsd*-gnu) haveit=yes;;
2N/A esac
2N/A fi
2N/A fi
2N/A if test -z "$haveit"; then
2N/A haveit=
2N/A for x in $LDFLAGS $LIBINTL; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A if test "X$x" = "X-L$additional_libdir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A if test -d "$additional_libdir"; then
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
2N/A fi
2N/A fi
2N/A haveit=
2N/A for x in $LDFLAGS $LTLIBINTL; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A if test "X$x" = "X-L$additional_libdir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A if test -d "$additional_libdir"; then
2N/A LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A ;;
2N/A -R*)
2N/A dir=`echo "X$dep" | sed -e 's/^X-R//'`
2N/A if test "$enable_rpath" != no; then
2N/A haveit=
2N/A for x in $rpathdirs; do
2N/A if test "X$x" = "X$dir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A rpathdirs="$rpathdirs $dir"
2N/A fi
2N/A haveit=
2N/A for x in $ltrpathdirs; do
2N/A if test "X$x" = "X$dir"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A ltrpathdirs="$ltrpathdirs $dir"
2N/A fi
2N/A fi
2N/A ;;
2N/A -l*)
2N/A names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
2N/A ;;
2N/A *.la)
2N/A names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
2N/A ;;
2N/A *)
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
2N/A LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
2N/A ;;
2N/A esac
2N/A done
2N/A fi
2N/A else
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
2N/A LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
2N/A fi
2N/A fi
2N/A fi
2N/A done
2N/A done
2N/A if test "X$rpathdirs" != "X"; then
2N/A if test -n "$acl_hardcode_libdir_separator"; then
2N/A alldirs=
2N/A for found_dir in $rpathdirs; do
2N/A alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
2N/A done
2N/A acl_save_libdir="$libdir"
2N/A libdir="$alldirs"
2N/A eval flag=\"$acl_hardcode_libdir_flag_spec\"
2N/A libdir="$acl_save_libdir"
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
2N/A else
2N/A for found_dir in $rpathdirs; do
2N/A acl_save_libdir="$libdir"
2N/A libdir="$found_dir"
2N/A eval flag=\"$acl_hardcode_libdir_flag_spec\"
2N/A libdir="$acl_save_libdir"
2N/A LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
2N/A done
2N/A fi
2N/A fi
2N/A if test "X$ltrpathdirs" != "X"; then
2N/A for found_dir in $ltrpathdirs; do
2N/A LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
2N/A done
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
2N/A$as_echo_n "checking for GNU gettext in libintl... " >&6; }
2N/Aif { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A gt_save_CPPFLAGS="$CPPFLAGS"
2N/A CPPFLAGS="$CPPFLAGS $INCINTL"
2N/A gt_save_LIBS="$LIBS"
2N/A LIBS="$LIBS $LIBINTL"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <libintl.h>
2N/A$gt_revision_test_code
2N/Aextern int _nl_msg_cat_cntr;
2N/Aextern
2N/A#ifdef __cplusplus
2N/A"C"
2N/A#endif
2N/Aconst char *_nl_expand_alias (const char *);
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/Abindtextdomain ("", "");
2N/Areturn * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$gt_func_gnugettext_libintl=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$gt_func_gnugettext_libintl=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
2N/A LIBS="$LIBS $LIBICONV"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <libintl.h>
2N/A$gt_revision_test_code
2N/Aextern int _nl_msg_cat_cntr;
2N/Aextern
2N/A#ifdef __cplusplus
2N/A"C"
2N/A#endif
2N/Aconst char *_nl_expand_alias (const char *);
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/Abindtextdomain ("", "");
2N/Areturn * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A LIBINTL="$LIBINTL $LIBICONV"
2N/A LTLIBINTL="$LTLIBINTL $LTLIBICONV"
2N/A eval "$gt_func_gnugettext_libintl=yes"
2N/A
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A fi
2N/A CPPFLAGS="$gt_save_CPPFLAGS"
2N/A LIBS="$gt_save_LIBS"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A fi
2N/A
2N/A if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
2N/A || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
2N/A && test "$PACKAGE" != gettext-runtime \
2N/A && test "$PACKAGE" != gettext-tools; }; then
2N/A gt_use_preinstalled_gnugettext=yes
2N/A else
2N/A LIBINTL=
2N/A LTLIBINTL=
2N/A INCINTL=
2N/A fi
2N/A
2N/A
2N/A
2N/A if test -n "$INTL_MACOSX_LIBS"; then
2N/A if test "$gt_use_preinstalled_gnugettext" = "yes" \
2N/A || test "$nls_cv_use_gnu_gettext" = "yes"; then
2N/A LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
2N/A LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
2N/A fi
2N/A fi
2N/A
2N/A if test "$gt_use_preinstalled_gnugettext" = "yes" \
2N/A || test "$nls_cv_use_gnu_gettext" = "yes"; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define ENABLE_NLS 1
2N/A_ACEOF
2N/A
2N/A else
2N/A USE_NLS=no
2N/A fi
2N/A fi
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
2N/A$as_echo_n "checking whether to use NLS... " >&6; }
2N/A { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
2N/A$as_echo "$USE_NLS" >&6; }
2N/A if test "$USE_NLS" = "yes"; then
2N/A { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
2N/A$as_echo_n "checking where the gettext function comes from... " >&6; }
2N/A if test "$gt_use_preinstalled_gnugettext" = "yes"; then
2N/A if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
2N/A gt_source="external libintl"
2N/A else
2N/A gt_source="libc"
2N/A fi
2N/A else
2N/A gt_source="included intl directory"
2N/A fi
2N/A { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
2N/A$as_echo "$gt_source" >&6; }
2N/A fi
2N/A
2N/A if test "$USE_NLS" = "yes"; then
2N/A
2N/A if test "$gt_use_preinstalled_gnugettext" = "yes"; then
2N/A if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
2N/A$as_echo_n "checking how to link with libintl... " >&6; }
2N/A { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
2N/A$as_echo "$LIBINTL" >&6; }
2N/A
2N/A for element in $INCINTL; do
2N/A haveit=
2N/A for x in $CPPFLAGS; do
2N/A
2N/A acl_save_prefix="$prefix"
2N/A prefix="$acl_final_prefix"
2N/A acl_save_exec_prefix="$exec_prefix"
2N/A exec_prefix="$acl_final_exec_prefix"
2N/A eval x=\"$x\"
2N/A exec_prefix="$acl_save_exec_prefix"
2N/A prefix="$acl_save_prefix"
2N/A
2N/A if test "X$x" = "X$element"; then
2N/A haveit=yes
2N/A break
2N/A fi
2N/A done
2N/A if test -z "$haveit"; then
2N/A CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
2N/A fi
2N/A done
2N/A
2N/A fi
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_GETTEXT 1
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_DCGETTEXT 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A POSUB=po
2N/A fi
2N/A
2N/A
2N/A
2N/A INTLLIBS="$LIBINTL"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A@%:@ Check whether --enable-largefile was given.
2N/Aif test "${enable_largefile+set}" = set; then
2N/A enableval=$enable_largefile;
2N/Afi
2N/A
2N/Aif test "$enable_largefile" != no; then
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2N/A$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
2N/Aif test "${ac_cv_sys_largefile_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_sys_largefile_CC=no
2N/A if test "$GCC" != yes; then
2N/A ac_save_CC=$CC
2N/A while :; do
2N/A # IRIX 6.2 and later do not support large files by default,
2N/A # so use the C compiler's -n32 option if that helps.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <sys/types.h>
2N/A /* Check that off_t can represent 2**63 - 1 correctly.
2N/A We can't simply define LARGE_OFF_T to be 9223372036854775807,
2N/A since some C++ compilers masquerading as C compilers
2N/A incorrectly reject 9223372036854775807. */
2N/A@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2N/A int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2N/A && LARGE_OFF_T % 2147483647 == 1)
2N/A ? 1 : -1];
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/A rm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext
2N/A CC="$CC -n32"
2N/A rm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_sys_largefile_CC=' -n32'; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext
2N/A break
2N/A done
2N/A CC=$ac_save_CC
2N/A rm -f conftest.$ac_ext
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2N/A$as_echo "$ac_cv_sys_largefile_CC" >&6; }
2N/A if test "$ac_cv_sys_largefile_CC" != no; then
2N/A CC=$CC$ac_cv_sys_largefile_CC
2N/A fi
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2N/A$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
2N/Aif test "${ac_cv_sys_file_offset_bits+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <sys/types.h>
2N/A /* Check that off_t can represent 2**63 - 1 correctly.
2N/A We can't simply define LARGE_OFF_T to be 9223372036854775807,
2N/A since some C++ compilers masquerading as C compilers
2N/A incorrectly reject 9223372036854775807. */
2N/A@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2N/A int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2N/A && LARGE_OFF_T % 2147483647 == 1)
2N/A ? 1 : -1];
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_sys_file_offset_bits=no; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@define _FILE_OFFSET_BITS 64
2N/A@%:@include <sys/types.h>
2N/A /* Check that off_t can represent 2**63 - 1 correctly.
2N/A We can't simply define LARGE_OFF_T to be 9223372036854775807,
2N/A since some C++ compilers masquerading as C compilers
2N/A incorrectly reject 9223372036854775807. */
2N/A@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2N/A int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2N/A && LARGE_OFF_T % 2147483647 == 1)
2N/A ? 1 : -1];
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_sys_file_offset_bits=64; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A ac_cv_sys_file_offset_bits=unknown
2N/A break
2N/Adone
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2N/A$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
2N/Acase $ac_cv_sys_file_offset_bits in #(
2N/A no | unknown) ;;
2N/A *)
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2N/A_ACEOF
2N/A;;
2N/Aesac
2N/Arm -rf conftest*
2N/A if test $ac_cv_sys_file_offset_bits = unknown; then
2N/A { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2N/A$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
2N/Aif test "${ac_cv_sys_large_files+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <sys/types.h>
2N/A /* Check that off_t can represent 2**63 - 1 correctly.
2N/A We can't simply define LARGE_OFF_T to be 9223372036854775807,
2N/A since some C++ compilers masquerading as C compilers
2N/A incorrectly reject 9223372036854775807. */
2N/A@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2N/A int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2N/A && LARGE_OFF_T % 2147483647 == 1)
2N/A ? 1 : -1];
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_sys_large_files=no; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@define _LARGE_FILES 1
2N/A@%:@include <sys/types.h>
2N/A /* Check that off_t can represent 2**63 - 1 correctly.
2N/A We can't simply define LARGE_OFF_T to be 9223372036854775807,
2N/A since some C++ compilers masquerading as C compilers
2N/A incorrectly reject 9223372036854775807. */
2N/A@%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2N/A int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2N/A && LARGE_OFF_T % 2147483647 == 1)
2N/A ? 1 : -1];
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_sys_large_files=1; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A ac_cv_sys_large_files=unknown
2N/A break
2N/Adone
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
2N/A$as_echo "$ac_cv_sys_large_files" >&6; }
2N/Acase $ac_cv_sys_large_files in #(
2N/A no | unknown) ;;
2N/A *)
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define _LARGE_FILES $ac_cv_sys_large_files
2N/A_ACEOF
2N/A;;
2N/Aesac
2N/Arm -rf conftest*
2N/A fi
2N/Afi
2N/A
2N/A
2N/A# Identify characteristics of the host architecture.
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2N/A$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
2N/Aif test "${ac_cv_c_bigendian+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_c_bigendian=unknown
2N/A # See if we're dealing with a universal compiler.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#ifndef __APPLE_CC__
2N/A not a universal capable compiler
2N/A #endif
2N/A typedef int dummy;
2N/A
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A
2N/A # Check for potential -arch flags. It is not universal unless
2N/A # there are some -arch flags. Note that *ppc* also matches
2N/A # ppc64. This check is also rather less than ideal.
2N/A case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
2N/A *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
2N/A esac
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A if test $ac_cv_c_bigendian = unknown; then
2N/A # See if sys/param.h defines the BYTE_ORDER macro.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <sys/types.h>
2N/A #include <sys/param.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
2N/A && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
2N/A && LITTLE_ENDIAN)
2N/A bogus endian macros
2N/A #endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A # It does; now see whether it defined to BIG_ENDIAN or not.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <sys/types.h>
2N/A #include <sys/param.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#if BYTE_ORDER != BIG_ENDIAN
2N/A not big endian
2N/A #endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_c_bigendian=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_c_bigendian=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A fi
2N/A if test $ac_cv_c_bigendian = unknown; then
2N/A # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <limits.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
2N/A bogus endian macros
2N/A #endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A # It does; now see whether it defined to _BIG_ENDIAN or not.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <limits.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef _BIG_ENDIAN
2N/A not big endian
2N/A #endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_c_bigendian=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_c_bigendian=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A fi
2N/A if test $ac_cv_c_bigendian = unknown; then
2N/A # Compile a test program.
2N/A if test "$cross_compiling" = yes; then
2N/A # Try to guess by grepping values from an object file.
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/Ashort int ascii_mm[] =
2N/A { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2N/A short int ascii_ii[] =
2N/A { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2N/A int use_ascii (int i) {
2N/A return ascii_mm[i] + ascii_ii[i];
2N/A }
2N/A short int ebcdic_ii[] =
2N/A { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2N/A short int ebcdic_mm[] =
2N/A { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2N/A int use_ebcdic (int i) {
2N/A return ebcdic_mm[i] + ebcdic_ii[i];
2N/A }
2N/A extern int foo;
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn use_ascii (foo) == use_ebcdic (foo);
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
2N/A ac_cv_c_bigendian=yes
2N/A fi
2N/A if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2N/A if test "$ac_cv_c_bigendian" = unknown; then
2N/A ac_cv_c_bigendian=no
2N/A else
2N/A # finding both strings is unlikely to happen, but who knows?
2N/A ac_cv_c_bigendian=unknown
2N/A fi
2N/A fi
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A /* Are we little or big endian? From Harbison&Steele. */
2N/A union
2N/A {
2N/A long int l;
2N/A char c[sizeof (long int)];
2N/A } u;
2N/A u.l = 1;
2N/A return u.c[sizeof (long int) - 1] == 1;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A ac_cv_c_bigendian=no
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aac_cv_c_bigendian=yes
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2N/A$as_echo "$ac_cv_c_bigendian" >&6; }
2N/A case $ac_cv_c_bigendian in #(
2N/A yes)
2N/A cat >>confdefs.h <<\_ACEOF
2N/A@%:@define WORDS_BIGENDIAN 1
2N/A_ACEOF
2N/A;; #(
2N/A no)
2N/A ;; #(
2N/A universal)
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define AC_APPLE_UNIVERSAL_BUILD 1
2N/A_ACEOF
2N/A
2N/A ;; #(
2N/A *)
2N/A { { $as_echo "$as_me:$LINENO: error: unknown endianness
2N/A presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2N/A$as_echo "$as_me: error: unknown endianness
2N/A presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2N/A { (exit 1); exit 1; }; } ;;
2N/A esac
2N/A
2N/A# The cast to long int works around a bug in the HP C Compiler
2N/A# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2N/A# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2N/A# This bug is HP SR number 8606223364.
2N/A{ $as_echo "$as_me:$LINENO: checking size of void *" >&5
2N/A$as_echo_n "checking size of void *... " >&6; }
2N/Aif test "${ac_cv_sizeof_void_p+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A # Depending upon the size, compute the lo and hi bounds.
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !(((long int) (sizeof (void *))) >= 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=0 ac_mid=0
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr $ac_mid + 1`
2N/A if test $ac_lo -le $ac_mid; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !(((long int) (sizeof (void *))) < 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=-1 ac_mid=-1
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_hi=`expr '(' $ac_mid ')' - 1`
2N/A if test $ac_mid -le $ac_hi; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo= ac_hi=
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A# Binary search between lo and hi bounds.
2N/Awhile test "x$ac_lo" != "x$ac_hi"; do
2N/A ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr '(' $ac_mid ')' + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Adone
2N/Acase $ac_lo in
2N/A?*) ac_cv_sizeof_void_p=$ac_lo;;
2N/A'') if test "$ac_cv_type_void_p" = yes; then
2N/A { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
2N/ASee \`config.log' for more details." >&5
2N/A$as_echo "$as_me: error: cannot compute sizeof (void *)
2N/ASee \`config.log' for more details." >&2;}
2N/A { (exit 77); exit 77; }; }; }
2N/A else
2N/A ac_cv_sizeof_void_p=0
2N/A fi ;;
2N/Aesac
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Astatic long int longval () { return (long int) (sizeof (void *)); }
2N/Astatic unsigned long int ulongval () { return (long int) (sizeof (void *)); }
2N/A@%:@include <stdio.h>
2N/A@%:@include <stdlib.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A FILE *f = fopen ("conftest.val", "w");
2N/A if (! f)
2N/A return 1;
2N/A if (((long int) (sizeof (void *))) < 0)
2N/A {
2N/A long int i = longval ();
2N/A if (i != ((long int) (sizeof (void *))))
2N/A return 1;
2N/A fprintf (f, "%ld", i);
2N/A }
2N/A else
2N/A {
2N/A unsigned long int i = ulongval ();
2N/A if (i != ((long int) (sizeof (void *))))
2N/A return 1;
2N/A fprintf (f, "%lu", i);
2N/A }
2N/A /* Do not output a trailing newline, as this causes \r\n confusion
2N/A on some platforms. */
2N/A return ferror (f) || fclose (f) != 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A ac_cv_sizeof_void_p=`cat conftest.val`
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aif test "$ac_cv_type_void_p" = yes; then
2N/A { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
2N/ASee \`config.log' for more details." >&5
2N/A$as_echo "$as_me: error: cannot compute sizeof (void *)
2N/ASee \`config.log' for more details." >&2;}
2N/A { (exit 77); exit 77; }; }; }
2N/A else
2N/A ac_cv_sizeof_void_p=0
2N/A fi
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Arm -f conftest.val
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
2N/A$as_echo "$ac_cv_sizeof_void_p" >&6; }
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2N/A_ACEOF
2N/A
2N/A
2N/A# The cast to long int works around a bug in the HP C Compiler
2N/A# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
2N/A# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
2N/A# This bug is HP SR number 8606223364.
2N/A{ $as_echo "$as_me:$LINENO: checking size of long" >&5
2N/A$as_echo_n "checking size of long... " >&6; }
2N/Aif test "${ac_cv_sizeof_long+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A # Depending upon the size, compute the lo and hi bounds.
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=0 ac_mid=0
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr $ac_mid + 1`
2N/A if test $ac_lo -le $ac_mid; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) < 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=-1 ac_mid=-1
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_hi=`expr '(' $ac_mid ')' - 1`
2N/A if test $ac_mid -le $ac_hi; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo= ac_hi=
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A# Binary search between lo and hi bounds.
2N/Awhile test "x$ac_lo" != "x$ac_hi"; do
2N/A ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr '(' $ac_mid ')' + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Adone
2N/Acase $ac_lo in
2N/A?*) ac_cv_sizeof_long=$ac_lo;;
2N/A'') if test "$ac_cv_type_long" = yes; then
2N/A { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
2N/ASee \`config.log' for more details." >&5
2N/A$as_echo "$as_me: error: cannot compute sizeof (long)
2N/ASee \`config.log' for more details." >&2;}
2N/A { (exit 77); exit 77; }; }; }
2N/A else
2N/A ac_cv_sizeof_long=0
2N/A fi ;;
2N/Aesac
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Astatic long int longval () { return (long int) (sizeof (long)); }
2N/Astatic unsigned long int ulongval () { return (long int) (sizeof (long)); }
2N/A@%:@include <stdio.h>
2N/A@%:@include <stdlib.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A FILE *f = fopen ("conftest.val", "w");
2N/A if (! f)
2N/A return 1;
2N/A if (((long int) (sizeof (long))) < 0)
2N/A {
2N/A long int i = longval ();
2N/A if (i != ((long int) (sizeof (long))))
2N/A return 1;
2N/A fprintf (f, "%ld", i);
2N/A }
2N/A else
2N/A {
2N/A unsigned long int i = ulongval ();
2N/A if (i != ((long int) (sizeof (long))))
2N/A return 1;
2N/A fprintf (f, "%lu", i);
2N/A }
2N/A /* Do not output a trailing newline, as this causes \r\n confusion
2N/A on some platforms. */
2N/A return ferror (f) || fclose (f) != 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A ac_cv_sizeof_long=`cat conftest.val`
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aif test "$ac_cv_type_long" = yes; then
2N/A { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2N/A$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2N/A{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
2N/ASee \`config.log' for more details." >&5
2N/A$as_echo "$as_me: error: cannot compute sizeof (long)
2N/ASee \`config.log' for more details." >&2;}
2N/A { (exit 77); exit 77; }; }; }
2N/A else
2N/A ac_cv_sizeof_long=0
2N/A fi
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Arm -f conftest.val
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
2N/A$as_echo "$ac_cv_sizeof_long" >&6; }
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define SIZEOF_LONG $ac_cv_sizeof_long
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether our compiler is apple cc" >&5
2N/A$as_echo_n "checking whether our compiler is apple cc... " >&6; }
2N/Aif test "${grub_cv_apple_cc+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
2N/A grub_cv_apple_cc=yes
2N/Aelse
2N/A grub_cv_apple_cc=no
2N/Afi
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_apple_cc" >&5
2N/A$as_echo "$grub_cv_apple_cc" >&6; }
2N/Aif test x$grub_cv_apple_cc = xyes ; then
2N/A HOST_CPPFLAGS="$HOST_CPPFLAGS -DAPPLE_CC=1"
2N/A HOST_CFLAGS="$HOST_CFLAGS -fnested-functions"
2N/Afi
2N/A
2N/Aif test "x$cross_compiling" = xyes; then
2N/A { $as_echo "$as_me:$LINENO: WARNING: cannot generate manual pages while cross compiling" >&5
2N/A$as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;}
2N/Aelse
2N/A # Extract the first word of "help2man", so it can be a program name with args.
2N/Aset dummy help2man; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_path_HELP2MAN+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A case $HELP2MAN in
2N/A [\\/]* | ?:[\\/]*)
2N/A ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
2N/A ;;
2N/A *)
2N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/A ;;
2N/Aesac
2N/Afi
2N/AHELP2MAN=$ac_cv_path_HELP2MAN
2N/Aif test -n "$HELP2MAN"; then
2N/A { $as_echo "$as_me:$LINENO: result: $HELP2MAN" >&5
2N/A$as_echo "$HELP2MAN" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/A
2N/A# Check for functions and headers.
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_func in posix_memalign memalign asprintf vasprintf getextmntent
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/Adone
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_header in libzfs.h libnvpair.h sys/param.h sys/mount.h sys/mnttab.h sys/mkdev.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for struct statfs.f_fstypename" >&5
2N/A$as_echo_n "checking for struct statfs.f_fstypename... " >&6; }
2N/Aif test "${ac_cv_member_struct_statfs_f_fstypename+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A#include <sys/param.h>
2N/A#include <sys/mount.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic struct statfs ac_aggr;
2N/Aif (ac_aggr.f_fstypename)
2N/Areturn 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_member_struct_statfs_f_fstypename=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A#include <sys/param.h>
2N/A#include <sys/mount.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic struct statfs ac_aggr;
2N/Aif (sizeof ac_aggr.f_fstypename)
2N/Areturn 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_member_struct_statfs_f_fstypename=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_member_struct_statfs_f_fstypename=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_fstypename" >&5
2N/A$as_echo "$ac_cv_member_struct_statfs_f_fstypename" >&6; }
2N/Aif test "x$ac_cv_member_struct_statfs_f_fstypename" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for struct statfs.f_mntfromname" >&5
2N/A$as_echo_n "checking for struct statfs.f_mntfromname... " >&6; }
2N/Aif test "${ac_cv_member_struct_statfs_f_mntfromname+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A#include <sys/param.h>
2N/A#include <sys/mount.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic struct statfs ac_aggr;
2N/Aif (ac_aggr.f_mntfromname)
2N/Areturn 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_member_struct_statfs_f_mntfromname=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A#include <sys/param.h>
2N/A#include <sys/mount.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic struct statfs ac_aggr;
2N/Aif (sizeof ac_aggr.f_mntfromname)
2N/Areturn 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_member_struct_statfs_f_mntfromname=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_member_struct_statfs_f_mntfromname=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_mntfromname" >&5
2N/A$as_echo "$ac_cv_member_struct_statfs_f_mntfromname" >&6; }
2N/Aif test "x$ac_cv_member_struct_statfs_f_mntfromname" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_STRUCT_STATFS_F_MNTFROMNAME 1
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A# For opendisk() and getrawpartition() on NetBSD.
2N/A# Used in util/deviceiter.c and in util/hostdisk.c.
2N/Aif test "${ac_cv_header_util_h+set}" = set; then
2N/A { $as_echo "$as_me:$LINENO: checking for util.h" >&5
2N/A$as_echo_n "checking for util.h... " >&6; }
2N/Aif test "${ac_cv_header_util_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_util_h" >&5
2N/A$as_echo "$ac_cv_header_util_h" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking util.h usability" >&5
2N/A$as_echo_n "checking util.h usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <util.h>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking util.h presence" >&5
2N/A$as_echo_n "checking util.h presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <util.h>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: util.h: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: util.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: util.h: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: util.h: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: util.h: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: util.h: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: util.h: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: util.h: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: util.h: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: util.h: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: util.h: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: util.h: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: util.h: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: util.h: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: util.h: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: util.h: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for util.h" >&5
2N/A$as_echo_n "checking for util.h... " >&6; }
2N/Aif test "${ac_cv_header_util_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_header_util_h=$ac_header_preproc
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_util_h" >&5
2N/A$as_echo "$ac_cv_header_util_h" >&6; }
2N/A
2N/Afi
2N/Aif test "x$ac_cv_header_util_h" = x""yes; then
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for opendisk in -lutil" >&5
2N/A$as_echo_n "checking for opendisk in -lutil... " >&6; }
2N/Aif test "${ac_cv_lib_util_opendisk+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lutil $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar opendisk ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn opendisk ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_util_opendisk=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_util_opendisk=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_opendisk" >&5
2N/A$as_echo "$ac_cv_lib_util_opendisk" >&6; }
2N/Aif test "x$ac_cv_lib_util_opendisk" = x""yes; then
2N/A
2N/A LIBUTIL="-lutil"
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_OPENDISK 1
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for getrawpartition in -lutil" >&5
2N/A$as_echo_n "checking for getrawpartition in -lutil... " >&6; }
2N/Aif test "${ac_cv_lib_util_getrawpartition+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lutil $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar getrawpartition ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn getrawpartition ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_util_getrawpartition=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_util_getrawpartition=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getrawpartition" >&5
2N/A$as_echo "$ac_cv_lib_util_getrawpartition" >&6; }
2N/Aif test "x$ac_cv_lib_util_getrawpartition" = x""yes; then
2N/A
2N/A LIBUTIL="-lutil"
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_GETRAWPARTITION 1
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A#
2N/A# Check for host and build compilers.
2N/A#
2N/AHOST_CC=$CC
2N/Afor ac_prog in gcc egcs cc
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_BUILD_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$BUILD_CC"; then
2N/A ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_BUILD_CC="$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ABUILD_CC=$ac_cv_prog_BUILD_CC
2N/Aif test -n "$BUILD_CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
2N/A$as_echo "$BUILD_CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$BUILD_CC" && break
2N/Adone
2N/Atest -n "$BUILD_CC" || BUILD_CC="{ { $as_echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set BUILD_CC manually." >&5
2N/A$as_echo "$as_me: error: none of gcc, egcs and cc is found. set BUILD_CC manually." >&2;}
2N/A { (exit 1); exit 1; }; }"
2N/A
2N/A
2N/A# For gnulib.
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A LIBC_FATAL_STDERR_=1
2N/A export LIBC_FATAL_STDERR_
2N/A
2N/A# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2N/A# for constant arguments. Useless!
2N/A{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
2N/A$as_echo_n "checking for working alloca.h... " >&6; }
2N/Aif test "${ac_cv_working_alloca_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <alloca.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Achar *p = (char *) alloca (2 * sizeof (int));
2N/A if (p) return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_working_alloca_h=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_working_alloca_h=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
2N/A$as_echo "$ac_cv_working_alloca_h" >&6; }
2N/Aif test $ac_cv_working_alloca_h = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_ALLOCA_H 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
2N/A$as_echo_n "checking for alloca... " >&6; }
2N/Aif test "${ac_cv_func_alloca_works+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#ifdef __GNUC__
2N/A# define alloca __builtin_alloca
2N/A#else
2N/A# ifdef _MSC_VER
2N/A# include <malloc.h>
2N/A# define alloca _alloca
2N/A# else
2N/A# ifdef HAVE_ALLOCA_H
2N/A# include <alloca.h>
2N/A# else
2N/A# ifdef _AIX
2N/A #pragma alloca
2N/A# else
2N/A# ifndef alloca /* predefined by HP cc +Olibcalls */
2N/Achar *alloca ();
2N/A# endif
2N/A# endif
2N/A# endif
2N/A# endif
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Achar *p = (char *) alloca (1);
2N/A if (p) return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_func_alloca_works=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_func_alloca_works=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
2N/A$as_echo "$ac_cv_func_alloca_works" >&6; }
2N/A
2N/Aif test $ac_cv_func_alloca_works = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_ALLOCA 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2N/A# that cause trouble. Some versions do not even contain alloca or
2N/A# contain a buggy version. If you still want to use their alloca,
2N/A# use ar to extract alloca.o from them instead of compiling alloca.c.
2N/A
2N/A
2N/A
2N/A
2N/A
2N/AALLOCA=\${LIBOBJDIR}alloca.$ac_objext
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define C_ALLOCA 1
2N/A_ACEOF
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
2N/A$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
2N/Aif test "${ac_cv_os_cray+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#if defined CRAY && ! defined CRAY2
2N/Awebecray
2N/A#else
2N/Awenotbecray
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "webecray" >/dev/null 2>&1; then
2N/A ac_cv_os_cray=yes
2N/Aelse
2N/A ac_cv_os_cray=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
2N/A$as_echo "$ac_cv_os_cray" >&6; }
2N/Aif test $ac_cv_os_cray = yes; then
2N/A for ac_func in _getb67 GETB67 getb67; do
2N/A as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define CRAY_STACKSEG_END $ac_func
2N/A_ACEOF
2N/A
2N/A break
2N/Afi
2N/A
2N/A done
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
2N/A$as_echo_n "checking stack direction for C alloca... " >&6; }
2N/Aif test "${ac_cv_c_stack_direction+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A ac_cv_c_stack_direction=0
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Afind_stack_direction ()
2N/A{
2N/A static char *addr = 0;
2N/A auto char dummy;
2N/A if (addr == 0)
2N/A {
2N/A addr = &dummy;
2N/A return find_stack_direction ();
2N/A }
2N/A else
2N/A return (&dummy > addr) ? 1 : -1;
2N/A}
2N/A
2N/Aint
2N/Amain ()
2N/A{
2N/A return find_stack_direction () < 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A ac_cv_c_stack_direction=1
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aac_cv_c_stack_direction=-1
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
2N/A$as_echo "$ac_cv_c_stack_direction" >&6; }
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define STACK_DIRECTION $ac_cv_c_stack_direction
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for inline" >&5
2N/A$as_echo_n "checking for inline... " >&6; }
2N/Aif test "${ac_cv_c_inline+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_c_inline=no
2N/Afor ac_kw in inline __inline__ __inline; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#ifndef __cplusplus
2N/Atypedef int foo_t;
2N/Astatic $ac_kw foo_t static_foo () {return 0; }
2N/A$ac_kw foo_t foo () {return 0; }
2N/A#endif
2N/A
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_c_inline=$ac_kw
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A test "$ac_cv_c_inline" != no && break
2N/Adone
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2N/A$as_echo "$ac_cv_c_inline" >&6; }
2N/A
2N/A
2N/Acase $ac_cv_c_inline in
2N/A inline | yes) ;;
2N/A *)
2N/A case $ac_cv_c_inline in
2N/A no) ac_val=;;
2N/A *) ac_val=$ac_cv_c_inline;;
2N/A esac
2N/A cat >>confdefs.h <<_ACEOF
2N/A#ifndef __cplusplus
2N/A#define inline $ac_val
2N/A#endif
2N/A_ACEOF
2N/A ;;
2N/Aesac
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
2N/A$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
2N/Aif test "${ac_cv_c_restrict+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_c_restrict=no
2N/A # The order here caters to the fact that C++ does not require restrict.
2N/A for ac_kw in __restrict __restrict__ _Restrict restrict; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/Atypedef int * int_ptr;
2N/A int foo (int_ptr $ac_kw ip) {
2N/A return ip[0];
2N/A }
2N/Aint
2N/Amain (void)
2N/A{
2N/Aint s[1];
2N/A int * $ac_kw t = s;
2N/A t[0] = 0;
2N/A return foo(t)
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_c_restrict=$ac_kw
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A test "$ac_cv_c_restrict" != no && break
2N/A done
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
2N/A$as_echo "$ac_cv_c_restrict" >&6; }
2N/A
2N/A
2N/A case $ac_cv_c_restrict in
2N/A restrict) ;;
2N/A no) cat >>confdefs.h <<\_ACEOF
2N/A@%:@define restrict /**/
2N/A_ACEOF
2N/A ;;
2N/A *) cat >>confdefs.h <<_ACEOF
2N/A@%:@define restrict $ac_cv_c_restrict
2N/A_ACEOF
2N/A ;;
2N/A esac
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
2N/A$as_echo_n "checking whether getenv is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_getenv+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef getenv
2N/A (void) getenv;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_getenv=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_getenv=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
2N/A$as_echo "$ac_cv_have_decl_getenv" >&6; }
2N/Aif test "x$ac_cv_have_decl_getenv" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETENV 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETENV 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
2N/A$as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef clearerr_unlocked
2N/A (void) clearerr_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_clearerr_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_clearerr_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_CLEARERR_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_CLEARERR_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
2N/A$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef feof_unlocked
2N/A (void) feof_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_feof_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_feof_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FEOF_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FEOF_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
2N/A$as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef ferror_unlocked
2N/A (void) ferror_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_ferror_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_ferror_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FERROR_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FERROR_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
2N/A$as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef fflush_unlocked
2N/A (void) fflush_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_fflush_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_fflush_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FFLUSH_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FFLUSH_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
2N/A$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef fgets_unlocked
2N/A (void) fgets_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_fgets_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_fgets_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FGETS_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FGETS_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
2N/A$as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef fputc_unlocked
2N/A (void) fputc_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_fputc_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_fputc_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FPUTC_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FPUTC_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
2N/A$as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef fputs_unlocked
2N/A (void) fputs_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_fputs_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_fputs_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FPUTS_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FPUTS_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
2N/A$as_echo_n "checking whether fread_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef fread_unlocked
2N/A (void) fread_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_fread_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_fread_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FREAD_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FREAD_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
2N/A$as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef fwrite_unlocked
2N/A (void) fwrite_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_fwrite_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_fwrite_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FWRITE_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_FWRITE_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
2N/A$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef getc_unlocked
2N/A (void) getc_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_getc_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_getc_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETC_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETC_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
2N/A$as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef getchar_unlocked
2N/A (void) getchar_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_getchar_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_getchar_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETCHAR_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETCHAR_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
2N/A$as_echo_n "checking whether putc_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef putc_unlocked
2N/A (void) putc_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_putc_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_putc_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_PUTC_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_PUTC_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
2N/A$as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef putchar_unlocked
2N/A (void) putchar_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_putchar_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_putchar_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_PUTCHAR_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_PUTCHAR_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_func in $ac_func_list
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/Adone
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_header in $ac_header_list
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A XGETTEXT_EXTRA_OPTIONS=
2N/A
2N/A
2N/A GNULIB_BTOWC=0;
2N/A GNULIB_WCTOB=0;
2N/A GNULIB_MBSINIT=0;
2N/A GNULIB_MBRTOWC=0;
2N/A GNULIB_MBRLEN=0;
2N/A GNULIB_MBSRTOWCS=0;
2N/A GNULIB_MBSNRTOWCS=0;
2N/A GNULIB_WCRTOMB=0;
2N/A GNULIB_WCSRTOMBS=0;
2N/A GNULIB_WCSNRTOMBS=0;
2N/A GNULIB_WCWIDTH=0;
2N/A HAVE_BTOWC=1;
2N/A HAVE_MBSINIT=1;
2N/A HAVE_MBRTOWC=1;
2N/A HAVE_MBRLEN=1;
2N/A HAVE_MBSRTOWCS=1;
2N/A HAVE_MBSNRTOWCS=1;
2N/A HAVE_WCRTOMB=1;
2N/A HAVE_WCSRTOMBS=1;
2N/A HAVE_WCSNRTOMBS=1;
2N/A HAVE_DECL_WCTOB=1;
2N/A HAVE_DECL_WCWIDTH=1;
2N/A REPLACE_MBSTATE_T=0;
2N/A REPLACE_BTOWC=0;
2N/A REPLACE_WCTOB=0;
2N/A REPLACE_MBSINIT=0;
2N/A REPLACE_MBRTOWC=0;
2N/A REPLACE_MBRLEN=0;
2N/A REPLACE_MBSRTOWCS=0;
2N/A REPLACE_MBSNRTOWCS=0;
2N/A REPLACE_WCRTOMB=0;
2N/A REPLACE_WCSRTOMBS=0;
2N/A REPLACE_WCSNRTOMBS=0;
2N/A REPLACE_WCWIDTH=0;
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
2N/A$as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
2N/Aif test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A gl_cv_header_wchar_h_correct_inline=yes
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A
2N/A /* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#define wcstod renamed_wcstod
2N/A#include <wchar.h>
2N/Aextern int zero (void);
2N/Aint main () { return zero(); }
2N/A
2N/A_ACEOF
2N/A if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2N/A (eval $ac_compile) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; then
2N/A mv conftest.$ac_objext conftest1.$ac_objext
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A
2N/A /* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#define wcstod renamed_wcstod
2N/A#include <wchar.h>
2N/Aint zero (void) { return 0; }
2N/A
2N/A_ACEOF
2N/A if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2N/A (eval $ac_compile) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; then
2N/A mv conftest.$ac_objext conftest2.$ac_objext
2N/A if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
2N/A :
2N/A else
2N/A gl_cv_header_wchar_h_correct_inline=no
2N/A fi
2N/A fi
2N/A fi
2N/A rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
2N/A$as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
2N/A if test $gl_cv_header_wchar_h_correct_inline = no; then
2N/A { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
2N/AThis is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
2N/AC99 mode. You have four options:
2N/A - Add the flag -fgnu89-inline to CC and reconfigure, or
2N/A - Fix your include files, using parts of
2N/A <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
2N/A - Use a gcc version older than 4.3, or
2N/A - Don't use the flags -std=c99 or -std=gnu99.
2N/AConfiguration aborted." >&5
2N/A$as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
2N/AThis is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
2N/AC99 mode. You have four options:
2N/A - Add the flag -fgnu89-inline to CC and reconfigure, or
2N/A - Fix your include files, using parts of
2N/A <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
2N/A - Use a gcc version older than 4.3, or
2N/A - Don't use the flags -std=c99 or -std=gnu99.
2N/AConfiguration aborted." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
2N/A$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
2N/Aif test "${am_cv_langinfo_codeset+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <langinfo.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Achar* cs = nl_langinfo(CODESET); return !cs;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A am_cv_langinfo_codeset=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A am_cv_langinfo_codeset=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
2N/A$as_echo "$am_cv_langinfo_codeset" >&6; }
2N/A if test $am_cv_langinfo_codeset = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_LANGINFO_CODESET 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
2N/A$as_echo_n "checking for a traditional french locale... " >&6; }
2N/Aif test "${gt_cv_locale_fr+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <time.h>
2N/A#if HAVE_LANGINFO_CODESET
2N/A# include <langinfo.h>
2N/A#endif
2N/A#include <stdlib.h>
2N/A#include <string.h>
2N/Astruct tm t;
2N/Achar buf[16];
2N/Aint main () {
2N/A /* Check whether the given locale name is recognized by the system. */
2N/A if (setlocale (LC_ALL, "") == NULL) return 1;
2N/A /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
2N/A On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
2N/A is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
2N/A On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
2N/A succeeds but then nl_langinfo(CODESET) is "646". In this situation,
2N/A some unit tests fail. */
2N/A#if HAVE_LANGINFO_CODESET
2N/A {
2N/A const char *cs = nl_langinfo (CODESET);
2N/A if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
2N/A return 1;
2N/A }
2N/A#endif
2N/A#ifdef __CYGWIN__
2N/A /* On Cygwin, avoid locale names without encoding suffix, because the
2N/A locale_charset() function relies on the encoding suffix. Note that
2N/A LC_ALL is set on the command line. */
2N/A if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
2N/A#endif
2N/A /* Check whether in the abbreviation of the second month, the second
2N/A character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
2N/A one byte long. This excludes the UTF-8 encoding. */
2N/A t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
2N/A if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
2N/A /* Check whether the decimal separator is a comma.
2N/A On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
2N/A are nl_langinfo(RADIXCHAR) are both ".". */
2N/A if (localeconv () ->decimal_point[0] != ',') return 1;
2N/A return 0;
2N/A}
2N/A
2N/A_ACEOF
2N/A if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2N/A (eval $ac_link) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && test -s conftest$ac_exeext; then
2N/A # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
2N/A # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
2N/A # configure script would override the LC_ALL setting. Likewise for
2N/A # LC_CTYPE, which is also set at the beginning of the configure script.
2N/A # Test for the usual locale name.
2N/A if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_fr=fr_FR
2N/A else
2N/A # Test for the locale name with explicit encoding suffix.
2N/A if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_fr=fr_FR.ISO-8859-1
2N/A else
2N/A # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
2N/A if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_fr=fr_FR.ISO8859-1
2N/A else
2N/A # Test for the HP-UX locale name.
2N/A if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_fr=fr_FR.iso88591
2N/A else
2N/A # Test for the Solaris 7 locale name.
2N/A if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_fr=fr
2N/A else
2N/A # None found.
2N/A gt_cv_locale_fr=none
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A rm -fr conftest*
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
2N/A$as_echo "$gt_cv_locale_fr" >&6; }
2N/A LOCALE_FR=$gt_cv_locale_fr
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
2N/A$as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
2N/Aif test "${ac_cv_win_or_dos+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A#if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
2N/Aneither MSDOS nor Windows
2N/A#endif
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_win_or_dos=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_win_or_dos=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
2N/A$as_echo "$ac_cv_win_or_dos" >&6; }
2N/A
2N/A if test x"$ac_cv_win_or_dos" = xyes; then
2N/A ac_fs_accepts_drive_letter_prefix=1
2N/A ac_fs_backslash_is_file_name_separator=1
2N/A { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
2N/A$as_echo_n "checking whether drive letter can start relative path... " >&6; }
2N/Aif test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A#if defined __CYGWIN__
2N/Adrive letters are always absolute
2N/A#endif
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_drive_letter_can_be_relative=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_drive_letter_can_be_relative=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
2N/A$as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
2N/A if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
2N/A ac_fs_drive_letter_can_be_relative=1
2N/A else
2N/A ac_fs_drive_letter_can_be_relative=0
2N/A fi
2N/A else
2N/A ac_fs_accepts_drive_letter_prefix=0
2N/A ac_fs_backslash_is_file_name_separator=0
2N/A ac_fs_drive_letter_can_be_relative=0
2N/A fi
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
2N/A$as_echo_n "checking whether // is distinct from /... " >&6; }
2N/Aif test "${gl_cv_double_slash_root+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test x"$cross_compiling" = xyes ; then
2N/A # When cross-compiling, there is no way to tell whether // is special
2N/A # short of a list of hosts. However, the only known hosts to date
2N/A # that have a distinct // are Apollo DomainOS (too old to port to),
2N/A # Cygwin, and z/OS. If anyone knows of another system for which // has
2N/A # special semantics and is distinct from /, please report it to
2N/A # <bug-gnulib@gnu.org>.
2N/A case $host in
2N/A *-cygwin | i370-ibm-openedition)
2N/A gl_cv_double_slash_root=yes ;;
2N/A *)
2N/A # Be optimistic and assume that / and // are the same when we
2N/A # don't know.
2N/A gl_cv_double_slash_root='unknown, assuming no' ;;
2N/A esac
2N/A else
2N/A set x `ls -di / // 2>/dev/null`
2N/A if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
2N/A gl_cv_double_slash_root=no
2N/A else
2N/A gl_cv_double_slash_root=yes
2N/A fi
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
2N/A$as_echo "$gl_cv_double_slash_root" >&6; }
2N/A if test "$gl_cv_double_slash_root" = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
2N/A$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
2N/Aif test "${gl_cv_have_include_next+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A rm -rf conftestd1a conftestd1b conftestd2
2N/A mkdir conftestd1a conftestd1b conftestd2
2N/A cat <<EOF > conftestd1a/conftest.h
2N/A#define DEFINED_IN_CONFTESTD1
2N/A#include_next <conftest.h>
2N/A#ifdef DEFINED_IN_CONFTESTD2
2N/Aint foo;
2N/A#else
2N/A#error "include_next doesn't work"
2N/A#endif
2N/AEOF
2N/A cat <<EOF > conftestd1b/conftest.h
2N/A#define DEFINED_IN_CONFTESTD1
2N/A#include <stdio.h>
2N/A#include_next <conftest.h>
2N/A#ifdef DEFINED_IN_CONFTESTD2
2N/Aint foo;
2N/A#else
2N/A#error "include_next doesn't work"
2N/A#endif
2N/AEOF
2N/A cat <<EOF > conftestd2/conftest.h
2N/A#ifndef DEFINED_IN_CONFTESTD1
2N/A#error "include_next test doesn't work"
2N/A#endif
2N/A#define DEFINED_IN_CONFTESTD2
2N/AEOF
2N/A gl_save_CPPFLAGS="$CPPFLAGS"
2N/A CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A#include <conftest.h>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_have_include_next=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A#include <conftest.h>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_have_include_next=buggy
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gl_cv_have_include_next=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A CPPFLAGS="$gl_save_CPPFLAGS"
2N/A rm -rf conftestd1a conftestd1b conftestd2
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
2N/A$as_echo "$gl_cv_have_include_next" >&6; }
2N/A PRAGMA_SYSTEM_HEADER=
2N/A if test $gl_cv_have_include_next = yes; then
2N/A INCLUDE_NEXT=include_next
2N/A INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
2N/A if test -n "$GCC"; then
2N/A PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
2N/A fi
2N/A else
2N/A if test $gl_cv_have_include_next = buggy; then
2N/A INCLUDE_NEXT=include
2N/A INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
2N/A else
2N/A INCLUDE_NEXT=include
2N/A INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
2N/A fi
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
2N/A$as_echo_n "checking for complete errno.h... " >&6; }
2N/Aif test "${gl_cv_header_errno_h_complete+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <errno.h>
2N/A#if !defined ENOMSG
2N/Abooboo
2N/A#endif
2N/A#if !defined EIDRM
2N/Abooboo
2N/A#endif
2N/A#if !defined ENOLINK
2N/Abooboo
2N/A#endif
2N/A#if !defined EPROTO
2N/Abooboo
2N/A#endif
2N/A#if !defined EMULTIHOP
2N/Abooboo
2N/A#endif
2N/A#if !defined EBADMSG
2N/Abooboo
2N/A#endif
2N/A#if !defined EOVERFLOW
2N/Abooboo
2N/A#endif
2N/A#if !defined ENOTSUP
2N/Abooboo
2N/A#endif
2N/A#if !defined ESTALE
2N/Abooboo
2N/A#endif
2N/A#if !defined ECANCELED
2N/Abooboo
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "booboo" >/dev/null 2>&1; then
2N/A gl_cv_header_errno_h_complete=no
2N/Aelse
2N/A gl_cv_header_errno_h_complete=yes
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
2N/A$as_echo "$gl_cv_header_errno_h_complete" >&6; }
2N/A if test $gl_cv_header_errno_h_complete = yes; then
2N/A ERRNO_H=''
2N/A else
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_errno_h='<'errno.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
2N/A$as_echo_n "checking absolute name of <errno.h>... " >&6; }
2N/Aif test "${gl_cv_next_errno_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_errno_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <errno.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/errno.h#{
2N/A s#.*"\(.*/errno.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_errno_h='<'errno.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
2N/A$as_echo "$gl_cv_next_errno_h" >&6; }
2N/A fi
2N/A NEXT_ERRNO_H=$gl_cv_next_errno_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'errno.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_errno_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A ERRNO_H='errno.h'
2N/A fi
2N/A
2N/A
2N/A if test -n "$ERRNO_H"; then
2N/A { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
2N/A$as_echo_n "checking for EMULTIHOP value... " >&6; }
2N/Aif test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <errno.h>
2N/A#ifdef EMULTIHOP
2N/Ayes
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "yes" >/dev/null 2>&1; then
2N/A gl_cv_header_errno_h_EMULTIHOP=yes
2N/Aelse
2N/A gl_cv_header_errno_h_EMULTIHOP=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A if test $gl_cv_header_errno_h_EMULTIHOP = no; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A#ifdef EMULTIHOP
2N/Ayes
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "yes" >/dev/null 2>&1; then
2N/A gl_cv_header_errno_h_EMULTIHOP=hidden
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
2N/A if test "$cross_compiling" = yes; then
2N/A # Depending upon the size, compute the lo and hi bounds.
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((EMULTIHOP) >= 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=0 ac_mid=0
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((EMULTIHOP) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr $ac_mid + 1`
2N/A if test $ac_lo -le $ac_mid; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((EMULTIHOP) < 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=-1 ac_mid=-1
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((EMULTIHOP) >= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_hi=`expr '(' $ac_mid ')' - 1`
2N/A if test $ac_mid -le $ac_hi; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo= ac_hi=
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A# Binary search between lo and hi bounds.
2N/Awhile test "x$ac_lo" != "x$ac_hi"; do
2N/A ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((EMULTIHOP) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr '(' $ac_mid ')' + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Adone
2N/Acase $ac_lo in
2N/A?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
2N/A'') ;;
2N/Aesac
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Astatic long int longval () { return EMULTIHOP; }
2N/Astatic unsigned long int ulongval () { return EMULTIHOP; }
2N/A@%:@include <stdio.h>
2N/A@%:@include <stdlib.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A FILE *f = fopen ("conftest.val", "w");
2N/A if (! f)
2N/A return 1;
2N/A if ((EMULTIHOP) < 0)
2N/A {
2N/A long int i = longval ();
2N/A if (i != (EMULTIHOP))
2N/A return 1;
2N/A fprintf (f, "%ld", i);
2N/A }
2N/A else
2N/A {
2N/A unsigned long int i = ulongval ();
2N/A if (i != (EMULTIHOP))
2N/A return 1;
2N/A fprintf (f, "%lu", i);
2N/A }
2N/A /* Do not output a trailing newline, as this causes \r\n confusion
2N/A on some platforms. */
2N/A return ferror (f) || fclose (f) != 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Arm -f conftest.val
2N/A fi
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
2N/A$as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
2N/A case $gl_cv_header_errno_h_EMULTIHOP in
2N/A yes | no)
2N/A EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
2N/A ;;
2N/A *)
2N/A EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
2N/A ;;
2N/A esac
2N/A
2N/A
2N/A fi
2N/A
2N/A
2N/A if test -n "$ERRNO_H"; then
2N/A { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
2N/A$as_echo_n "checking for ENOLINK value... " >&6; }
2N/Aif test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <errno.h>
2N/A#ifdef ENOLINK
2N/Ayes
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "yes" >/dev/null 2>&1; then
2N/A gl_cv_header_errno_h_ENOLINK=yes
2N/Aelse
2N/A gl_cv_header_errno_h_ENOLINK=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A if test $gl_cv_header_errno_h_ENOLINK = no; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A#ifdef ENOLINK
2N/Ayes
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "yes" >/dev/null 2>&1; then
2N/A gl_cv_header_errno_h_ENOLINK=hidden
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A if test $gl_cv_header_errno_h_ENOLINK = hidden; then
2N/A if test "$cross_compiling" = yes; then
2N/A # Depending upon the size, compute the lo and hi bounds.
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((ENOLINK) >= 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=0 ac_mid=0
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((ENOLINK) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr $ac_mid + 1`
2N/A if test $ac_lo -le $ac_mid; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((ENOLINK) < 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=-1 ac_mid=-1
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((ENOLINK) >= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_hi=`expr '(' $ac_mid ')' - 1`
2N/A if test $ac_mid -le $ac_hi; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo= ac_hi=
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A# Binary search between lo and hi bounds.
2N/Awhile test "x$ac_lo" != "x$ac_hi"; do
2N/A ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((ENOLINK) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr '(' $ac_mid ')' + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Adone
2N/Acase $ac_lo in
2N/A?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
2N/A'') ;;
2N/Aesac
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Astatic long int longval () { return ENOLINK; }
2N/Astatic unsigned long int ulongval () { return ENOLINK; }
2N/A@%:@include <stdio.h>
2N/A@%:@include <stdlib.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A FILE *f = fopen ("conftest.val", "w");
2N/A if (! f)
2N/A return 1;
2N/A if ((ENOLINK) < 0)
2N/A {
2N/A long int i = longval ();
2N/A if (i != (ENOLINK))
2N/A return 1;
2N/A fprintf (f, "%ld", i);
2N/A }
2N/A else
2N/A {
2N/A unsigned long int i = ulongval ();
2N/A if (i != (ENOLINK))
2N/A return 1;
2N/A fprintf (f, "%lu", i);
2N/A }
2N/A /* Do not output a trailing newline, as this causes \r\n confusion
2N/A on some platforms. */
2N/A return ferror (f) || fclose (f) != 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Arm -f conftest.val
2N/A fi
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
2N/A$as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
2N/A case $gl_cv_header_errno_h_ENOLINK in
2N/A yes | no)
2N/A ENOLINK_HIDDEN=0; ENOLINK_VALUE=
2N/A ;;
2N/A *)
2N/A ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
2N/A ;;
2N/A esac
2N/A
2N/A
2N/A fi
2N/A
2N/A
2N/A if test -n "$ERRNO_H"; then
2N/A { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
2N/A$as_echo_n "checking for EOVERFLOW value... " >&6; }
2N/Aif test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <errno.h>
2N/A#ifdef EOVERFLOW
2N/Ayes
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "yes" >/dev/null 2>&1; then
2N/A gl_cv_header_errno_h_EOVERFLOW=yes
2N/Aelse
2N/A gl_cv_header_errno_h_EOVERFLOW=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A if test $gl_cv_header_errno_h_EOVERFLOW = no; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A#ifdef EOVERFLOW
2N/Ayes
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "yes" >/dev/null 2>&1; then
2N/A gl_cv_header_errno_h_EOVERFLOW=hidden
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
2N/A if test "$cross_compiling" = yes; then
2N/A # Depending upon the size, compute the lo and hi bounds.
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((EOVERFLOW) >= 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=0 ac_mid=0
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((EOVERFLOW) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr $ac_mid + 1`
2N/A if test $ac_lo -le $ac_mid; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((EOVERFLOW) < 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=-1 ac_mid=-1
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((EOVERFLOW) >= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_hi=`expr '(' $ac_mid ')' - 1`
2N/A if test $ac_mid -le $ac_hi; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo= ac_hi=
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A# Binary search between lo and hi bounds.
2N/Awhile test "x$ac_lo" != "x$ac_hi"; do
2N/A ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((EOVERFLOW) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr '(' $ac_mid ')' + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Adone
2N/Acase $ac_lo in
2N/A?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
2N/A'') ;;
2N/Aesac
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define _XOPEN_SOURCE_EXTENDED 1
2N/A#include <errno.h>
2N/A/* The following two lines are a workaround against an autoconf-2.52 bug. */
2N/A#include <stdio.h>
2N/A#include <stdlib.h>
2N/A
2N/Astatic long int longval () { return EOVERFLOW; }
2N/Astatic unsigned long int ulongval () { return EOVERFLOW; }
2N/A@%:@include <stdio.h>
2N/A@%:@include <stdlib.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A FILE *f = fopen ("conftest.val", "w");
2N/A if (! f)
2N/A return 1;
2N/A if ((EOVERFLOW) < 0)
2N/A {
2N/A long int i = longval ();
2N/A if (i != (EOVERFLOW))
2N/A return 1;
2N/A fprintf (f, "%ld", i);
2N/A }
2N/A else
2N/A {
2N/A unsigned long int i = ulongval ();
2N/A if (i != (EOVERFLOW))
2N/A return 1;
2N/A fprintf (f, "%lu", i);
2N/A }
2N/A /* Do not output a trailing newline, as this causes \r\n confusion
2N/A on some platforms. */
2N/A return ferror (f) || fclose (f) != 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Arm -f conftest.val
2N/A fi
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
2N/A$as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
2N/A case $gl_cv_header_errno_h_EOVERFLOW in
2N/A yes | no)
2N/A EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
2N/A ;;
2N/A *)
2N/A EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
2N/A ;;
2N/A esac
2N/A
2N/A
2N/A fi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
2N/A$as_echo_n "checking whether strerror_r is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_strerror_r+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef strerror_r
2N/A (void) strerror_r;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_strerror_r=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_strerror_r=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
2N/A$as_echo "$ac_cv_have_decl_strerror_r" >&6; }
2N/Aif test "x$ac_cv_have_decl_strerror_r" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_STRERROR_R 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_STRERROR_R 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/Afor ac_func in strerror_r
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/Adone
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
2N/A$as_echo_n "checking whether strerror_r returns char *... " >&6; }
2N/Aif test "${ac_cv_func_strerror_r_char_p+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A ac_cv_func_strerror_r_char_p=no
2N/A if test $ac_cv_have_decl_strerror_r = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A char buf[100];
2N/A char x = *strerror_r (0, buf, sizeof buf);
2N/A char *p = strerror_r (0, buf, sizeof buf);
2N/A return !p || x;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_func_strerror_r_char_p=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A else
2N/A # strerror_r is not declared. Choose between
2N/A # systems that have relatively inaccessible declarations for the
2N/A # function. BeOS and DEC UNIX 4.0 fall in this category, but the
2N/A # former has a strerror_r that returns char*, while the latter
2N/A # has a strerror_r that returns `int'.
2N/A # This test should segfault on the DEC system.
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A extern char *strerror_r ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Achar buf[100];
2N/A char x = *strerror_r (0, buf, sizeof buf);
2N/A return ! isalpha (x);
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A ac_cv_func_strerror_r_char_p=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
2N/A$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
2N/Aif test $ac_cv_func_strerror_r_char_p = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define STRERROR_R_CHAR_P 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
2N/A$as_echo_n "checking for mbstate_t... " >&6; }
2N/Aif test "${ac_cv_type_mbstate_t+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A# include <wchar.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Ambstate_t x; return sizeof x;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_type_mbstate_t=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_type_mbstate_t=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
2N/A$as_echo "$ac_cv_type_mbstate_t" >&6; }
2N/A if test $ac_cv_type_mbstate_t = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_MBSTATE_T 1
2N/A_ACEOF
2N/A
2N/A else
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define mbstate_t int
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_DPRINTF=0;
2N/A GNULIB_FCLOSE=0;
2N/A GNULIB_FFLUSH=0;
2N/A GNULIB_FOPEN=0;
2N/A GNULIB_FPRINTF=0;
2N/A GNULIB_FPRINTF_POSIX=0;
2N/A GNULIB_FPURGE=0;
2N/A GNULIB_FPUTC=0;
2N/A GNULIB_FPUTS=0;
2N/A GNULIB_FREOPEN=0;
2N/A GNULIB_FSEEK=0;
2N/A GNULIB_FSEEKO=0;
2N/A GNULIB_FTELL=0;
2N/A GNULIB_FTELLO=0;
2N/A GNULIB_FWRITE=0;
2N/A GNULIB_GETDELIM=0;
2N/A GNULIB_GETLINE=0;
2N/A GNULIB_OBSTACK_PRINTF=0;
2N/A GNULIB_OBSTACK_PRINTF_POSIX=0;
2N/A GNULIB_PERROR=0;
2N/A GNULIB_POPEN=0;
2N/A GNULIB_PRINTF=0;
2N/A GNULIB_PRINTF_POSIX=0;
2N/A GNULIB_PUTC=0;
2N/A GNULIB_PUTCHAR=0;
2N/A GNULIB_PUTS=0;
2N/A GNULIB_REMOVE=0;
2N/A GNULIB_RENAME=0;
2N/A GNULIB_RENAMEAT=0;
2N/A GNULIB_SNPRINTF=0;
2N/A GNULIB_SPRINTF_POSIX=0;
2N/A GNULIB_STDIO_H_SIGPIPE=0;
2N/A GNULIB_TMPFILE=0;
2N/A GNULIB_VASPRINTF=0;
2N/A GNULIB_VDPRINTF=0;
2N/A GNULIB_VFPRINTF=0;
2N/A GNULIB_VFPRINTF_POSIX=0;
2N/A GNULIB_VPRINTF=0;
2N/A GNULIB_VPRINTF_POSIX=0;
2N/A GNULIB_VSNPRINTF=0;
2N/A GNULIB_VSPRINTF_POSIX=0;
2N/A HAVE_DECL_FPURGE=1;
2N/A HAVE_DECL_GETDELIM=1;
2N/A HAVE_DECL_GETLINE=1;
2N/A HAVE_DECL_OBSTACK_PRINTF=1;
2N/A HAVE_DECL_SNPRINTF=1;
2N/A HAVE_DECL_VSNPRINTF=1;
2N/A HAVE_DPRINTF=1;
2N/A HAVE_FSEEKO=1;
2N/A HAVE_FTELLO=1;
2N/A HAVE_RENAMEAT=1;
2N/A HAVE_VASPRINTF=1;
2N/A HAVE_VDPRINTF=1;
2N/A REPLACE_DPRINTF=0;
2N/A REPLACE_FCLOSE=0;
2N/A REPLACE_FFLUSH=0;
2N/A REPLACE_FOPEN=0;
2N/A REPLACE_FPRINTF=0;
2N/A REPLACE_FPURGE=0;
2N/A REPLACE_FREOPEN=0;
2N/A REPLACE_FSEEK=0;
2N/A REPLACE_FSEEKO=0;
2N/A REPLACE_FTELL=0;
2N/A REPLACE_FTELLO=0;
2N/A REPLACE_GETDELIM=0;
2N/A REPLACE_GETLINE=0;
2N/A REPLACE_OBSTACK_PRINTF=0;
2N/A REPLACE_PERROR=0;
2N/A REPLACE_POPEN=0;
2N/A REPLACE_PRINTF=0;
2N/A REPLACE_REMOVE=0;
2N/A REPLACE_RENAME=0;
2N/A REPLACE_RENAMEAT=0;
2N/A REPLACE_SNPRINTF=0;
2N/A REPLACE_SPRINTF=0;
2N/A REPLACE_STDIO_WRITE_FUNCS=0;
2N/A REPLACE_TMPFILE=0;
2N/A REPLACE_VASPRINTF=0;
2N/A REPLACE_VDPRINTF=0;
2N/A REPLACE_VFPRINTF=0;
2N/A REPLACE_VPRINTF=0;
2N/A REPLACE_VSNPRINTF=0;
2N/A REPLACE_VSPRINTF=0;
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
2N/A$as_echo_n "checking whether getdelim is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_getdelim+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef getdelim
2N/A (void) getdelim;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_getdelim=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_getdelim=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
2N/A$as_echo "$ac_cv_have_decl_getdelim" >&6; }
2N/Aif test "x$ac_cv_have_decl_getdelim" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETDELIM 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETDELIM 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
2N/A$as_echo_n "checking whether getline is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_getline+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef getline
2N/A (void) getline;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_getline=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_getline=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
2N/A$as_echo "$ac_cv_have_decl_getline" >&6; }
2N/Aif test "x$ac_cv_have_decl_getline" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETLINE 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETLINE 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A GNULIB_CHOWN=0;
2N/A GNULIB_CLOSE=0;
2N/A GNULIB_DUP2=0;
2N/A GNULIB_DUP3=0;
2N/A GNULIB_ENVIRON=0;
2N/A GNULIB_EUIDACCESS=0;
2N/A GNULIB_FACCESSAT=0;
2N/A GNULIB_FCHDIR=0;
2N/A GNULIB_FCHOWNAT=0;
2N/A GNULIB_FSYNC=0;
2N/A GNULIB_FTRUNCATE=0;
2N/A GNULIB_GETCWD=0;
2N/A GNULIB_GETDOMAINNAME=0;
2N/A GNULIB_GETDTABLESIZE=0;
2N/A GNULIB_GETGROUPS=0;
2N/A GNULIB_GETHOSTNAME=0;
2N/A GNULIB_GETLOGIN=0;
2N/A GNULIB_GETLOGIN_R=0;
2N/A GNULIB_GETPAGESIZE=0;
2N/A GNULIB_GETUSERSHELL=0;
2N/A GNULIB_LCHOWN=0;
2N/A GNULIB_LINK=0;
2N/A GNULIB_LINKAT=0;
2N/A GNULIB_LSEEK=0;
2N/A GNULIB_PIPE2=0;
2N/A GNULIB_PREAD=0;
2N/A GNULIB_PWRITE=0;
2N/A GNULIB_READLINK=0;
2N/A GNULIB_READLINKAT=0;
2N/A GNULIB_RMDIR=0;
2N/A GNULIB_SLEEP=0;
2N/A GNULIB_SYMLINK=0;
2N/A GNULIB_SYMLINKAT=0;
2N/A GNULIB_TTYNAME_R=0;
2N/A GNULIB_UNISTD_H_GETOPT=0;
2N/A GNULIB_UNISTD_H_SIGPIPE=0;
2N/A GNULIB_UNLINK=0;
2N/A GNULIB_UNLINKAT=0;
2N/A GNULIB_USLEEP=0;
2N/A GNULIB_WRITE=0;
2N/A HAVE_CHOWN=1;
2N/A HAVE_DUP2=1;
2N/A HAVE_DUP3=1;
2N/A HAVE_EUIDACCESS=1;
2N/A HAVE_FACCESSAT=1;
2N/A HAVE_FCHDIR=1;
2N/A HAVE_FCHOWNAT=1;
2N/A HAVE_FSYNC=1;
2N/A HAVE_FTRUNCATE=1;
2N/A HAVE_GETDOMAINNAME=1;
2N/A HAVE_GETDTABLESIZE=1;
2N/A HAVE_GETGROUPS=1;
2N/A HAVE_GETHOSTNAME=1;
2N/A HAVE_GETLOGIN=1;
2N/A HAVE_GETPAGESIZE=1;
2N/A HAVE_LCHOWN=1;
2N/A HAVE_LINK=1;
2N/A HAVE_LINKAT=1;
2N/A HAVE_PIPE2=1;
2N/A HAVE_PREAD=1;
2N/A HAVE_PWRITE=1;
2N/A HAVE_READLINK=1;
2N/A HAVE_READLINKAT=1;
2N/A HAVE_SLEEP=1;
2N/A HAVE_SYMLINK=1;
2N/A HAVE_SYMLINKAT=1;
2N/A HAVE_TTYNAME_R=1;
2N/A HAVE_UNLINKAT=1;
2N/A HAVE_USLEEP=1;
2N/A HAVE_DECL_ENVIRON=1;
2N/A HAVE_DECL_GETLOGIN_R=1;
2N/A HAVE_DECL_GETPAGESIZE=1;
2N/A HAVE_DECL_GETUSERSHELL=1;
2N/A HAVE_OS_H=0;
2N/A HAVE_SYS_PARAM_H=0;
2N/A REPLACE_CHOWN=0;
2N/A REPLACE_CLOSE=0;
2N/A REPLACE_DUP=0;
2N/A REPLACE_DUP2=0;
2N/A REPLACE_FCHOWNAT=0;
2N/A REPLACE_GETCWD=0;
2N/A REPLACE_GETGROUPS=0;
2N/A REPLACE_GETPAGESIZE=0;
2N/A REPLACE_LCHOWN=0;
2N/A REPLACE_LINK=0;
2N/A REPLACE_LINKAT=0;
2N/A REPLACE_LSEEK=0;
2N/A REPLACE_PREAD=0;
2N/A REPLACE_PWRITE=0;
2N/A REPLACE_READLINK=0;
2N/A REPLACE_RMDIR=0;
2N/A REPLACE_SLEEP=0;
2N/A REPLACE_SYMLINK=0;
2N/A REPLACE_TTYNAME_R=0;
2N/A REPLACE_UNLINK=0;
2N/A REPLACE_UNLINKAT=0;
2N/A REPLACE_USLEEP=0;
2N/A REPLACE_WRITE=0;
2N/A UNISTD_H_HAVE_WINSOCK2_H=0;
2N/A UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_getopt_h='<'getopt.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
2N/A$as_echo_n "checking absolute name of <getopt.h>... " >&6; }
2N/Aif test "${gl_cv_next_getopt_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_getopt_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <getopt.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/getopt.h#{
2N/A s#.*"\(.*/getopt.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_getopt_h='<'getopt.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
2N/A$as_echo "$gl_cv_next_getopt_h" >&6; }
2N/A fi
2N/A NEXT_GETOPT_H=$gl_cv_next_getopt_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'getopt.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_getopt_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_header_getopt_h = yes; then
2N/A HAVE_GETOPT_H=1
2N/A else
2N/A HAVE_GETOPT_H=0
2N/A fi
2N/A
2N/A
2N/A gl_replace_getopt=
2N/A
2N/A if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
2N/A
2N/Afor ac_header in getopt.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A gl_replace_getopt=yes
2N/Afi
2N/A
2N/Adone
2N/A
2N/A fi
2N/A
2N/A if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
2N/A
2N/Afor ac_func in getopt_long_only
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A gl_replace_getopt=yes
2N/Afi
2N/Adone
2N/A
2N/A fi
2N/A
2N/A if test -z "$gl_replace_getopt"; then
2N/A { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
2N/A$as_echo_n "checking whether optreset is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_optreset+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <getopt.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef optreset
2N/A (void) optreset;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_optreset=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_optreset=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
2N/A$as_echo "$ac_cv_have_decl_optreset" >&6; }
2N/Aif test "x$ac_cv_have_decl_optreset" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_OPTRESET 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_OPTRESET 0
2N/A_ACEOF
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
2N/A$as_echo_n "checking whether getopt_clip is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_getopt_clip+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <getopt.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef getopt_clip
2N/A (void) getopt_clip;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_getopt_clip=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_getopt_clip=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
2N/A$as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
2N/Aif test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETOPT_CLIP 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETOPT_CLIP 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/A if test -z "$gl_replace_getopt"; then
2N/A { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
2N/A$as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
2N/Aif test "${gl_cv_func_getopt_posix+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test "$cross_compiling" = yes; then
2N/A case "$host_os" in
2N/A mingw*) gl_cv_func_getopt_posix="guessing no";;
2N/A darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
2N/A *) gl_cv_func_getopt_posix="guessing yes";;
2N/A esac
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <unistd.h>
2N/A#include <stdlib.h>
2N/A#include <string.h>
2N/A
2N/A#if !HAVE_DECL_OPTRESET && !HAVE_DECL_GETOPT_CLIP
2N/A# define OPTIND_MIN 0
2N/A#else
2N/A# define OPTIND_MIN 1
2N/A#endif
2N/A
2N/Aint
2N/Amain ()
2N/A{
2N/A {
2N/A int argc = 0;
2N/A char *argv[10];
2N/A int c;
2N/A
2N/A argv[argc++] = "program";
2N/A argv[argc++] = "-a";
2N/A argv[argc++] = "foo";
2N/A argv[argc++] = "bar";
2N/A argv[argc] = NULL;
2N/A optind = OPTIND_MIN;
2N/A opterr = 0;
2N/A
2N/A c = getopt (argc, argv, "ab");
2N/A if (!(c == 'a'))
2N/A return 1;
2N/A c = getopt (argc, argv, "ab");
2N/A if (!(c == -1))
2N/A return 2;
2N/A if (!(optind == 2))
2N/A return 3;
2N/A }
2N/A /* Some internal state exists at this point. */
2N/A {
2N/A int argc = 0;
2N/A char *argv[10];
2N/A int c;
2N/A
2N/A argv[argc++] = "program";
2N/A argv[argc++] = "donald";
2N/A argv[argc++] = "-p";
2N/A argv[argc++] = "billy";
2N/A argv[argc++] = "duck";
2N/A argv[argc++] = "-a";
2N/A argv[argc++] = "bar";
2N/A argv[argc] = NULL;
2N/A optind = OPTIND_MIN;
2N/A opterr = 0;
2N/A
2N/A c = getopt (argc, argv, "+abp:q:");
2N/A if (!(c == -1))
2N/A return 4;
2N/A if (!(strcmp (argv[0], "program") == 0))
2N/A return 5;
2N/A if (!(strcmp (argv[1], "donald") == 0))
2N/A return 6;
2N/A if (!(strcmp (argv[2], "-p") == 0))
2N/A return 7;
2N/A if (!(strcmp (argv[3], "billy") == 0))
2N/A return 8;
2N/A if (!(strcmp (argv[4], "duck") == 0))
2N/A return 9;
2N/A if (!(strcmp (argv[5], "-a") == 0))
2N/A return 10;
2N/A if (!(strcmp (argv[6], "bar") == 0))
2N/A return 11;
2N/A if (!(optind == 1))
2N/A return 12;
2N/A }
2N/A /* Detect MacOS 10.5, AIX 7.1 bug. */
2N/A {
2N/A char *argv[3] = { "program", "-ab", NULL };
2N/A optind = OPTIND_MIN;
2N/A opterr = 0;
2N/A if (getopt (2, argv, "ab:") != 'a')
2N/A return 13;
2N/A if (getopt (2, argv, "ab:") != '?')
2N/A return 14;
2N/A if (optopt != 'b')
2N/A return 15;
2N/A if (optind != 2)
2N/A return 16;
2N/A }
2N/A
2N/A return 0;
2N/A}
2N/A
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_getopt_posix=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_getopt_posix=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
2N/A$as_echo "$gl_cv_func_getopt_posix" >&6; }
2N/A case "$gl_cv_func_getopt_posix" in
2N/A *no) gl_replace_getopt=yes ;;
2N/A esac
2N/A fi
2N/A
2N/A if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
2N/A { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
2N/A$as_echo_n "checking for working GNU getopt function... " >&6; }
2N/Aif test "${gl_cv_func_getopt_gnu+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
2N/A # optstring is necessary for programs like m4 that have POSIX-mandated
2N/A # semantics for supporting options interspersed with files.
2N/A # Also, since getopt_long is a GNU extension, we require optind=0.
2N/A # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
2N/A # so take care to revert to the correct (non-)export state.
2N/A gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
2N/A case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
2N/A xx) gl_had_POSIXLY_CORRECT=exported ;;
2N/A x) gl_had_POSIXLY_CORRECT=yes ;;
2N/A *) gl_had_POSIXLY_CORRECT= ;;
2N/A esac
2N/A POSIXLY_CORRECT=1
2N/A export POSIXLY_CORRECT
2N/A if test "$cross_compiling" = yes; then
2N/A case $host_os:$ac_cv_have_decl_optreset in
2N/A *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
2N/A *:yes) gl_cv_func_getopt_gnu=no;;
2N/A *) gl_cv_func_getopt_gnu=yes;;
2N/A esac
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <getopt.h>
2N/A #include <stddef.h>
2N/A #include <string.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
2N/A and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
2N/A OSF/1 5.1, Solaris 10. */
2N/A {
2N/A char *myargv[3];
2N/A myargv[0] = "conftest";
2N/A myargv[1] = "-+";
2N/A myargv[2] = 0;
2N/A opterr = 0;
2N/A if (getopt (2, myargv, "+a") != '?')
2N/A return 1;
2N/A }
2N/A /* This code succeeds on glibc 2.8, mingw,
2N/A and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
2N/A IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
2N/A {
2N/A char *argv[] = { "program", "-p", "foo", "bar", NULL };
2N/A
2N/A optind = 1;
2N/A if (getopt (4, argv, "p::") != 'p')
2N/A return 2;
2N/A if (optarg != NULL)
2N/A return 3;
2N/A if (getopt (4, argv, "p::") != -1)
2N/A return 4;
2N/A if (optind != 2)
2N/A return 5;
2N/A }
2N/A /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
2N/A {
2N/A char *argv[] = { "program", "foo", "-p", NULL };
2N/A optind = 0;
2N/A if (getopt (3, argv, "-p") != 1)
2N/A return 6;
2N/A if (getopt (3, argv, "-p") != 'p')
2N/A return 7;
2N/A }
2N/A /* This code fails on glibc 2.11. */
2N/A {
2N/A char *argv[] = { "program", "-b", "-a", NULL };
2N/A optind = opterr = 0;
2N/A if (getopt (3, argv, "+:a:b") != 'b')
2N/A return 8;
2N/A if (getopt (3, argv, "+:a:b") != ':')
2N/A return 9;
2N/A }
2N/A return 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_getopt_gnu=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_getopt_gnu=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A case $gl_had_POSIXLY_CORRECT in
2N/A exported) ;;
2N/A yes) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; }; POSIXLY_CORRECT=1 ;;
2N/A *) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; } ;;
2N/A esac
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
2N/A$as_echo "$gl_cv_func_getopt_gnu" >&6; }
2N/A if test "$gl_cv_func_getopt_gnu" = "no"; then
2N/A gl_replace_getopt=yes
2N/A fi
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test -n "$gl_replace_getopt"; then
2N/A
2N/A
2N/A
2N/A GETOPT_H=getopt.h
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define __GETOPT_PREFIX rpl_
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A GNULIB_UNISTD_H_GETOPT=1
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_NL_LANGINFO=0;
2N/A HAVE_NL_LANGINFO=1;
2N/A REPLACE_NL_LANGINFO=0;
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
2N/A$as_echo_n "checking for working fcntl.h... " >&6; }
2N/Aif test "${gl_cv_header_working_fcntl_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A gl_cv_header_working_fcntl_h=cross-compiling
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <sys/types.h>
2N/A #include <sys/stat.h>
2N/A #include <unistd.h>
2N/A #include <fcntl.h>
2N/A #ifndef O_NOATIME
2N/A #define O_NOATIME 0
2N/A #endif
2N/A #ifndef O_NOFOLLOW
2N/A #define O_NOFOLLOW 0
2N/A #endif
2N/A static int const constants[] =
2N/A {
2N/A O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
2N/A O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
2N/A };
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A int status = !constants;
2N/A {
2N/A static char const sym[] = "conftest.sym";
2N/A if (symlink (".", sym) != 0
2N/A || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
2N/A status |= 32;
2N/A unlink (sym);
2N/A }
2N/A {
2N/A static char const file[] = "confdefs.h";
2N/A int fd = open (file, O_RDONLY | O_NOATIME);
2N/A char c;
2N/A struct stat st0, st1;
2N/A if (fd < 0
2N/A || fstat (fd, &st0) != 0
2N/A || sleep (1) != 0
2N/A || read (fd, &c, 1) != 1
2N/A || close (fd) != 0
2N/A || stat (file, &st1) != 0
2N/A || st0.st_atime != st1.st_atime)
2N/A status |= 64;
2N/A }
2N/A return status;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_header_working_fcntl_h=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Acase $? in #(
2N/A 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
2N/A 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
2N/A 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
2N/A *) gl_cv_header_working_fcntl_h='no';;
2N/A esac
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
2N/A$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
2N/A
2N/A case $gl_cv_header_working_fcntl_h in #(
2N/A *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
2N/A *) ac_val=1;;
2N/A esac
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_WORKING_O_NOATIME $ac_val
2N/A_ACEOF
2N/A
2N/A
2N/A case $gl_cv_header_working_fcntl_h in #(
2N/A *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
2N/A *) ac_val=1;;
2N/A esac
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_WORKING_O_NOFOLLOW $ac_val
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
2N/A$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
2N/Aif test "${ac_cv_gnu_library_2_1+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <features.h>
2N/A#ifdef __GNU_LIBRARY__
2N/A #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2N/A Lucky GNU user
2N/A #endif
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "Lucky GNU user" >/dev/null 2>&1; then
2N/A ac_cv_gnu_library_2_1=yes
2N/Aelse
2N/A ac_cv_gnu_library_2_1=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
2N/A$as_echo "$ac_cv_gnu_library_2_1" >&6; }
2N/A
2N/A GLIBC21="$ac_cv_gnu_library_2_1"
2N/A
2N/A
2N/A
2N/A GNULIB__EXIT=0;
2N/A GNULIB_ATOLL=0;
2N/A GNULIB_CALLOC_POSIX=0;
2N/A GNULIB_CANONICALIZE_FILE_NAME=0;
2N/A GNULIB_GETLOADAVG=0;
2N/A GNULIB_GETSUBOPT=0;
2N/A GNULIB_GRANTPT=0;
2N/A GNULIB_MALLOC_POSIX=0;
2N/A GNULIB_MKDTEMP=0;
2N/A GNULIB_MKOSTEMP=0;
2N/A GNULIB_MKOSTEMPS=0;
2N/A GNULIB_MKSTEMP=0;
2N/A GNULIB_MKSTEMPS=0;
2N/A GNULIB_PTSNAME=0;
2N/A GNULIB_PUTENV=0;
2N/A GNULIB_RANDOM_R=0;
2N/A GNULIB_REALLOC_POSIX=0;
2N/A GNULIB_REALPATH=0;
2N/A GNULIB_RPMATCH=0;
2N/A GNULIB_SETENV=0;
2N/A GNULIB_STRTOD=0;
2N/A GNULIB_STRTOLL=0;
2N/A GNULIB_STRTOULL=0;
2N/A GNULIB_UNLOCKPT=0;
2N/A GNULIB_UNSETENV=0;
2N/A HAVE__EXIT=1;
2N/A HAVE_ATOLL=1;
2N/A HAVE_CANONICALIZE_FILE_NAME=1;
2N/A HAVE_DECL_GETLOADAVG=1;
2N/A HAVE_GETSUBOPT=1;
2N/A HAVE_GRANTPT=1;
2N/A HAVE_MKDTEMP=1;
2N/A HAVE_MKOSTEMP=1;
2N/A HAVE_MKOSTEMPS=1;
2N/A HAVE_MKSTEMP=1;
2N/A HAVE_MKSTEMPS=1;
2N/A HAVE_PTSNAME=1;
2N/A HAVE_RANDOM_R=1;
2N/A HAVE_REALPATH=1;
2N/A HAVE_RPMATCH=1;
2N/A HAVE_SETENV=1;
2N/A HAVE_STRTOD=1;
2N/A HAVE_STRTOLL=1;
2N/A HAVE_STRTOULL=1;
2N/A HAVE_STRUCT_RANDOM_DATA=1;
2N/A HAVE_SYS_LOADAVG_H=0;
2N/A HAVE_UNLOCKPT=1;
2N/A HAVE_UNSETENV=1;
2N/A REPLACE_CALLOC=0;
2N/A REPLACE_CANONICALIZE_FILE_NAME=0;
2N/A REPLACE_MALLOC=0;
2N/A REPLACE_MKSTEMP=0;
2N/A REPLACE_PUTENV=0;
2N/A REPLACE_REALLOC=0;
2N/A REPLACE_REALPATH=0;
2N/A REPLACE_SETENV=0;
2N/A REPLACE_STRTOD=0;
2N/A REPLACE_UNSETENV=0;
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
2N/A$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
2N/Aif test "${gl_cv_func_malloc_posix+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
2N/A choke me
2N/A #endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_func_malloc_posix=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gl_cv_func_malloc_posix=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
2N/A$as_echo "$gl_cv_func_malloc_posix" >&6; }
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
2N/A$as_echo_n "checking for a traditional japanese locale... " >&6; }
2N/Aif test "${gt_cv_locale_ja+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <time.h>
2N/A#if HAVE_LANGINFO_CODESET
2N/A# include <langinfo.h>
2N/A#endif
2N/A#include <stdlib.h>
2N/A#include <string.h>
2N/Astruct tm t;
2N/Achar buf[16];
2N/Aint main ()
2N/A{
2N/A const char *p;
2N/A /* Check whether the given locale name is recognized by the system. */
2N/A if (setlocale (LC_ALL, "") == NULL) return 1;
2N/A /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
2N/A On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
2N/A is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
2N/A On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
2N/A succeeds but then nl_langinfo(CODESET) is "646". In this situation,
2N/A some unit tests fail. */
2N/A#if HAVE_LANGINFO_CODESET
2N/A {
2N/A const char *cs = nl_langinfo (CODESET);
2N/A if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
2N/A return 1;
2N/A }
2N/A#endif
2N/A#ifdef __CYGWIN__
2N/A /* On Cygwin, avoid locale names without encoding suffix, because the
2N/A locale_charset() function relies on the encoding suffix. Note that
2N/A LC_ALL is set on the command line. */
2N/A if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
2N/A#endif
2N/A /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
2N/A on Cygwin 1.5.x. */
2N/A if (MB_CUR_MAX == 1)
2N/A return 1;
2N/A /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
2N/A This excludes the UTF-8 encoding. */
2N/A t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
2N/A if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
2N/A for (p = buf; *p != '\0'; p++)
2N/A if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
2N/A return 1;
2N/A return 0;
2N/A}
2N/A
2N/A_ACEOF
2N/A if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2N/A (eval $ac_link) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && test -s conftest$ac_exeext; then
2N/A # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
2N/A # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
2N/A # configure script would override the LC_ALL setting. Likewise for
2N/A # LC_CTYPE, which is also set at the beginning of the configure script.
2N/A # Test for the AIX locale name.
2N/A if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_ja=ja_JP
2N/A else
2N/A # Test for the locale name with explicit encoding suffix.
2N/A if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_ja=ja_JP.EUC-JP
2N/A else
2N/A # Test for the HP-UX, OSF/1, NetBSD locale name.
2N/A if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_ja=ja_JP.eucJP
2N/A else
2N/A # Test for the IRIX, FreeBSD locale name.
2N/A if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_ja=ja_JP.EUC
2N/A else
2N/A # Test for the Solaris 7 locale name.
2N/A if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_ja=ja
2N/A else
2N/A # Special test for NetBSD 1.6.
2N/A if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
2N/A gt_cv_locale_ja=ja_JP.eucJP
2N/A else
2N/A # None found.
2N/A gt_cv_locale_ja=none
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A rm -fr conftest*
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
2N/A$as_echo "$gt_cv_locale_ja" >&6; }
2N/A LOCALE_JA=$gt_cv_locale_ja
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
2N/A$as_echo_n "checking for a transitional chinese locale... " >&6; }
2N/Aif test "${gt_cv_locale_zh_CN+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <stdlib.h>
2N/A#include <time.h>
2N/A#if HAVE_LANGINFO_CODESET
2N/A# include <langinfo.h>
2N/A#endif
2N/A#include <stdlib.h>
2N/A#include <string.h>
2N/Astruct tm t;
2N/Achar buf[16];
2N/Aint main ()
2N/A{
2N/A const char *p;
2N/A /* Check whether the given locale name is recognized by the system. */
2N/A if (setlocale (LC_ALL, "") == NULL) return 1;
2N/A /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
2N/A On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
2N/A is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
2N/A On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
2N/A succeeds but then nl_langinfo(CODESET) is "646". In this situation,
2N/A some unit tests fail. */
2N/A#if HAVE_LANGINFO_CODESET
2N/A {
2N/A const char *cs = nl_langinfo (CODESET);
2N/A if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
2N/A return 1;
2N/A }
2N/A#endif
2N/A#ifdef __CYGWIN__
2N/A /* On Cygwin, avoid locale names without encoding suffix, because the
2N/A locale_charset() function relies on the encoding suffix. Note that
2N/A LC_ALL is set on the command line. */
2N/A if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
2N/A#endif
2N/A /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
2N/A This excludes the UTF-8 encoding. */
2N/A t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
2N/A if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
2N/A for (p = buf; *p != '\0'; p++)
2N/A if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
2N/A return 1;
2N/A /* Check whether a typical GB18030 multibyte sequence is recognized as a
2N/A single wide character. This excludes the GB2312 and GBK encodings. */
2N/A if (mblen ("\203\062\332\066", 5) != 4)
2N/A return 1;
2N/A return 0;
2N/A}
2N/A
2N/A_ACEOF
2N/A if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2N/A (eval $ac_link) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && test -s conftest$ac_exeext; then
2N/A # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
2N/A # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
2N/A # configure script would override the LC_ALL setting. Likewise for
2N/A # LC_CTYPE, which is also set at the beginning of the configure script.
2N/A # Test for the locale name without encoding suffix.
2N/A if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_zh_CN=zh_CN
2N/A else
2N/A # Test for the locale name with explicit encoding suffix.
2N/A if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_zh_CN=zh_CN.GB18030
2N/A else
2N/A # None found.
2N/A gt_cv_locale_zh_CN=none
2N/A fi
2N/A fi
2N/A else
2N/A # If there was a link error, due to mblen(), the system is so old that
2N/A # it certainly doesn't have a chinese locale.
2N/A gt_cv_locale_zh_CN=none
2N/A fi
2N/A rm -fr conftest*
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
2N/A$as_echo "$gt_cv_locale_zh_CN" >&6; }
2N/A LOCALE_ZH_CN=$gt_cv_locale_zh_CN
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
2N/A$as_echo_n "checking for a french Unicode locale... " >&6; }
2N/Aif test "${gt_cv_locale_fr_utf8+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <time.h>
2N/A#if HAVE_LANGINFO_CODESET
2N/A# include <langinfo.h>
2N/A#endif
2N/A#include <stdlib.h>
2N/A#include <string.h>
2N/Astruct tm t;
2N/Achar buf[16];
2N/Aint main () {
2N/A /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
2N/A imitates locale dependent behaviour by looking at the environment
2N/A variables, and all locales use the UTF-8 encoding. */
2N/A#if !(defined __BEOS__ || defined __HAIKU__)
2N/A /* Check whether the given locale name is recognized by the system. */
2N/A if (setlocale (LC_ALL, "") == NULL) return 1;
2N/A /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
2N/A On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
2N/A is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
2N/A On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
2N/A succeeds but then nl_langinfo(CODESET) is "646". In this situation,
2N/A some unit tests fail. */
2N/A# if HAVE_LANGINFO_CODESET
2N/A {
2N/A const char *cs = nl_langinfo (CODESET);
2N/A if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
2N/A return 1;
2N/A }
2N/A# endif
2N/A# ifdef __CYGWIN__
2N/A /* On Cygwin, avoid locale names without encoding suffix, because the
2N/A locale_charset() function relies on the encoding suffix. Note that
2N/A LC_ALL is set on the command line. */
2N/A if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
2N/A# endif
2N/A /* Check whether in the abbreviation of the second month, the second
2N/A character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
2N/A two bytes long, with UTF-8 encoding. */
2N/A t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
2N/A if (strftime (buf, sizeof (buf), "%b", &t) < 4
2N/A || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
2N/A return 1;
2N/A#endif
2N/A /* Check whether the decimal separator is a comma.
2N/A On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
2N/A are nl_langinfo(RADIXCHAR) are both ".". */
2N/A if (localeconv () ->decimal_point[0] != ',') return 1;
2N/A return 0;
2N/A}
2N/A
2N/A_ACEOF
2N/A if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2N/A (eval $ac_link) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && test -s conftest$ac_exeext; then
2N/A # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
2N/A # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
2N/A # configure script would override the LC_ALL setting. Likewise for
2N/A # LC_CTYPE, which is also set at the beginning of the configure script.
2N/A # Test for the usual locale name.
2N/A if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_fr_utf8=fr_FR
2N/A else
2N/A # Test for the locale name with explicit encoding suffix.
2N/A if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_fr_utf8=fr_FR.UTF-8
2N/A else
2N/A # Test for the Solaris 7 locale name.
2N/A if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
2N/A gt_cv_locale_fr_utf8=fr.UTF-8
2N/A else
2N/A # None found.
2N/A gt_cv_locale_fr_utf8=none
2N/A fi
2N/A fi
2N/A fi
2N/A fi
2N/A rm -fr conftest*
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
2N/A$as_echo "$gt_cv_locale_fr_utf8" >&6; }
2N/A LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_MEMCHR=0;
2N/A GNULIB_MEMMEM=0;
2N/A GNULIB_MEMPCPY=0;
2N/A GNULIB_MEMRCHR=0;
2N/A GNULIB_RAWMEMCHR=0;
2N/A GNULIB_STPCPY=0;
2N/A GNULIB_STPNCPY=0;
2N/A GNULIB_STRCHRNUL=0;
2N/A GNULIB_STRDUP=0;
2N/A GNULIB_STRNCAT=0;
2N/A GNULIB_STRNDUP=0;
2N/A GNULIB_STRNLEN=0;
2N/A GNULIB_STRPBRK=0;
2N/A GNULIB_STRSEP=0;
2N/A GNULIB_STRSTR=0;
2N/A GNULIB_STRCASESTR=0;
2N/A GNULIB_STRTOK_R=0;
2N/A GNULIB_MBSLEN=0;
2N/A GNULIB_MBSNLEN=0;
2N/A GNULIB_MBSCHR=0;
2N/A GNULIB_MBSRCHR=0;
2N/A GNULIB_MBSSTR=0;
2N/A GNULIB_MBSCASECMP=0;
2N/A GNULIB_MBSNCASECMP=0;
2N/A GNULIB_MBSPCASECMP=0;
2N/A GNULIB_MBSCASESTR=0;
2N/A GNULIB_MBSCSPN=0;
2N/A GNULIB_MBSPBRK=0;
2N/A GNULIB_MBSSPN=0;
2N/A GNULIB_MBSSEP=0;
2N/A GNULIB_MBSTOK_R=0;
2N/A GNULIB_STRERROR=0;
2N/A GNULIB_STRSIGNAL=0;
2N/A GNULIB_STRVERSCMP=0;
2N/A HAVE_MBSLEN=0;
2N/A HAVE_MEMCHR=1;
2N/A HAVE_DECL_MEMMEM=1;
2N/A HAVE_MEMPCPY=1;
2N/A HAVE_DECL_MEMRCHR=1;
2N/A HAVE_RAWMEMCHR=1;
2N/A HAVE_STPCPY=1;
2N/A HAVE_STPNCPY=1;
2N/A HAVE_STRCHRNUL=1;
2N/A HAVE_DECL_STRDUP=1;
2N/A HAVE_DECL_STRNDUP=1;
2N/A HAVE_DECL_STRNLEN=1;
2N/A HAVE_STRPBRK=1;
2N/A HAVE_STRSEP=1;
2N/A HAVE_STRCASESTR=1;
2N/A HAVE_DECL_STRTOK_R=1;
2N/A HAVE_DECL_STRSIGNAL=1;
2N/A HAVE_STRVERSCMP=1;
2N/A REPLACE_MEMCHR=0;
2N/A REPLACE_MEMMEM=0;
2N/A REPLACE_STPNCPY=0;
2N/A REPLACE_STRDUP=0;
2N/A REPLACE_STRSTR=0;
2N/A REPLACE_STRCASESTR=0;
2N/A REPLACE_STRERROR=0;
2N/A REPLACE_STRNCAT=0;
2N/A REPLACE_STRNDUP=0;
2N/A REPLACE_STRNLEN=0;
2N/A REPLACE_STRSIGNAL=0;
2N/A REPLACE_STRTOK_R=0;
2N/A UNDEFINE_STRTOK_R=0;
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
2N/A # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
2N/A # irrelevant for anonymous mappings.
2N/A { $as_echo "$as_me:$LINENO: checking for mmap" >&5
2N/A$as_echo_n "checking for mmap... " >&6; }
2N/Aif test "${ac_cv_func_mmap+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define mmap innocuous_mmap
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char mmap (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef mmap
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar mmap ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_mmap || defined __stub___mmap
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn mmap ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_func_mmap=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_func_mmap=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
2N/A$as_echo "$ac_cv_func_mmap" >&6; }
2N/Aif test "x$ac_cv_func_mmap" = x""yes; then
2N/A gl_have_mmap=yes
2N/Aelse
2N/A gl_have_mmap=no
2N/Afi
2N/A
2N/A
2N/A # Try to allow MAP_ANONYMOUS.
2N/A gl_have_mmap_anonymous=no
2N/A if test $gl_have_mmap = yes; then
2N/A { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
2N/A$as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <sys/mman.h>
2N/A#ifdef MAP_ANONYMOUS
2N/A I cant identify this map.
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "I cant identify this map." >/dev/null 2>&1; then
2N/A gl_have_mmap_anonymous=yes
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A if test $gl_have_mmap_anonymous != yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <sys/mman.h>
2N/A#ifdef MAP_ANON
2N/A I cant identify this map.
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "I cant identify this map." >/dev/null 2>&1; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define MAP_ANONYMOUS MAP_ANON
2N/A_ACEOF
2N/A
2N/A gl_have_mmap_anonymous=yes
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A fi
2N/A { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
2N/A$as_echo "$gl_have_mmap_anonymous" >&6; }
2N/A if test $gl_have_mmap_anonymous = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_MAP_ANONYMOUS 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_memchr = yes; then
2N/A # Detect platform-specific bugs in some versions of glibc:
2N/A # memchr should not dereference anything with length 0
2N/A # http://bugzilla.redhat.com/499689
2N/A # memchr should not dereference overestimated length after a match
2N/A # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
2N/A # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
2N/A # Assume that memchr works on platforms that lack mprotect.
2N/A { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
2N/A$as_echo_n "checking whether memchr works... " >&6; }
2N/Aif test "${gl_cv_func_memchr_works+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A gl_cv_func_memchr_works="guessing no"
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <string.h>
2N/A#if HAVE_SYS_MMAN_H
2N/A# include <fcntl.h>
2N/A# include <unistd.h>
2N/A# include <sys/types.h>
2N/A# include <sys/mman.h>
2N/A# ifndef MAP_FILE
2N/A# define MAP_FILE 0
2N/A# endif
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A char *fence = NULL;
2N/A#if HAVE_SYS_MMAN_H && HAVE_MPROTECT
2N/A# if HAVE_MAP_ANONYMOUS
2N/A const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
2N/A const int fd = -1;
2N/A# else /* !HAVE_MAP_ANONYMOUS */
2N/A const int flags = MAP_FILE | MAP_PRIVATE;
2N/A int fd = open ("/dev/zero", O_RDONLY, 0666);
2N/A if (fd >= 0)
2N/A# endif
2N/A {
2N/A int pagesize = getpagesize ();
2N/A char *two_pages =
2N/A (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
2N/A flags, fd, 0);
2N/A if (two_pages != (char *)(-1)
2N/A && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
2N/A fence = two_pages + pagesize;
2N/A }
2N/A#endif
2N/A if (fence)
2N/A {
2N/A if (memchr (fence, 0, 0))
2N/A return 1;
2N/A strcpy (fence - 9, "12345678");
2N/A if (memchr (fence - 9, 0, 79) != fence - 1)
2N/A return 2;
2N/A if (memchr (fence - 1, 0, 3) != fence - 1)
2N/A return 3;
2N/A }
2N/A return 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_memchr_works=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_memchr_works=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
2N/A$as_echo "$gl_cv_func_memchr_works" >&6; }
2N/A if test "$gl_cv_func_memchr_works" != yes; then
2N/A REPLACE_MEMCHR=1
2N/A fi
2N/A else
2N/A HAVE_MEMCHR=0
2N/A fi
2N/A if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
2N/A
2N/A
2N/A
2N/Afor ac_header in bp-sym.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/A
2N/A fi
2N/A
2N/A
2N/A gl_cv_c_multiarch=no
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#ifndef __APPLE_CC__
2N/A not a universal capable compiler
2N/A #endif
2N/A typedef int dummy;
2N/A
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A
2N/A arch=
2N/A prev=
2N/A for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
2N/A if test -n "$prev"; then
2N/A case $word in
2N/A i?86 | x86_64 | ppc | ppc64)
2N/A if test -z "$arch" || test "$arch" = "$word"; then
2N/A arch="$word"
2N/A else
2N/A gl_cv_c_multiarch=yes
2N/A fi
2N/A ;;
2N/A esac
2N/A prev=
2N/A else
2N/A if test "x$word" = "x-arch"; then
2N/A prev=arch
2N/A fi
2N/A fi
2N/A done
2N/A
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A if test $gl_cv_c_multiarch = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define AA_APPLE_UNIVERSAL_BUILD 1
2N/A_ACEOF
2N/A
2N/A APPLE_UNIVERSAL_BUILD=1
2N/A else
2N/A APPLE_UNIVERSAL_BUILD=0
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
2N/A$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
2N/Aif test "${ac_cv_header_stdbool_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A #include <stdbool.h>
2N/A #ifndef bool
2N/A "error: bool is not defined"
2N/A #endif
2N/A #ifndef false
2N/A "error: false is not defined"
2N/A #endif
2N/A #if false
2N/A "error: false is not 0"
2N/A #endif
2N/A #ifndef true
2N/A "error: true is not defined"
2N/A #endif
2N/A #if true != 1
2N/A "error: true is not 1"
2N/A #endif
2N/A #ifndef __bool_true_false_are_defined
2N/A "error: __bool_true_false_are_defined is not defined"
2N/A #endif
2N/A
2N/A struct s { _Bool s: 1; _Bool t; } s;
2N/A
2N/A char a[true == 1 ? 1 : -1];
2N/A char b[false == 0 ? 1 : -1];
2N/A char c[__bool_true_false_are_defined == 1 ? 1 : -1];
2N/A char d[(bool) 0.5 == true ? 1 : -1];
2N/A /* See body of main program for 'e'. */
2N/A char f[(_Bool) 0.0 == false ? 1 : -1];
2N/A char g[true];
2N/A char h[sizeof (_Bool)];
2N/A char i[sizeof s.t];
2N/A enum { j = false, k = true, l = false * true, m = true * 256 };
2N/A /* The following fails for
2N/A HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
2N/A _Bool n[m];
2N/A char o[sizeof n == m * sizeof n[0] ? 1 : -1];
2N/A char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
2N/A /* Catch a bug in an HP-UX C compiler. See
2N/A http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
2N/A http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
2N/A */
2N/A _Bool q = true;
2N/A _Bool *pq = &q;
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A bool e = &s;
2N/A *pq |= q;
2N/A *pq |= ! q;
2N/A /* Refer to every declared value, to avoid compiler optimizations. */
2N/A return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
2N/A + !m + !n + !o + !p + !q + !pq);
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_header_stdbool_h=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_header_stdbool_h=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
2N/A$as_echo "$ac_cv_header_stdbool_h" >&6; }
2N/A { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
2N/A$as_echo_n "checking for _Bool... " >&6; }
2N/Aif test "${ac_cv_type__Bool+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_type__Bool=no
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Aif (sizeof (_Bool))
2N/A return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Aif (sizeof ((_Bool)))
2N/A return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A :
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_type__Bool=yes
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
2N/A$as_echo "$ac_cv_type__Bool" >&6; }
2N/Aif test "x$ac_cv_type__Bool" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE__BOOL 1
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A if test $ac_cv_header_stdbool_h = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_STDBOOL_H 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A REPLACE_NULL=0;
2N/A HAVE_WCHAR_T=1;
2N/A STDDEF_H='';
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
2N/A$as_echo_n "checking for wchar_t... " >&6; }
2N/Aif test "${gt_cv_c_wchar_t+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/A wchar_t foo = (wchar_t)'\0';
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gt_cv_c_wchar_t=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gt_cv_c_wchar_t=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
2N/A$as_echo "$gt_cv_c_wchar_t" >&6; }
2N/A if test $gt_cv_c_wchar_t = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_WCHAR_T 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for long long int" >&5
2N/A$as_echo_n "checking for long long int... " >&6; }
2N/Aif test "${ac_cv_type_long_long_int+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A
2N/A /* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* For now, do not test the preprocessor; as of 2007 there are too many
2N/A implementations with broken preprocessors. Perhaps this can
2N/A be revisited in 2012. In the meantime, code should not expect
2N/A #if to work with literals wider than 32 bits. */
2N/A /* Test literals. */
2N/A long long int ll = 9223372036854775807ll;
2N/A long long int nll = -9223372036854775807LL;
2N/A unsigned long long int ull = 18446744073709551615ULL;
2N/A /* Test constant expressions. */
2N/A typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
2N/A ? 1 : -1)];
2N/A typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
2N/A ? 1 : -1)];
2N/A int i = 63;
2N/Aint
2N/Amain (void)
2N/A{
2N/A/* Test availability of runtime routines for shift and division. */
2N/A long long int llmax = 9223372036854775807ll;
2N/A unsigned long long int ullmax = 18446744073709551615ull;
2N/A return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
2N/A | (llmax / ll) | (llmax % ll)
2N/A | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
2N/A | (ullmax / ull) | (ullmax % ull));
2N/A ;
2N/A return 0;
2N/A}
2N/A
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A if test "$cross_compiling" = yes; then
2N/A ac_cv_type_long_long_int=yes
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <limits.h>
2N/A @%:@ifndef LLONG_MAX
2N/A @%:@ define HALF \
2N/A (1LL << (sizeof (long long int) * CHAR_BIT - 2))
2N/A @%:@ define LLONG_MAX (HALF - 1 + HALF)
2N/A @%:@endif
2N/Aint
2N/Amain (void)
2N/A{
2N/Along long int n = 1;
2N/A int i;
2N/A for (i = 0; ; i++)
2N/A {
2N/A long long int m = n << i;
2N/A if (m >> i != n)
2N/A return 1;
2N/A if (LLONG_MAX / 2 < m)
2N/A break;
2N/A }
2N/A return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A ac_cv_type_long_long_int=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aac_cv_type_long_long_int=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_type_long_long_int=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
2N/A$as_echo "$ac_cv_type_long_long_int" >&6; }
2N/A if test $ac_cv_type_long_long_int = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_LONG_LONG_INT 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
2N/A$as_echo_n "checking for unsigned long long int... " >&6; }
2N/Aif test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A
2N/A /* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* For now, do not test the preprocessor; as of 2007 there are too many
2N/A implementations with broken preprocessors. Perhaps this can
2N/A be revisited in 2012. In the meantime, code should not expect
2N/A #if to work with literals wider than 32 bits. */
2N/A /* Test literals. */
2N/A long long int ll = 9223372036854775807ll;
2N/A long long int nll = -9223372036854775807LL;
2N/A unsigned long long int ull = 18446744073709551615ULL;
2N/A /* Test constant expressions. */
2N/A typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
2N/A ? 1 : -1)];
2N/A typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
2N/A ? 1 : -1)];
2N/A int i = 63;
2N/Aint
2N/Amain (void)
2N/A{
2N/A/* Test availability of runtime routines for shift and division. */
2N/A long long int llmax = 9223372036854775807ll;
2N/A unsigned long long int ullmax = 18446744073709551615ull;
2N/A return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
2N/A | (llmax / ll) | (llmax % ll)
2N/A | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
2N/A | (ullmax / ull) | (ullmax % ull));
2N/A ;
2N/A return 0;
2N/A}
2N/A
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_type_unsigned_long_long_int=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_type_unsigned_long_long_int=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
2N/A$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
2N/A if test $ac_cv_type_unsigned_long_long_int = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_UNSIGNED_LONG_LONG_INT 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether C symbols are prefixed with underscore at the linker level" >&5
2N/A$as_echo_n "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
2N/Aif test "${gl_cv_prog_as_underscore+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat > conftest.c <<EOF
2N/A#ifdef __cplusplus
2N/Aextern "C" int foo (void);
2N/A#endif
2N/Aint foo(void) { return 0; }
2N/AEOF
2N/A # Look for the assembly language name in the .s file.
2N/A { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -S conftest.c'
2N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2N/A (eval $ac_try) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; } >/dev/null 2>&1
2N/A if grep _foo conftest.s >/dev/null ; then
2N/A gl_cv_prog_as_underscore=yes
2N/A else
2N/A gl_cv_prog_as_underscore=no
2N/A fi
2N/A rm -f conftest*
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_prog_as_underscore" >&5
2N/A$as_echo "$gl_cv_prog_as_underscore" >&6; }
2N/A if test $gl_cv_prog_as_underscore = yes; then
2N/A USER_LABEL_PREFIX=_
2N/A else
2N/A USER_LABEL_PREFIX=
2N/A fi
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define USER_LABEL_PREFIX $USER_LABEL_PREFIX
2N/A_ACEOF
2N/A
2N/A ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A HAVE_STRCASECMP=1;
2N/A HAVE_DECL_STRNCASECMP=1;
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test -z "$ERRNO_H"; then
2N/A { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
2N/A$as_echo_n "checking for working strerror function... " >&6; }
2N/Aif test "${gl_cv_func_working_strerror+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <string.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn !*strerror (-2);
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_func_working_strerror=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gl_cv_func_working_strerror=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <string.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn !*strerror (-2);
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_working_strerror=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_working_strerror=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
2N/A$as_echo "$gl_cv_func_working_strerror" >&6; }
2N/A if test $gl_cv_func_working_strerror = no; then
2N/A REPLACE_STRERROR=1
2N/A fi
2N/A else
2N/A REPLACE_STRERROR=1
2N/A fi
2N/A if test $REPLACE_STRERROR = 1; then
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
2N/A$as_echo_n "checking whether strerror is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_strerror+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef strerror
2N/A (void) strerror;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_strerror=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_strerror=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
2N/A$as_echo "$ac_cv_have_decl_strerror" >&6; }
2N/Aif test "x$ac_cv_have_decl_strerror" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_STRERROR 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_STRERROR 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_header_sys_socket_h != yes; then
2N/A
2N/Afor ac_header in winsock2.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/A fi
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_string_h='<'string.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
2N/A$as_echo_n "checking absolute name of <string.h>... " >&6; }
2N/Aif test "${gl_cv_next_string_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_string_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <string.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/string.h#{
2N/A s#.*"\(.*/string.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_string_h='<'string.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
2N/A$as_echo "$gl_cv_next_string_h" >&6; }
2N/A fi
2N/A NEXT_STRING_H=$gl_cv_next_string_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'string.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_string_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
2N/A as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
2N/A { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
2N/A$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
2N/Aif { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <string.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A@%:@undef $gl_func
2N/A (void) $gl_func;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A eval "$as_gl_Symbol=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_gl_Symbol=no"
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A as_val=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/A eval ac_cv_have_decl_$gl_func=yes
2N/Afi
2N/A
2N/A done
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_strings_h='<'strings.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
2N/A$as_echo_n "checking absolute name of <strings.h>... " >&6; }
2N/Aif test "${gl_cv_next_strings_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_strings_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <strings.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/strings.h#{
2N/A s#.*"\(.*/strings.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_strings_h='<'strings.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
2N/A$as_echo "$gl_cv_next_strings_h" >&6; }
2N/A fi
2N/A NEXT_STRINGS_H=$gl_cv_next_strings_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'strings.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_strings_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A for gl_func in strcasecmp strncasecmp; do
2N/A as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
2N/A { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
2N/A$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
2N/Aif { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <strings.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A@%:@undef $gl_func
2N/A (void) $gl_func;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A eval "$as_gl_Symbol=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_gl_Symbol=no"
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A as_val=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/A eval ac_cv_have_decl_$gl_func=yes
2N/Afi
2N/A
2N/A done
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
2N/A$as_echo_n "checking whether strndup is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_strndup+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef strndup
2N/A (void) strndup;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_strndup=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_strndup=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
2N/A$as_echo "$ac_cv_have_decl_strndup" >&6; }
2N/Aif test "x$ac_cv_have_decl_strndup" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_STRNDUP 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_STRNDUP 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
2N/A$as_echo_n "checking whether strnlen is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_strnlen+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef strnlen
2N/A (void) strnlen;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_strnlen=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_strnlen=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
2N/A$as_echo "$ac_cv_have_decl_strnlen" >&6; }
2N/Aif test "x$ac_cv_have_decl_strnlen" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_STRNLEN 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_STRNLEN 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
2N/A$as_echo_n "checking for wint_t... " >&6; }
2N/Aif test "${gt_cv_c_wint_t+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
2N/A <wchar.h>.
2N/A BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
2N/A before <wchar.h>. */
2N/A#include <stddef.h>
2N/A#include <stdio.h>
2N/A#include <time.h>
2N/A#include <wchar.h>
2N/A wint_t foo = (wchar_t)'\0';
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gt_cv_c_wint_t=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gt_cv_c_wint_t=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
2N/A$as_echo "$gt_cv_c_wint_t" >&6; }
2N/A if test $gt_cv_c_wint_t = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_WINT_T 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
2N/A$as_echo_n "checking for size_t... " >&6; }
2N/Aif test "${ac_cv_type_size_t+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_type_size_t=no
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Aif (sizeof (size_t))
2N/A return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Aif (sizeof ((size_t)))
2N/A return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A :
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_type_size_t=yes
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
2N/A$as_echo "$ac_cv_type_size_t" >&6; }
2N/Aif test "x$ac_cv_type_size_t" = x""yes; then
2N/A :
2N/Aelse
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define size_t unsigned int
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
2N/A$as_echo_n "checking for inttypes.h... " >&6; }
2N/Aif test "${gl_cv_header_inttypes_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <sys/types.h>
2N/A#include <inttypes.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Auintmax_t i = (uintmax_t) -1; return !i;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_header_inttypes_h=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gl_cv_header_inttypes_h=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
2N/A$as_echo "$gl_cv_header_inttypes_h" >&6; }
2N/A if test $gl_cv_header_inttypes_h = yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
2N/A$as_echo_n "checking for stdint.h... " >&6; }
2N/Aif test "${gl_cv_header_stdint_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <sys/types.h>
2N/A #include <stdint.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Auintmax_t i = (uintmax_t) -1; return !i;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_header_stdint_h=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gl_cv_header_stdint_h=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
2N/A$as_echo "$gl_cv_header_stdint_h" >&6; }
2N/A if test $gl_cv_header_stdint_h = yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_STDINT_H_WITH_UINTMAX 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
2N/A$as_echo_n "checking for intmax_t... " >&6; }
2N/Aif test "${gt_cv_c_intmax_t+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <stddef.h>
2N/A#include <stdlib.h>
2N/A#if HAVE_STDINT_H_WITH_UINTMAX
2N/A#include <stdint.h>
2N/A#endif
2N/A#if HAVE_INTTYPES_H_WITH_UINTMAX
2N/A#include <inttypes.h>
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Aintmax_t x = -1; return !x;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gt_cv_c_intmax_t=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gt_cv_c_intmax_t=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
2N/A$as_echo "$gt_cv_c_intmax_t" >&6; }
2N/A if test $gt_cv_c_intmax_t = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_INTMAX_T 1
2N/A_ACEOF
2N/A
2N/A else
2N/A
2N/A test $ac_cv_type_long_long_int = yes \
2N/A && ac_type='long long' \
2N/A || ac_type='long'
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define intmax_t $ac_type
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
2N/A$as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
2N/Aif test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test "$cross_compiling" = yes; then
2N/A
2N/A case "$host_os" in
2N/A # Guess yes on glibc systems.
2N/A *-gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on FreeBSD >= 5.
2N/A freebsd[1-4]*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on MacOS X >= 10.3.
2N/A darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on OpenBSD >= 3.9.
2N/A openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
2N/A gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on Solaris >= 2.6.
2N/A solaris2.[0-5]*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A solaris*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on AIX >= 4.
2N/A aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on NetBSD >= 3.
2N/A netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
2N/A gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # Guess yes on BeOS.
2N/A beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
2N/A # If we don't know, assume the worst.
2N/A *) gl_cv_func_snprintf_retval_c99="guessing no";;
2N/A esac
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <stdio.h>
2N/A#include <string.h>
2N/Astatic char buf[100];
2N/Aint main ()
2N/A{
2N/A strcpy (buf, "ABCDEF");
2N/A if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
2N/A return 1;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_snprintf_retval_c99=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_snprintf_retval_c99=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
2N/A$as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/Adone
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
2N/A$as_echo_n "checking whether _snprintf is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl__snprintf+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdio.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef _snprintf
2N/A (void) _snprintf;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl__snprintf=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl__snprintf=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
2N/A$as_echo "$ac_cv_have_decl__snprintf" >&6; }
2N/Aif test "x$ac_cv_have_decl__snprintf" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL__SNPRINTF 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL__SNPRINTF 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A case "$gl_cv_func_snprintf_retval_c99" in
2N/A *yes)
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_SNPRINTF_RETVAL_C99 1
2N/A_ACEOF
2N/A
2N/A ;;
2N/A esac
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
2N/A$as_echo_n "checking whether vsnprintf is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_vsnprintf+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef vsnprintf
2N/A (void) vsnprintf;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_vsnprintf=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_vsnprintf=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
2N/A$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
2N/Aif test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_VSNPRINTF 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_VSNPRINTF 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether iswblank is declared" >&5
2N/A$as_echo_n "checking whether iswblank is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_iswblank+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef iswblank
2N/A (void) iswblank;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_iswblank=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_iswblank=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_iswblank" >&5
2N/A$as_echo "$ac_cv_have_decl_iswblank" >&6; }
2N/Aif test "x$ac_cv_have_decl_iswblank" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_ISWBLANK 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_ISWBLANK 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A if false; then
2N/A GL_COND_LIBTOOL_TRUE=
2N/A GL_COND_LIBTOOL_FALSE='#'
2N/Aelse
2N/A GL_COND_LIBTOOL_TRUE='#'
2N/A GL_COND_LIBTOOL_FALSE=
2N/Afi
2N/A
2N/A gl_cond_libtool=false
2N/A gl_libdeps=
2N/A gl_ltlibdeps=
2N/A gl_m4_base='m4'
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_source_base='grub-core/gnulib'
2N/A # Code from module alloca:
2N/A # Code from module alloca-opt:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_alloca_works = no; then
2N/A :
2N/A fi
2N/A
2N/A # Define an additional variable used in the Makefile substitution.
2N/A if test $ac_cv_working_alloca_h = yes; then
2N/A { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
2N/A$as_echo_n "checking for alloca as a compiler built-in... " >&6; }
2N/Aif test "${gl_cv_rpl_alloca+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#if defined __GNUC__ || defined _AIX || defined _MSC_VER
2N/A Need own alloca
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "Need own alloca" >/dev/null 2>&1; then
2N/A gl_cv_rpl_alloca=yes
2N/Aelse
2N/A gl_cv_rpl_alloca=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
2N/A$as_echo "$gl_cv_rpl_alloca" >&6; }
2N/A if test $gl_cv_rpl_alloca = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_ALLOCA 1
2N/A_ACEOF
2N/A
2N/A ALLOCA_H=alloca.h
2N/A else
2N/A ALLOCA_H=
2N/A fi
2N/A else
2N/A ALLOCA_H=alloca.h
2N/A fi
2N/A
2N/A
2N/A # Code from module arg-nonnull:
2N/A # Code from module argp:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A GETOPT_H=getopt.h
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define __GETOPT_PREFIX rpl_
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A GNULIB_UNISTD_H_GETOPT=1
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
2N/A$as_echo_n "checking whether program_invocation_name is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <errno.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef program_invocation_name
2N/A (void) program_invocation_name;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_program_invocation_name=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_program_invocation_name=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
2N/A$as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
2N/Aif test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_PROGRAM_INVOCATION_NAME 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
2N/A$as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <errno.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef program_invocation_short_name
2N/A (void) program_invocation_short_name;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_program_invocation_short_name=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_program_invocation_short_name=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
2N/A$as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
2N/Aif test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/A
2N/A # Check if program_invocation_name and program_invocation_short_name
2N/A # are defined elsewhere. It is improbable that only one of them will
2N/A # be defined and other not, I prefer to stay on the safe side and to
2N/A # test each one separately.
2N/A { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
2N/A$as_echo_n "checking whether program_invocation_name is defined... " >&6; }
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <argp.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Aprogram_invocation_name = "test";
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_PROGRAM_INVOCATION_NAME 1
2N/A_ACEOF
2N/A
2N/A { $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
2N/A$as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <argp.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Aprogram_invocation_short_name = "test";
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
2N/A_ACEOF
2N/A
2N/A { $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
2N/A
2N/A
2N/A
2N/A XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
2N/A
2N/A # Code from module btowc:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_btowc = no; then
2N/A HAVE_BTOWC=0
2N/A else
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether btowc(0) is correct" >&5
2N/A$as_echo_n "checking whether btowc(0) is correct... " >&6; }
2N/Aif test "${gl_cv_func_btowc_nul+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test "$cross_compiling" = yes; then
2N/A
2N/A case "$host_os" in
2N/A # Guess no on Cygwin.
2N/A cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_btowc_nul="guessing yes" ;;
2N/A esac
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <stdio.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A if (btowc ('\0') != 0)
2N/A return 1;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_btowc_nul=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_btowc_nul=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_nul" >&5
2N/A$as_echo "$gl_cv_func_btowc_nul" >&6; }
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
2N/A$as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
2N/Aif test "${gl_cv_func_btowc_eof+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on IRIX.
2N/A irix*) gl_cv_func_btowc_eof="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_btowc_eof="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_FR != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <stdio.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
2N/A {
2N/A if (btowc (EOF) != WEOF)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_btowc_eof=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_btowc_eof=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
2N/A$as_echo "$gl_cv_func_btowc_eof" >&6; }
2N/A
2N/A case "$gl_cv_func_btowc_nul" in
2N/A *yes) ;;
2N/A *) REPLACE_BTOWC=1 ;;
2N/A esac
2N/A case "$gl_cv_func_btowc_eof" in
2N/A *yes) ;;
2N/A *) REPLACE_BTOWC=1 ;;
2N/A esac
2N/A fi
2N/A if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
2N/A
2N/A :
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
2N/A
2N/A
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_BTOWC=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_BTOWC 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module c++defs:
2N/A # Code from module configmake:
2N/A # Code from module dirname-lgpl:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A # Code from module double-slash-root:
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
2N/A$as_echo_n "checking whether // is distinct from /... " >&6; }
2N/Aif test "${gl_cv_double_slash_root+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test x"$cross_compiling" = xyes ; then
2N/A # When cross-compiling, there is no way to tell whether // is special
2N/A # short of a list of hosts. However, the only known hosts to date
2N/A # that have a distinct // are Apollo DomainOS (too old to port to),
2N/A # Cygwin, and z/OS. If anyone knows of another system for which // has
2N/A # special semantics and is distinct from /, please report it to
2N/A # <bug-gnulib@gnu.org>.
2N/A case $host in
2N/A *-cygwin | i370-ibm-openedition)
2N/A gl_cv_double_slash_root=yes ;;
2N/A *)
2N/A # Be optimistic and assume that / and // are the same when we
2N/A # don't know.
2N/A gl_cv_double_slash_root='unknown, assuming no' ;;
2N/A esac
2N/A else
2N/A set x `ls -di / // 2>/dev/null`
2N/A if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
2N/A gl_cv_double_slash_root=no
2N/A else
2N/A gl_cv_double_slash_root=yes
2N/A fi
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
2N/A$as_echo "$gl_cv_double_slash_root" >&6; }
2N/A if test "$gl_cv_double_slash_root" = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A # Code from module errno:
2N/A
2N/A # Code from module error:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
2N/A$as_echo_n "checking for error_at_line... " >&6; }
2N/Aif test "${ac_cv_lib_error_at_line+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <error.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Aerror_at_line (0, 0, "", 0, "an error occurred");
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_error_at_line=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_error_at_line=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
2N/A$as_echo "$ac_cv_lib_error_at_line" >&6; }
2N/A if test $ac_cv_lib_error_at_line = no; then
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A :
2N/A
2N/A
2N/A
2N/A
2N/A XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
2N/A
2N/A
2N/A
2N/A XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
2N/A
2N/A # Code from module extensions:
2N/A # Code from module float:
2N/A
2N/A
2N/A
2N/A FLOAT_H=
2N/A case "$host_os" in
2N/A beos* | openbsd* | mirbsd*)
2N/A FLOAT_H=float.h
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_float_h='<'float.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
2N/A$as_echo_n "checking absolute name of <float.h>... " >&6; }
2N/Aif test "${gl_cv_next_float_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_float_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <float.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/float.h#{
2N/A s#.*"\(.*/float.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_float_h='<'float.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
2N/A$as_echo "$gl_cv_next_float_h" >&6; }
2N/A fi
2N/A NEXT_FLOAT_H=$gl_cv_next_float_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'float.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_float_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A ;;
2N/A esac
2N/A
2N/A
2N/A # Code from module fnmatch:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A FNMATCH_H=
2N/A gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
2N/A gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
2N/A { $as_echo "$as_me:$LINENO: checking for working $gl_fnmatch_required fnmatch" >&5
2N/A$as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
2N/Aif { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test $gl_fnmatch_required = GNU; then
2N/A gl_fnmatch_gnu_start=
2N/A gl_fnmatch_gnu_end=
2N/A else
2N/A gl_fnmatch_gnu_start='#if 0'
2N/A gl_fnmatch_gnu_end='#endif'
2N/A fi
2N/A if test "$cross_compiling" = yes; then
2N/A eval "$gl_fnmatch_cache_var=\"guessing no\""
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <fnmatch.h>
2N/A static int
2N/A y (char const *pattern, char const *string, int flags)
2N/A {
2N/A return fnmatch (pattern, string, flags) == 0;
2N/A }
2N/A static int
2N/A n (char const *pattern, char const *string, int flags)
2N/A {
2N/A return fnmatch (pattern, string, flags) == FNM_NOMATCH;
2N/A }
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Achar const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
2N/A char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
2N/A static char const A_1[] = { 'A' - 1, 0 };
2N/A static char const A01[] = { 'A' + 1, 0 };
2N/A static char const a_1[] = { 'a' - 1, 0 };
2N/A static char const a01[] = { 'a' + 1, 0 };
2N/A static char const bs_1[] = { '\\\\' - 1, 0 };
2N/A static char const bs01[] = { '\\\\' + 1, 0 };
2N/A return
2N/A !(n ("a*", "", 0)
2N/A && y ("a*", "abc", 0)
2N/A && n ("d*/*1", "d/s/1", FNM_PATHNAME)
2N/A && y ("a\\\\bc", "abc", 0)
2N/A && n ("a\\\\bc", "abc", FNM_NOESCAPE)
2N/A && y ("*x", ".x", 0)
2N/A && n ("*x", ".x", FNM_PERIOD)
2N/A && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
2N/A && y (apat, "\\\\", 0) && y (apat, "a", 0)
2N/A && n (Apat, A_1, 0) == ('A' < '\\\\')
2N/A && n (apat, a_1, 0) == ('a' < '\\\\')
2N/A && y (Apat, A01, 0) == ('A' < '\\\\')
2N/A && y (apat, a01, 0) == ('a' < '\\\\')
2N/A && y (Apat, bs_1, 0) == ('A' < '\\\\')
2N/A && y (apat, bs_1, 0) == ('a' < '\\\\')
2N/A && n (Apat, bs01, 0) == ('A' < '\\\\')
2N/A && n (apat, bs01, 0) == ('a' < '\\\\')
2N/A $gl_fnmatch_gnu_start
2N/A && y ("xxXX", "xXxX", FNM_CASEFOLD)
2N/A && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
2N/A && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
2N/A && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
2N/A && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
2N/A && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
2N/A $gl_fnmatch_gnu_end
2N/A );
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A eval "$gl_fnmatch_cache_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aeval "$gl_fnmatch_cache_var=no"
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A
2N/Afi
2N/Aac_res=`eval 'as_val=${'$gl_fnmatch_cache_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
2N/A if test "$gl_fnmatch_result" = yes; then
2N/A rm -f "$gl_source_base/fnmatch.h"
2N/A else
2N/A FNMATCH_H=fnmatch.h
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
2N/A_ACEOF
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
2N/A$as_echo_n "checking whether isblank is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_isblank+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <ctype.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef isblank
2N/A (void) isblank;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_isblank=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_isblank=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
2N/A$as_echo "$ac_cv_have_decl_isblank" >&6; }
2N/Aif test "x$ac_cv_have_decl_isblank" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_ISBLANK 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_ISBLANK 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A fi
2N/A
2N/A
2N/A # Code from module getdelim:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_getdelim = yes; then
2N/A { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
2N/A$as_echo_n "checking for working getdelim function... " >&6; }
2N/Aif test "${gl_cv_func_working_getdelim+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
2N/A if test "$cross_compiling" = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <features.h>
2N/A#ifdef __GNU_LIBRARY__
2N/A #if (__GLIBC__ >= 2)
2N/A Lucky GNU user
2N/A #endif
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "Lucky GNU user" >/dev/null 2>&1; then
2N/A gl_cv_func_working_getdelim=yes
2N/Aelse
2N/A gl_cv_func_working_getdelim=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A# include <stdio.h>
2N/A# include <stdlib.h>
2N/A# include <string.h>
2N/A int main ()
2N/A {
2N/A FILE *in = fopen ("./conftest.data", "r");
2N/A if (!in)
2N/A return 1;
2N/A {
2N/A /* Test result for a NULL buffer and a zero size.
2N/A Based on a test program from Karl Heuer. */
2N/A char *line = NULL;
2N/A size_t siz = 0;
2N/A int len = getdelim (&line, &siz, '\n', in);
2N/A if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
2N/A return 1;
2N/A }
2N/A {
2N/A /* Test result for a NULL buffer and a non-zero size.
2N/A This crashes on FreeBSD 8.0. */
2N/A char *line = NULL;
2N/A size_t siz = (size_t)(~0) / 4;
2N/A if (getdelim (&line, &siz, '\n', in) == -1)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A }
2N/A
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_working_getdelim=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_working_getdelim=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
2N/A$as_echo "$gl_cv_func_working_getdelim" >&6; }
2N/A else
2N/A gl_cv_func_working_getdelim=no
2N/A fi
2N/A
2N/A if test $ac_cv_have_decl_getdelim = no; then
2N/A HAVE_DECL_GETDELIM=0
2N/A fi
2N/A
2N/A if test $gl_cv_func_working_getdelim = no; then
2N/A if test $ac_cv_func_getdelim = yes; then
2N/A REPLACE_GETDELIM=1
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_func in flockfile funlockfile
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/Adone
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
2N/A$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef getc_unlocked
2N/A (void) getc_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_getc_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_getc_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETC_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETC_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_GETDELIM=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_GETDELIM 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module getline:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_getline_needs_run_time_check=no
2N/A { $as_echo "$as_me:$LINENO: checking for getline" >&5
2N/A$as_echo_n "checking for getline... " >&6; }
2N/Aif test "${ac_cv_func_getline+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define getline to an innocuous variant, in case <limits.h> declares getline.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define getline innocuous_getline
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char getline (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef getline
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar getline ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_getline || defined __stub___getline
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn getline ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_func_getline=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_func_getline=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
2N/A$as_echo "$ac_cv_func_getline" >&6; }
2N/Aif test "x$ac_cv_func_getline" = x""yes; then
2N/A gl_getline_needs_run_time_check=yes
2N/Aelse
2N/A am_cv_func_working_getline=no
2N/Afi
2N/A
2N/A if test $gl_getline_needs_run_time_check = yes; then
2N/A { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
2N/A$as_echo_n "checking for working getline function... " >&6; }
2N/Aif test "${am_cv_func_working_getline+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
2N/A if test "$cross_compiling" = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <features.h>
2N/A#ifdef __GNU_LIBRARY__
2N/A #if (__GLIBC__ >= 2)
2N/A Lucky GNU user
2N/A #endif
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "Lucky GNU user" >/dev/null 2>&1; then
2N/A am_cv_func_working_getline=yes
2N/Aelse
2N/A am_cv_func_working_getline=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A# include <stdio.h>
2N/A# include <stdlib.h>
2N/A# include <string.h>
2N/A int main ()
2N/A {
2N/A FILE *in = fopen ("./conftest.data", "r");
2N/A if (!in)
2N/A return 1;
2N/A {
2N/A /* Test result for a NULL buffer and a zero size.
2N/A Based on a test program from Karl Heuer. */
2N/A char *line = NULL;
2N/A size_t siz = 0;
2N/A int len = getline (&line, &siz, in);
2N/A if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
2N/A return 1;
2N/A }
2N/A {
2N/A /* Test result for a NULL buffer and a non-zero size.
2N/A This crashes on FreeBSD 8.0. */
2N/A char *line = NULL;
2N/A size_t siz = (size_t)(~0) / 4;
2N/A if (getline (&line, &siz, in) == -1)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A }
2N/A
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A am_cv_func_working_getline=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aam_cv_func_working_getline=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
2N/A$as_echo "$am_cv_func_working_getline" >&6; }
2N/A fi
2N/A
2N/A if test $ac_cv_have_decl_getline = no; then
2N/A HAVE_DECL_GETLINE=0
2N/A fi
2N/A
2N/A if test $am_cv_func_working_getline = no; then
2N/A REPLACE_GETLINE=1
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_getdelim = yes; then
2N/A { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
2N/A$as_echo_n "checking for working getdelim function... " >&6; }
2N/Aif test "${gl_cv_func_working_getdelim+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
2N/A if test "$cross_compiling" = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <features.h>
2N/A#ifdef __GNU_LIBRARY__
2N/A #if (__GLIBC__ >= 2)
2N/A Lucky GNU user
2N/A #endif
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "Lucky GNU user" >/dev/null 2>&1; then
2N/A gl_cv_func_working_getdelim=yes
2N/Aelse
2N/A gl_cv_func_working_getdelim=no
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A# include <stdio.h>
2N/A# include <stdlib.h>
2N/A# include <string.h>
2N/A int main ()
2N/A {
2N/A FILE *in = fopen ("./conftest.data", "r");
2N/A if (!in)
2N/A return 1;
2N/A {
2N/A /* Test result for a NULL buffer and a zero size.
2N/A Based on a test program from Karl Heuer. */
2N/A char *line = NULL;
2N/A size_t siz = 0;
2N/A int len = getdelim (&line, &siz, '\n', in);
2N/A if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
2N/A return 1;
2N/A }
2N/A {
2N/A /* Test result for a NULL buffer and a non-zero size.
2N/A This crashes on FreeBSD 8.0. */
2N/A char *line = NULL;
2N/A size_t siz = (size_t)(~0) / 4;
2N/A if (getdelim (&line, &siz, '\n', in) == -1)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A }
2N/A
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_working_getdelim=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_working_getdelim=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
2N/A$as_echo "$gl_cv_func_working_getdelim" >&6; }
2N/A else
2N/A gl_cv_func_working_getdelim=no
2N/A fi
2N/A
2N/A if test $ac_cv_have_decl_getdelim = no; then
2N/A HAVE_DECL_GETDELIM=0
2N/A fi
2N/A
2N/A if test $gl_cv_func_working_getdelim = no; then
2N/A if test $ac_cv_func_getdelim = yes; then
2N/A REPLACE_GETDELIM=1
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_func in flockfile funlockfile
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/Adone
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
2N/A$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef getc_unlocked
2N/A (void) getc_unlocked;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_getc_unlocked=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_getc_unlocked=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
2N/A$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
2N/Aif test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETC_UNLOCKED 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_GETC_UNLOCKED 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A fi
2N/A
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_GETLINE=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_GETLINE 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module getopt-gnu:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_GETOPT_GNU 1
2N/A_ACEOF
2N/A
2N/A
2N/A # Code from module getopt-posix:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test -n "$gl_replace_getopt"; then
2N/A
2N/A
2N/A
2N/A GETOPT_H=getopt.h
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define __GETOPT_PREFIX rpl_
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A GNULIB_UNISTD_H_GETOPT=1
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A # Code from module gettext:
2N/A
2N/A # Code from module gettext-h:
2N/A
2N/A
2N/A # Code from module havelib:
2N/A # Code from module include_next:
2N/A # Code from module intprops:
2N/A # Code from module langinfo:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_langinfo_h='<'langinfo.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <langinfo.h>" >&5
2N/A$as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
2N/Aif test "${gl_cv_next_langinfo_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_langinfo_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <langinfo.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/langinfo.h#{
2N/A s#.*"\(.*/langinfo.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_langinfo_h='<'langinfo.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_langinfo_h" >&5
2N/A$as_echo "$gl_cv_next_langinfo_h" >&6; }
2N/A fi
2N/A NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'langinfo.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_langinfo_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A
2N/A HAVE_LANGINFO_CODESET=0
2N/A HAVE_LANGINFO_T_FMT_AMPM=0
2N/A HAVE_LANGINFO_ERA=0
2N/A HAVE_LANGINFO_YESEXPR=0
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_header_langinfo_h = yes; then
2N/A HAVE_LANGINFO_H=1
2N/A { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines CODESET" >&5
2N/A$as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
2N/Aif test "${gl_cv_header_langinfo_codeset+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <langinfo.h>
2N/Aint a = CODESET;
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_header_langinfo_codeset=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gl_cv_header_langinfo_codeset=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_codeset" >&5
2N/A$as_echo "$gl_cv_header_langinfo_codeset" >&6; }
2N/A if test $gl_cv_header_langinfo_codeset = yes; then
2N/A HAVE_LANGINFO_CODESET=1
2N/A fi
2N/A { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines T_FMT_AMPM" >&5
2N/A$as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
2N/Aif test "${gl_cv_header_langinfo_t_fmt_ampm+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <langinfo.h>
2N/Aint a = T_FMT_AMPM;
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_header_langinfo_t_fmt_ampm=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gl_cv_header_langinfo_t_fmt_ampm=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
2N/A$as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
2N/A if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
2N/A HAVE_LANGINFO_T_FMT_AMPM=1
2N/A fi
2N/A { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines ERA" >&5
2N/A$as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
2N/Aif test "${gl_cv_header_langinfo_era+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <langinfo.h>
2N/Aint a = ERA;
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_header_langinfo_era=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gl_cv_header_langinfo_era=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_era" >&5
2N/A$as_echo "$gl_cv_header_langinfo_era" >&6; }
2N/A if test $gl_cv_header_langinfo_era = yes; then
2N/A HAVE_LANGINFO_ERA=1
2N/A fi
2N/A { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines YESEXPR" >&5
2N/A$as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
2N/Aif test "${gl_cv_header_langinfo_yesexpr+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <langinfo.h>
2N/Aint a = YESEXPR;
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_header_langinfo_yesexpr=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gl_cv_header_langinfo_yesexpr=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_yesexpr" >&5
2N/A$as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
2N/A if test $gl_cv_header_langinfo_yesexpr = yes; then
2N/A HAVE_LANGINFO_YESEXPR=1
2N/A fi
2N/A else
2N/A HAVE_LANGINFO_H=0
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A for gl_func in nl_langinfo; do
2N/A as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
2N/A { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
2N/A$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
2N/Aif { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <langinfo.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A@%:@undef $gl_func
2N/A (void) $gl_func;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A eval "$as_gl_Symbol=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_gl_Symbol=no"
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A as_val=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/A eval ac_cv_have_decl_$gl_func=yes
2N/Afi
2N/A
2N/A done
2N/A
2N/A
2N/A # Code from module localcharset:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
2N/A
2N/A # Code from module malloc-gnu:
2N/A
2N/A
2N/A
2N/Afor ac_header in stdlib.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
2N/A$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
2N/Aif test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A ac_cv_func_malloc_0_nonnull=no
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#if defined STDC_HEADERS || defined HAVE_STDLIB_H
2N/A# include <stdlib.h>
2N/A#else
2N/Achar *malloc ();
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn ! malloc (0);
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A ac_cv_func_malloc_0_nonnull=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aac_cv_func_malloc_0_nonnull=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
2N/A$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
2N/Aif test $ac_cv_func_malloc_0_nonnull = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_MALLOC_GNU 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_MALLOC_GNU 0
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
2N/A
2N/A REPLACE_MALLOC=1
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define GNULIB_MALLOC_GNU 1
2N/A_ACEOF
2N/A
2N/A
2N/A # Code from module malloc-posix:
2N/A
2N/A
2N/A
2N/A if test $gl_cv_func_malloc_posix = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_MALLOC_POSIX 1
2N/A_ACEOF
2N/A
2N/A else
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
2N/A
2N/A REPLACE_MALLOC=1
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_MALLOC_POSIX=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_MALLOC_POSIX 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module mbrtowc:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
2N/A$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
2N/Aif test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on AIX and OSF/1.
2N/A aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_JA != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
2N/A {
2N/A const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
2N/A if (mbsinit (&state))
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbrtowc_incomplete_state=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbrtowc_incomplete_state=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
2N/A$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
2N/A$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
2N/Aif test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on Solaris 8.
2N/A solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_ZH_CN != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <stdlib.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A /* This fails on Solaris 8:
2N/A mbrtowc returns 2, and sets wc to 0x00F0.
2N/A mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
2N/A if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
2N/A {
2N/A char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 3, 6, &state) != 4
2N/A && mbtowc (&wc, input + 3, 6) == 4)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbrtowc_sanitycheck=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbrtowc_sanitycheck=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
2N/A$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
2N/A
2N/A REPLACE_MBSTATE_T=0
2N/A case "$gl_cv_func_mbrtowc_incomplete_state" in
2N/A *yes) ;;
2N/A *) REPLACE_MBSTATE_T=1 ;;
2N/A esac
2N/A case "$gl_cv_func_mbrtowc_sanitycheck" in
2N/A *yes) ;;
2N/A *) REPLACE_MBSTATE_T=1 ;;
2N/A esac
2N/A else
2N/A REPLACE_MBSTATE_T=1
2N/A fi
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_mbrtowc = no; then
2N/A HAVE_MBRTOWC=0
2N/A else
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A REPLACE_MBRTOWC=1
2N/A else
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
2N/A$as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
2N/Aif test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on OSF/1.
2N/A osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_FR_UTF8 != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
2N/A {
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A int ret;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A wc = (wchar_t) 0xBADFACE;
2N/A mbrtowc (&wc, NULL, 5, &state);
2N/A /* Check that wc was not modified. */
2N/A if (wc != (wchar_t) 0xBADFACE)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbrtowc_null_arg=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbrtowc_null_arg=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
2N/A$as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
2N/A$as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
2N/Aif test "${gl_cv_func_mbrtowc_retval+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on HP-UX and Solaris.
2N/A hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A /* This fails on Solaris. */
2N/A if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
2N/A {
2N/A char input[] = "B\303\274\303\237er"; /* "Büßer" */
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
2N/A {
2N/A input[1] = '\0';
2N/A if (mbrtowc (&wc, input + 2, 5, &state) != 1)
2N/A return 1;
2N/A }
2N/A }
2N/A /* This fails on HP-UX 11.11. */
2N/A if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
2N/A {
2N/A char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
2N/A {
2N/A input[1] = '\0';
2N/A if (mbrtowc (&wc, input + 2, 5, &state) != 2)
2N/A return 1;
2N/A }
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbrtowc_retval=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbrtowc_retval=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
2N/A$as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
2N/A$as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
2N/Aif test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on Solaris 8 and 9.
2N/A solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_ZH_CN != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A /* This fails on Solaris 8 and 9. */
2N/A if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
2N/A {
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, "", 1, &state) != 0)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbrtowc_nul_retval=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbrtowc_nul_retval=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
2N/A$as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
2N/A
2N/A case "$gl_cv_func_mbrtowc_null_arg" in
2N/A *yes) ;;
2N/A *)
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define MBRTOWC_NULL_ARG_BUG 1
2N/A_ACEOF
2N/A
2N/A REPLACE_MBRTOWC=1
2N/A ;;
2N/A esac
2N/A case "$gl_cv_func_mbrtowc_retval" in
2N/A *yes) ;;
2N/A *)
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define MBRTOWC_RETVAL_BUG 1
2N/A_ACEOF
2N/A
2N/A REPLACE_MBRTOWC=1
2N/A ;;
2N/A esac
2N/A case "$gl_cv_func_mbrtowc_nul_retval" in
2N/A *yes) ;;
2N/A *)
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define MBRTOWC_NUL_RETVAL_BUG 1
2N/A_ACEOF
2N/A
2N/A REPLACE_MBRTOWC=1
2N/A ;;
2N/A esac
2N/A fi
2N/A fi
2N/A if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
2N/A
2N/A :
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
2N/A
2N/A
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_MBRTOWC=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_MBRTOWC 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module mbsinit:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
2N/A$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
2N/Aif test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on AIX and OSF/1.
2N/A aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_JA != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
2N/A {
2N/A const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
2N/A if (mbsinit (&state))
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbrtowc_incomplete_state=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbrtowc_incomplete_state=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
2N/A$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
2N/A$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
2N/Aif test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on Solaris 8.
2N/A solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_ZH_CN != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <stdlib.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A /* This fails on Solaris 8:
2N/A mbrtowc returns 2, and sets wc to 0x00F0.
2N/A mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
2N/A if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
2N/A {
2N/A char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 3, 6, &state) != 4
2N/A && mbtowc (&wc, input + 3, 6) == 4)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbrtowc_sanitycheck=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbrtowc_sanitycheck=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
2N/A$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
2N/A
2N/A REPLACE_MBSTATE_T=0
2N/A case "$gl_cv_func_mbrtowc_incomplete_state" in
2N/A *yes) ;;
2N/A *) REPLACE_MBSTATE_T=1 ;;
2N/A esac
2N/A case "$gl_cv_func_mbrtowc_sanitycheck" in
2N/A *yes) ;;
2N/A *) REPLACE_MBSTATE_T=1 ;;
2N/A esac
2N/A else
2N/A REPLACE_MBSTATE_T=1
2N/A fi
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_mbsinit = no; then
2N/A HAVE_MBSINIT=0
2N/A else
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A REPLACE_MBSINIT=1
2N/A fi
2N/A fi
2N/A if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
2N/A
2N/A :
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
2N/A
2N/A
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_MBSINIT=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_MBSINIT 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module mbsrtowcs:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
2N/A$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
2N/Aif test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on AIX and OSF/1.
2N/A aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_JA != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
2N/A {
2N/A const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
2N/A if (mbsinit (&state))
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbrtowc_incomplete_state=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbrtowc_incomplete_state=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
2N/A$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
2N/A$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
2N/Aif test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on Solaris 8.
2N/A solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_ZH_CN != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <stdlib.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A /* This fails on Solaris 8:
2N/A mbrtowc returns 2, and sets wc to 0x00F0.
2N/A mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
2N/A if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
2N/A {
2N/A char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 3, 6, &state) != 4
2N/A && mbtowc (&wc, input + 3, 6) == 4)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbrtowc_sanitycheck=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbrtowc_sanitycheck=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
2N/A$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
2N/A
2N/A REPLACE_MBSTATE_T=0
2N/A case "$gl_cv_func_mbrtowc_incomplete_state" in
2N/A *yes) ;;
2N/A *) REPLACE_MBSTATE_T=1 ;;
2N/A esac
2N/A case "$gl_cv_func_mbrtowc_sanitycheck" in
2N/A *yes) ;;
2N/A *) REPLACE_MBSTATE_T=1 ;;
2N/A esac
2N/A else
2N/A REPLACE_MBSTATE_T=1
2N/A fi
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_mbsrtowcs = no; then
2N/A HAVE_MBSRTOWCS=0
2N/A else
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A REPLACE_MBSRTOWCS=1
2N/A else
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbsrtowcs works" >&5
2N/A$as_echo_n "checking whether mbsrtowcs works... " >&6; }
2N/Aif test "${gl_cv_func_mbsrtowcs_works+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on HP-UX and Solaris.
2N/A hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A /* Test whether the function works when started with a conversion state
2N/A in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
2N/A if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
2N/A {
2N/A const char input[] = "B\303\274\303\237er";
2N/A mbstate_t state;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
2N/A if (!mbsinit (&state))
2N/A {
2N/A const char *src = input + 2;
2N/A if (mbsrtowcs (NULL, &src, 10, &state) != 4)
2N/A return 1;
2N/A }
2N/A }
2N/A if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
2N/A {
2N/A const char input[] = "<\306\374\313\334\270\354>";
2N/A mbstate_t state;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
2N/A if (!mbsinit (&state))
2N/A {
2N/A const char *src = input + 4;
2N/A if (mbsrtowcs (NULL, &src, 10, &state) != 3)
2N/A return 1;
2N/A }
2N/A }
2N/A if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
2N/A {
2N/A const char input[] = "B\250\271\201\060\211\070er";
2N/A mbstate_t state;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
2N/A if (!mbsinit (&state))
2N/A {
2N/A const char *src = input + 2;
2N/A if (mbsrtowcs (NULL, &src, 10, &state) != 4)
2N/A return 1;
2N/A }
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbsrtowcs_works=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbsrtowcs_works=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbsrtowcs_works" >&5
2N/A$as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
2N/A
2N/A case "$gl_cv_func_mbsrtowcs_works" in
2N/A *yes) ;;
2N/A *) REPLACE_MBSRTOWCS=1 ;;
2N/A esac
2N/A fi
2N/A fi
2N/A if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
2N/A
2N/A :
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
2N/A
2N/A
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_MBSRTOWCS=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_MBSRTOWCS 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module memchr:
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_MEMCHR=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_MEMCHR 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module mempcpy:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_func in mempcpy
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
2N/A
2N/Afi
2N/Adone
2N/A
2N/A
2N/A if test $ac_cv_func_mempcpy = no; then
2N/A HAVE_MEMPCPY=0
2N/A
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_MEMPCPY=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_MEMPCPY 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module multiarch:
2N/A
2N/A # Code from module nl_langinfo:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_nl_langinfo = yes; then
2N/A if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
2N/A :
2N/A else
2N/A REPLACE_NL_LANGINFO=1
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define REPLACE_NL_LANGINFO 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
2N/A
2N/A fi
2N/A else
2N/A HAVE_NL_LANGINFO=0
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_NL_LANGINFO=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_NL_LANGINFO 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module progname:
2N/A { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
2N/A$as_echo_n "checking whether program_invocation_name is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <errno.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef program_invocation_name
2N/A (void) program_invocation_name;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_program_invocation_name=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_program_invocation_name=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
2N/A$as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
2N/Aif test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
2N/A$as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <errno.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef program_invocation_short_name
2N/A (void) program_invocation_short_name;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_program_invocation_short_name=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_program_invocation_short_name=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
2N/A$as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
2N/Aif test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A # Code from module rawmemchr:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_func in rawmemchr
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
2N/A
2N/Afi
2N/Adone
2N/A
2N/A
2N/A if test $ac_cv_func_rawmemchr = no; then
2N/A HAVE_RAWMEMCHR=0
2N/A :
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_RAWMEMCHR=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_RAWMEMCHR 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module realloc-posix:
2N/A
2N/A
2N/A
2N/A if test $gl_cv_func_malloc_posix = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_REALLOC_POSIX 1
2N/A_ACEOF
2N/A
2N/A else
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
2N/A
2N/A REPLACE_REALLOC=1
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_REALLOC_POSIX=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_REALLOC_POSIX 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module regex:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A@%:@ Check whether --with-included-regex was given.
2N/Aif test "${with_included_regex+set}" = set; then
2N/A withval=$with_included_regex;
2N/Afi
2N/A
2N/A
2N/A case $with_included_regex in #(
2N/A yes|no) ac_use_included_regex=$with_included_regex
2N/A ;;
2N/A '')
2N/A # If the system regex support is good enough that it passes the
2N/A # following run test, then default to *not* using the included regex.c.
2N/A # If cross compiling, assume the test would fail and use the included
2N/A # regex.c.
2N/A { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
2N/A$as_echo_n "checking for working re_compile_pattern... " >&6; }
2N/Aif test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A gl_cv_func_re_compile_pattern_working=no
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A #if HAVE_LOCALE_H
2N/A #include <locale.h>
2N/A #endif
2N/A #include <limits.h>
2N/A #include <regex.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic struct re_pattern_buffer regex;
2N/A unsigned char folded_chars[UCHAR_MAX + 1];
2N/A int i;
2N/A const char *s;
2N/A struct re_registers regs;
2N/A
2N/A #if HAVE_LOCALE_H
2N/A /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
2N/A This test needs valgrind to catch the bug on Debian
2N/A GNU/Linux 3.1 x86, but it might catch the bug better
2N/A on other platforms and it shouldn't hurt to try the
2N/A test here. */
2N/A if (setlocale (LC_ALL, "en_US.UTF-8"))
2N/A {
2N/A static char const pat[] = "insert into";
2N/A static char const data[] =
2N/A "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
2N/A re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
2N/A | RE_ICASE);
2N/A memset (&regex, 0, sizeof regex);
2N/A s = re_compile_pattern (pat, sizeof pat - 1, &regex);
2N/A if (s)
2N/A return 1;
2N/A if (re_search (&regex, data, sizeof data - 1,
2N/A 0, sizeof data - 1, &regs)
2N/A != -1)
2N/A return 1;
2N/A if (! setlocale (LC_ALL, "C"))
2N/A return 1;
2N/A }
2N/A #endif
2N/A
2N/A /* This test is from glibc bug 3957, reported by Andrew Mackey. */
2N/A re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
2N/A memset (&regex, 0, sizeof regex);
2N/A s = re_compile_pattern ("a[^x]b", 6, &regex);
2N/A if (s)
2N/A return 1;
2N/A
2N/A /* This should fail, but succeeds for glibc-2.5. */
2N/A if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
2N/A return 1;
2N/A
2N/A /* This regular expression is from Spencer ere test number 75
2N/A in grep-2.3. */
2N/A re_set_syntax (RE_SYNTAX_POSIX_EGREP);
2N/A memset (&regex, 0, sizeof regex);
2N/A for (i = 0; i <= UCHAR_MAX; i++)
2N/A folded_chars[i] = i;
2N/A regex.translate = folded_chars;
2N/A s = re_compile_pattern ("a[[:@:>@:]]b\n", 11, &regex);
2N/A /* This should fail with _Invalid character class name_ error. */
2N/A if (!s)
2N/A return 1;
2N/A
2N/A /* Ensure that [b-a] is diagnosed as invalid, when
2N/A using RE_NO_EMPTY_RANGES. */
2N/A re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
2N/A memset (&regex, 0, sizeof regex);
2N/A s = re_compile_pattern ("a[b-a]", 6, &regex);
2N/A if (s == 0)
2N/A return 1;
2N/A
2N/A /* This should succeed, but does not for glibc-2.1.3. */
2N/A memset (&regex, 0, sizeof regex);
2N/A s = re_compile_pattern ("{1", 2, &regex);
2N/A
2N/A if (s)
2N/A return 1;
2N/A
2N/A /* The following example is derived from a problem report
2N/A against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>. */
2N/A memset (&regex, 0, sizeof regex);
2N/A s = re_compile_pattern ("[an\371]*n", 7, &regex);
2N/A if (s)
2N/A return 1;
2N/A
2N/A /* This should match, but does not for glibc-2.2.1. */
2N/A if (re_match (&regex, "an", 2, 0, &regs) != 2)
2N/A return 1;
2N/A
2N/A memset (&regex, 0, sizeof regex);
2N/A s = re_compile_pattern ("x", 1, &regex);
2N/A if (s)
2N/A return 1;
2N/A
2N/A /* glibc-2.2.93 does not work with a negative RANGE argument. */
2N/A if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
2N/A return 1;
2N/A
2N/A /* The version of regex.c in older versions of gnulib
2N/A ignored RE_ICASE. Detect that problem too. */
2N/A re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
2N/A memset (&regex, 0, sizeof regex);
2N/A s = re_compile_pattern ("x", 1, &regex);
2N/A if (s)
2N/A return 1;
2N/A
2N/A if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
2N/A return 1;
2N/A
2N/A /* Catch a bug reported by Vin Shelton in
2N/A http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
2N/A */
2N/A re_set_syntax (RE_SYNTAX_POSIX_BASIC
2N/A & ~RE_CONTEXT_INVALID_DUP
2N/A & ~RE_NO_EMPTY_RANGES);
2N/A memset (&regex, 0, sizeof regex);
2N/A s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
2N/A if (s)
2N/A return 1;
2N/A
2N/A /* REG_STARTEND was added to glibc on 2004-01-15.
2N/A Reject older versions. */
2N/A if (! REG_STARTEND)
2N/A return 1;
2N/A
2N/A#if 0
2N/A /* It would be nice to reject hosts whose regoff_t values are too
2N/A narrow (including glibc on hosts with 64-bit ptrdiff_t and
2N/A 32-bit int), but we should wait until glibc implements this
2N/A feature. Otherwise, support for equivalence classes and
2N/A multibyte collation symbols would always be broken except
2N/A when compiling --without-included-regex. */
2N/A if (sizeof (regoff_t) < sizeof (ptrdiff_t)
2N/A || sizeof (regoff_t) < sizeof (ssize_t))
2N/A return 1;
2N/A#endif
2N/A
2N/A return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_re_compile_pattern_working=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_re_compile_pattern_working=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
2N/A$as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
2N/A case $gl_cv_func_re_compile_pattern_working in #(
2N/A yes) ac_use_included_regex=no;; #(
2N/A no) ac_use_included_regex=yes;;
2N/A esac
2N/A ;;
2N/A *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
2N/A$as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A ;;
2N/A esac
2N/A
2N/A if test $ac_use_included_regex = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define _REGEX_LARGE_OFFSETS 1
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define re_syntax_options rpl_re_syntax_options
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define re_set_syntax rpl_re_set_syntax
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define re_compile_pattern rpl_re_compile_pattern
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define re_compile_fastmap rpl_re_compile_fastmap
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define re_search rpl_re_search
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define re_search_2 rpl_re_search_2
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define re_match rpl_re_match
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define re_match_2 rpl_re_match_2
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define re_set_registers rpl_re_set_registers
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define re_comp rpl_re_comp
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define re_exec rpl_re_exec
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define regcomp rpl_regcomp
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define regexec rpl_regexec
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define regerror rpl_regerror
2N/A_ACEOF
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define regfree rpl_regfree
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_header in libintl.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
2N/A$as_echo_n "checking whether isblank is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_isblank+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <ctype.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef isblank
2N/A (void) isblank;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_isblank=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_isblank=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
2N/A$as_echo "$ac_cv_have_decl_isblank" >&6; }
2N/Aif test "x$ac_cv_have_decl_isblank" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_ISBLANK 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_ISBLANK 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A fi
2N/A
2N/A # Code from module size_max:
2N/A
2N/A
2N/Afor ac_header in stdint.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
2N/A$as_echo_n "checking for SIZE_MAX... " >&6; }
2N/Aif test "${gl_cv_size_max+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A gl_cv_size_max=
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <limits.h>
2N/A#if HAVE_STDINT_H
2N/A#include <stdint.h>
2N/A#endif
2N/A#ifdef SIZE_MAX
2N/AFound it
2N/A#endif
2N/A
2N/A_ACEOF
2N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2N/A $EGREP "Found it" >/dev/null 2>&1; then
2N/A gl_cv_size_max=yes
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A if test -z "$gl_cv_size_max"; then
2N/A if test "$cross_compiling" = yes; then
2N/A # Depending upon the size, compute the lo and hi bounds.
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=0 ac_mid=0
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr $ac_mid + 1`
2N/A if test $ac_lo -le $ac_mid; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=-1 ac_mid=-1
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_hi=`expr '(' $ac_mid ')' - 1`
2N/A if test $ac_mid -le $ac_hi; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo= ac_hi=
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A# Binary search between lo and hi bounds.
2N/Awhile test "x$ac_lo" != "x$ac_hi"; do
2N/A ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr '(' $ac_mid ')' + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Adone
2N/Acase $ac_lo in
2N/A?*) size_t_bits_minus_1=$ac_lo;;
2N/A'') size_t_bits_minus_1= ;;
2N/Aesac
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/A#include <limits.h>
2N/Astatic long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
2N/Astatic unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
2N/A@%:@include <stdio.h>
2N/A@%:@include <stdlib.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A FILE *f = fopen ("conftest.val", "w");
2N/A if (! f)
2N/A return 1;
2N/A if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
2N/A {
2N/A long int i = longval ();
2N/A if (i != (sizeof (size_t) * CHAR_BIT - 1))
2N/A return 1;
2N/A fprintf (f, "%ld", i);
2N/A }
2N/A else
2N/A {
2N/A unsigned long int i = ulongval ();
2N/A if (i != (sizeof (size_t) * CHAR_BIT - 1))
2N/A return 1;
2N/A fprintf (f, "%lu", i);
2N/A }
2N/A /* Do not output a trailing newline, as this causes \r\n confusion
2N/A on some platforms. */
2N/A return ferror (f) || fclose (f) != 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A size_t_bits_minus_1=`cat conftest.val`
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Asize_t_bits_minus_1=
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Arm -f conftest.val
2N/A if test "$cross_compiling" = yes; then
2N/A # Depending upon the size, compute the lo and hi bounds.
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=0 ac_mid=0
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr $ac_mid + 1`
2N/A if test $ac_lo -le $ac_mid; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=-1 ac_mid=-1
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_hi=`expr '(' $ac_mid ')' - 1`
2N/A if test $ac_mid -le $ac_hi; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo= ac_hi=
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A# Binary search between lo and hi bounds.
2N/Awhile test "x$ac_lo" != "x$ac_hi"; do
2N/A ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr '(' $ac_mid ')' + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Adone
2N/Acase $ac_lo in
2N/A?*) fits_in_uint=$ac_lo;;
2N/A'') fits_in_uint= ;;
2N/Aesac
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/Astatic long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
2N/Astatic unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
2N/A@%:@include <stdio.h>
2N/A@%:@include <stdlib.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A FILE *f = fopen ("conftest.val", "w");
2N/A if (! f)
2N/A return 1;
2N/A if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
2N/A {
2N/A long int i = longval ();
2N/A if (i != (sizeof (size_t) <= sizeof (unsigned int)))
2N/A return 1;
2N/A fprintf (f, "%ld", i);
2N/A }
2N/A else
2N/A {
2N/A unsigned long int i = ulongval ();
2N/A if (i != (sizeof (size_t) <= sizeof (unsigned int)))
2N/A return 1;
2N/A fprintf (f, "%lu", i);
2N/A }
2N/A /* Do not output a trailing newline, as this causes \r\n confusion
2N/A on some platforms. */
2N/A return ferror (f) || fclose (f) != 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A fits_in_uint=`cat conftest.val`
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Afits_in_uint=
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Arm -f conftest.val
2N/A if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
2N/A if test $fits_in_uint = 1; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/A extern size_t foo;
2N/A extern unsigned long foo;
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A fits_in_uint=0
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A fi
2N/A if test $fits_in_uint = 1; then
2N/A gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
2N/A else
2N/A gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
2N/A fi
2N/A else
2N/A gl_cv_size_max='((size_t)~(size_t)0)'
2N/A fi
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
2N/A$as_echo "$gl_cv_size_max" >&6; }
2N/A if test "$gl_cv_size_max" != yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define SIZE_MAX $gl_cv_size_max
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A # Code from module sleep:
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
2N/A$as_echo_n "checking whether sleep is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_sleep+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <unistd.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef sleep
2N/A (void) sleep;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_sleep=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_sleep=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
2N/A$as_echo "$ac_cv_have_decl_sleep" >&6; }
2N/Aif test "x$ac_cv_have_decl_sleep" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_SLEEP 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_SLEEP 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_have_decl_sleep != yes; then
2N/A HAVE_SLEEP=0
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
2N/A
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking for working sleep" >&5
2N/A$as_echo_n "checking for working sleep... " >&6; }
2N/Aif test "${gl_cv_func_sleep_works+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A gl_cv_func_sleep_works="guessing no"
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <errno.h>
2N/A#include <unistd.h>
2N/A#include <signal.h>
2N/Astatic void
2N/Ahandle_alarm (int sig)
2N/A{
2N/A if (sig != SIGALRM)
2N/A _exit (2);
2N/A}
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A /* Failure to compile this test due to missing alarm is okay,
2N/A since all such platforms (mingw) also lack sleep. */
2N/A unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
2N/A unsigned int remaining;
2N/A signal (SIGALRM, handle_alarm);
2N/A alarm (1);
2N/A remaining = sleep (pentecost);
2N/A return !(pentecost - 10 < remaining && remaining <= pentecost);
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_sleep_works=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_sleep_works=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_sleep_works" >&5
2N/A$as_echo "$gl_cv_func_sleep_works" >&6; }
2N/A if test "$gl_cv_func_sleep_works" != yes; then
2N/A REPLACE_SLEEP=1
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
2N/A
2N/A fi
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_SLEEP=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_SLEEP 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module ssize_t:
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
2N/A$as_echo_n "checking for ssize_t... " >&6; }
2N/Aif test "${gt_cv_ssize_t+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <sys/types.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Aint x = sizeof (ssize_t *) + sizeof (ssize_t);
2N/A return !x;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gt_cv_ssize_t=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gt_cv_ssize_t=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
2N/A$as_echo "$gt_cv_ssize_t" >&6; }
2N/A if test $gt_cv_ssize_t = no; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define ssize_t int
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A # Code from module stdbool:
2N/A
2N/A
2N/A
2N/A # Define two additional variables used in the Makefile substitution.
2N/A
2N/A if test "$ac_cv_header_stdbool_h" = yes; then
2N/A STDBOOL_H=''
2N/A else
2N/A STDBOOL_H='stdbool.h'
2N/A fi
2N/A
2N/A
2N/A if test "$ac_cv_type__Bool" = yes; then
2N/A HAVE__BOOL=1
2N/A else
2N/A HAVE__BOOL=0
2N/A fi
2N/A
2N/A
2N/A # Code from module stddef:
2N/A
2N/A
2N/A
2N/A if test $gt_cv_c_wchar_t = no; then
2N/A HAVE_WCHAR_T=0
2N/A STDDEF_H=stddef.h
2N/A fi
2N/A { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
2N/A$as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
2N/Aif test "${gl_cv_decl_null_works+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/A int test[2 * (sizeof NULL == sizeof (void *)) -1];
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_decl_null_works=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gl_cv_decl_null_works=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
2N/A$as_echo "$gl_cv_decl_null_works" >&6; }
2N/A if test $gl_cv_decl_null_works = no; then
2N/A REPLACE_NULL=1
2N/A STDDEF_H=stddef.h
2N/A fi
2N/A if test -n "$STDDEF_H"; then
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_stddef_h='<'stddef.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
2N/A$as_echo_n "checking absolute name of <stddef.h>... " >&6; }
2N/Aif test "${gl_cv_next_stddef_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_stddef_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stddef.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/stddef.h#{
2N/A s#.*"\(.*/stddef.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_stddef_h='<'stddef.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
2N/A$as_echo "$gl_cv_next_stddef_h" >&6; }
2N/A fi
2N/A NEXT_STDDEF_H=$gl_cv_next_stddef_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'stddef.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_stddef_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A fi
2N/A
2N/A # Code from module stdint:
2N/A
2N/A
2N/A
2N/A if test $ac_cv_type_long_long_int = yes; then
2N/A HAVE_LONG_LONG_INT=1
2N/A else
2N/A HAVE_LONG_LONG_INT=0
2N/A fi
2N/A
2N/A
2N/A if test $ac_cv_type_unsigned_long_long_int = yes; then
2N/A HAVE_UNSIGNED_LONG_LONG_INT=1
2N/A else
2N/A HAVE_UNSIGNED_LONG_LONG_INT=0
2N/A fi
2N/A
2N/A
2N/A if test $ac_cv_header_inttypes_h = yes; then
2N/A HAVE_INTTYPES_H=1
2N/A else
2N/A HAVE_INTTYPES_H=0
2N/A fi
2N/A
2N/A
2N/A if test $ac_cv_header_sys_types_h = yes; then
2N/A HAVE_SYS_TYPES_H=1
2N/A else
2N/A HAVE_SYS_TYPES_H=0
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_stdint_h='<'stdint.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
2N/A$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
2N/Aif test "${gl_cv_next_stdint_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_stdint_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdint.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/stdint.h#{
2N/A s#.*"\(.*/stdint.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_stdint_h='<'stdint.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
2N/A$as_echo "$gl_cv_next_stdint_h" >&6; }
2N/A fi
2N/A NEXT_STDINT_H=$gl_cv_next_stdint_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'stdint.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_stdint_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A if test $ac_cv_header_stdint_h = yes; then
2N/A HAVE_STDINT_H=1
2N/A else
2N/A HAVE_STDINT_H=0
2N/A fi
2N/A
2N/A
2N/A if test $ac_cv_header_stdint_h = yes; then
2N/A { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
2N/A$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
2N/Aif test "${gl_cv_header_working_stdint_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A gl_cv_header_working_stdint_h=no
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A
2N/A /* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
2N/A#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
2N/A#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
2N/A#include <stdint.h>
2N/A/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
2N/A#if !(defined WCHAR_MIN && defined WCHAR_MAX)
2N/A#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
2N/A#endif
2N/A
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A
2N/A#ifdef INT8_MAX
2N/Aint8_t a1 = INT8_MAX;
2N/Aint8_t a1min = INT8_MIN;
2N/A#endif
2N/A#ifdef INT16_MAX
2N/Aint16_t a2 = INT16_MAX;
2N/Aint16_t a2min = INT16_MIN;
2N/A#endif
2N/A#ifdef INT32_MAX
2N/Aint32_t a3 = INT32_MAX;
2N/Aint32_t a3min = INT32_MIN;
2N/A#endif
2N/A#ifdef INT64_MAX
2N/Aint64_t a4 = INT64_MAX;
2N/Aint64_t a4min = INT64_MIN;
2N/A#endif
2N/A#ifdef UINT8_MAX
2N/Auint8_t b1 = UINT8_MAX;
2N/A#else
2N/Atypedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
2N/A#endif
2N/A#ifdef UINT16_MAX
2N/Auint16_t b2 = UINT16_MAX;
2N/A#endif
2N/A#ifdef UINT32_MAX
2N/Auint32_t b3 = UINT32_MAX;
2N/A#endif
2N/A#ifdef UINT64_MAX
2N/Auint64_t b4 = UINT64_MAX;
2N/A#endif
2N/Aint_least8_t c1 = INT8_C (0x7f);
2N/Aint_least8_t c1max = INT_LEAST8_MAX;
2N/Aint_least8_t c1min = INT_LEAST8_MIN;
2N/Aint_least16_t c2 = INT16_C (0x7fff);
2N/Aint_least16_t c2max = INT_LEAST16_MAX;
2N/Aint_least16_t c2min = INT_LEAST16_MIN;
2N/Aint_least32_t c3 = INT32_C (0x7fffffff);
2N/Aint_least32_t c3max = INT_LEAST32_MAX;
2N/Aint_least32_t c3min = INT_LEAST32_MIN;
2N/Aint_least64_t c4 = INT64_C (0x7fffffffffffffff);
2N/Aint_least64_t c4max = INT_LEAST64_MAX;
2N/Aint_least64_t c4min = INT_LEAST64_MIN;
2N/Auint_least8_t d1 = UINT8_C (0xff);
2N/Auint_least8_t d1max = UINT_LEAST8_MAX;
2N/Auint_least16_t d2 = UINT16_C (0xffff);
2N/Auint_least16_t d2max = UINT_LEAST16_MAX;
2N/Auint_least32_t d3 = UINT32_C (0xffffffff);
2N/Auint_least32_t d3max = UINT_LEAST32_MAX;
2N/Auint_least64_t d4 = UINT64_C (0xffffffffffffffff);
2N/Auint_least64_t d4max = UINT_LEAST64_MAX;
2N/Aint_fast8_t e1 = INT_FAST8_MAX;
2N/Aint_fast8_t e1min = INT_FAST8_MIN;
2N/Aint_fast16_t e2 = INT_FAST16_MAX;
2N/Aint_fast16_t e2min = INT_FAST16_MIN;
2N/Aint_fast32_t e3 = INT_FAST32_MAX;
2N/Aint_fast32_t e3min = INT_FAST32_MIN;
2N/Aint_fast64_t e4 = INT_FAST64_MAX;
2N/Aint_fast64_t e4min = INT_FAST64_MIN;
2N/Auint_fast8_t f1 = UINT_FAST8_MAX;
2N/Auint_fast16_t f2 = UINT_FAST16_MAX;
2N/Auint_fast32_t f3 = UINT_FAST32_MAX;
2N/Auint_fast64_t f4 = UINT_FAST64_MAX;
2N/A#ifdef INTPTR_MAX
2N/Aintptr_t g = INTPTR_MAX;
2N/Aintptr_t gmin = INTPTR_MIN;
2N/A#endif
2N/A#ifdef UINTPTR_MAX
2N/Auintptr_t h = UINTPTR_MAX;
2N/A#endif
2N/Aintmax_t i = INTMAX_MAX;
2N/Auintmax_t j = UINTMAX_MAX;
2N/A
2N/A#include <limits.h> /* for CHAR_BIT */
2N/A#define TYPE_MINIMUM(t) \
2N/A ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
2N/A#define TYPE_MAXIMUM(t) \
2N/A ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
2N/Astruct s {
2N/A int check_PTRDIFF:
2N/A PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
2N/A && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
2N/A ? 1 : -1;
2N/A /* Detect bug in FreeBSD 6.0 / ia64. */
2N/A int check_SIG_ATOMIC:
2N/A SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
2N/A && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
2N/A ? 1 : -1;
2N/A int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
2N/A int check_WCHAR:
2N/A WCHAR_MIN == TYPE_MINIMUM (wchar_t)
2N/A && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
2N/A ? 1 : -1;
2N/A /* Detect bug in mingw. */
2N/A int check_WINT:
2N/A WINT_MIN == TYPE_MINIMUM (wint_t)
2N/A && WINT_MAX == TYPE_MAXIMUM (wint_t)
2N/A ? 1 : -1;
2N/A
2N/A /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
2N/A int check_UINT8_C:
2N/A (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
2N/A int check_UINT16_C:
2N/A (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
2N/A
2N/A /* Detect bugs in OpenBSD 3.9 stdint.h. */
2N/A#ifdef UINT8_MAX
2N/A int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
2N/A#endif
2N/A#ifdef UINT16_MAX
2N/A int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
2N/A#endif
2N/A#ifdef UINT32_MAX
2N/A int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
2N/A#endif
2N/A#ifdef UINT64_MAX
2N/A int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
2N/A#endif
2N/A int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
2N/A int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
2N/A int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
2N/A int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
2N/A int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
2N/A int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
2N/A int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
2N/A int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
2N/A int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
2N/A int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
2N/A int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
2N/A};
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A if test "$cross_compiling" = yes; then
2N/A gl_cv_header_working_stdint_h=yes
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A
2N/A /* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
2N/A#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
2N/A#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
2N/A#include <stdint.h>
2N/A
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A
2N/A#include <stdio.h>
2N/A#include <string.h>
2N/A#define MVAL(macro) MVAL1(macro)
2N/A#define MVAL1(expression) #expression
2N/Astatic const char *macro_values[] =
2N/A {
2N/A#ifdef INT8_MAX
2N/A MVAL (INT8_MAX),
2N/A#endif
2N/A#ifdef INT16_MAX
2N/A MVAL (INT16_MAX),
2N/A#endif
2N/A#ifdef INT32_MAX
2N/A MVAL (INT32_MAX),
2N/A#endif
2N/A#ifdef INT64_MAX
2N/A MVAL (INT64_MAX),
2N/A#endif
2N/A#ifdef UINT8_MAX
2N/A MVAL (UINT8_MAX),
2N/A#endif
2N/A#ifdef UINT16_MAX
2N/A MVAL (UINT16_MAX),
2N/A#endif
2N/A#ifdef UINT32_MAX
2N/A MVAL (UINT32_MAX),
2N/A#endif
2N/A#ifdef UINT64_MAX
2N/A MVAL (UINT64_MAX),
2N/A#endif
2N/A NULL
2N/A };
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A const char **mv;
2N/A for (mv = macro_values; *mv != NULL; mv++)
2N/A {
2N/A const char *value = *mv;
2N/A /* Test whether it looks like a cast expression. */
2N/A if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
2N/A || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
2N/A || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
2N/A || strncmp (value, "((int)"/*)*/, 6) == 0
2N/A || strncmp (value, "((signed short)"/*)*/, 15) == 0
2N/A || strncmp (value, "((signed char)"/*)*/, 14) == 0)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_header_working_stdint_h=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
2N/A$as_echo "$gl_cv_header_working_stdint_h" >&6; }
2N/A fi
2N/A if test "$gl_cv_header_working_stdint_h" = yes; then
2N/A STDINT_H=
2N/A else
2N/A
2N/A
2N/Afor ac_header in sys/inttypes.h sys/bitypes.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/A if test $ac_cv_header_sys_inttypes_h = yes; then
2N/A HAVE_SYS_INTTYPES_H=1
2N/A else
2N/A HAVE_SYS_INTTYPES_H=0
2N/A fi
2N/A
2N/A if test $ac_cv_header_sys_bitypes_h = yes; then
2N/A HAVE_SYS_BITYPES_H=1
2N/A else
2N/A HAVE_SYS_BITYPES_H=0
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $APPLE_UNIVERSAL_BUILD = 0; then
2N/A
2N/A
2N/A
2N/A
2N/A for gltype in ptrdiff_t size_t ; do
2N/A { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
2N/A$as_echo_n "checking for bit size of $gltype... " >&6; }
2N/Aif { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A # Depending upon the size, compute the lo and hi bounds.
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=0 ac_mid=0
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr $ac_mid + 1`
2N/A if test $ac_lo -le $ac_mid; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=-1 ac_mid=-1
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_hi=`expr '(' $ac_mid ')' - 1`
2N/A if test $ac_mid -le $ac_hi; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo= ac_hi=
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A# Binary search between lo and hi bounds.
2N/Awhile test "x$ac_lo" != "x$ac_hi"; do
2N/A ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr '(' $ac_mid ')' + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Adone
2N/Acase $ac_lo in
2N/A?*) result=$ac_lo;;
2N/A'') result=unknown ;;
2N/Aesac
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Astatic long int longval () { return sizeof ($gltype) * CHAR_BIT; }
2N/Astatic unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
2N/A@%:@include <stdio.h>
2N/A@%:@include <stdlib.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A FILE *f = fopen ("conftest.val", "w");
2N/A if (! f)
2N/A return 1;
2N/A if ((sizeof ($gltype) * CHAR_BIT) < 0)
2N/A {
2N/A long int i = longval ();
2N/A if (i != (sizeof ($gltype) * CHAR_BIT))
2N/A return 1;
2N/A fprintf (f, "%ld", i);
2N/A }
2N/A else
2N/A {
2N/A unsigned long int i = ulongval ();
2N/A if (i != (sizeof ($gltype) * CHAR_BIT))
2N/A return 1;
2N/A fprintf (f, "%lu", i);
2N/A }
2N/A /* Do not output a trailing newline, as this causes \r\n confusion
2N/A on some platforms. */
2N/A return ferror (f) || fclose (f) != 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A result=`cat conftest.val`
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aresult=unknown
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Arm -f conftest.val
2N/A eval gl_cv_bitsizeof_${gltype}=\$result
2N/A
2N/Afi
2N/Aac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A eval result=\$gl_cv_bitsizeof_${gltype}
2N/A if test $result = unknown; then
2N/A result=0
2N/A fi
2N/A GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define BITSIZEOF_${GLTYPE} $result
2N/A_ACEOF
2N/A
2N/A eval BITSIZEOF_${GLTYPE}=\$result
2N/A done
2N/A
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A for gltype in sig_atomic_t wchar_t wint_t ; do
2N/A { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
2N/A$as_echo_n "checking for bit size of $gltype... " >&6; }
2N/Aif { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A # Depending upon the size, compute the lo and hi bounds.
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=0 ac_mid=0
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr $ac_mid + 1`
2N/A if test $ac_lo -le $ac_mid; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=-1 ac_mid=-1
2N/A while :; do
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_lo=$ac_mid; break
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_hi=`expr '(' $ac_mid ')' - 1`
2N/A if test $ac_mid -le $ac_hi; then
2N/A ac_lo= ac_hi=
2N/A break
2N/A fi
2N/A ac_mid=`expr 2 '*' $ac_mid`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A done
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo= ac_hi=
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A# Binary search between lo and hi bounds.
2N/Awhile test "x$ac_lo" != "x$ac_hi"; do
2N/A ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Astatic int test_array @<:@1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)@:>@;
2N/Atest_array @<:@0@:>@ = 0
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_hi=$ac_mid
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_lo=`expr '(' $ac_mid ')' + 1`
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Adone
2N/Acase $ac_lo in
2N/A?*) result=$ac_lo;;
2N/A'') result=unknown ;;
2N/Aesac
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A#include <limits.h>
2N/Astatic long int longval () { return sizeof ($gltype) * CHAR_BIT; }
2N/Astatic unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
2N/A@%:@include <stdio.h>
2N/A@%:@include <stdlib.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A FILE *f = fopen ("conftest.val", "w");
2N/A if (! f)
2N/A return 1;
2N/A if ((sizeof ($gltype) * CHAR_BIT) < 0)
2N/A {
2N/A long int i = longval ();
2N/A if (i != (sizeof ($gltype) * CHAR_BIT))
2N/A return 1;
2N/A fprintf (f, "%ld", i);
2N/A }
2N/A else
2N/A {
2N/A unsigned long int i = ulongval ();
2N/A if (i != (sizeof ($gltype) * CHAR_BIT))
2N/A return 1;
2N/A fprintf (f, "%lu", i);
2N/A }
2N/A /* Do not output a trailing newline, as this causes \r\n confusion
2N/A on some platforms. */
2N/A return ferror (f) || fclose (f) != 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A result=`cat conftest.val`
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aresult=unknown
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Arm -f conftest.val
2N/A eval gl_cv_bitsizeof_${gltype}=\$result
2N/A
2N/Afi
2N/Aac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A eval result=\$gl_cv_bitsizeof_${gltype}
2N/A if test $result = unknown; then
2N/A result=0
2N/A fi
2N/A GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define BITSIZEOF_${GLTYPE} $result
2N/A_ACEOF
2N/A
2N/A eval BITSIZEOF_${GLTYPE}=\$result
2N/A done
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A for gltype in sig_atomic_t wchar_t wint_t ; do
2N/A { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
2N/A$as_echo_n "checking whether $gltype is signed... " >&6; }
2N/Aif { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A result=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A result=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A eval gl_cv_type_${gltype}_signed=\$result
2N/A
2N/Afi
2N/Aac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A eval result=\$gl_cv_type_${gltype}_signed
2N/A GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
2N/A if test "$result" = yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_SIGNED_${GLTYPE} 1
2N/A_ACEOF
2N/A
2N/A eval HAVE_SIGNED_${GLTYPE}=1
2N/A else
2N/A eval HAVE_SIGNED_${GLTYPE}=0
2N/A fi
2N/A done
2N/A
2N/A
2N/A gl_cv_type_ptrdiff_t_signed=yes
2N/A gl_cv_type_size_t_signed=no
2N/A if test $APPLE_UNIVERSAL_BUILD = 0; then
2N/A
2N/A
2N/A
2N/A
2N/A for gltype in ptrdiff_t size_t ; do
2N/A { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
2N/A$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
2N/Aif { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval gl_cv_type_${gltype}_suffix=no
2N/A eval result=\$gl_cv_type_${gltype}_signed
2N/A if test "$result" = yes; then
2N/A glsufu=
2N/A else
2N/A glsufu=u
2N/A fi
2N/A for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
2N/A case $glsuf in
2N/A '') gltype1='int';;
2N/A l) gltype1='long int';;
2N/A ll) gltype1='long long int';;
2N/A i64) gltype1='__int64';;
2N/A u) gltype1='unsigned int';;
2N/A ul) gltype1='unsigned long int';;
2N/A ull) gltype1='unsigned long long int';;
2N/A ui64)gltype1='unsigned __int64';;
2N/A esac
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A extern $gltype foo;
2N/A extern $gltype1 foo;
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A eval gl_cv_type_${gltype}_suffix=\$glsuf
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A eval result=\$gl_cv_type_${gltype}_suffix
2N/A test "$result" != no && break
2N/A done
2N/Afi
2N/Aac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
2N/A eval result=\$gl_cv_type_${gltype}_suffix
2N/A test "$result" = no && result=
2N/A eval ${GLTYPE}_SUFFIX=\$result
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define ${GLTYPE}_SUFFIX $result
2N/A_ACEOF
2N/A
2N/A done
2N/A
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A for gltype in sig_atomic_t wchar_t wint_t ; do
2N/A { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
2N/A$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
2N/Aif { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval gl_cv_type_${gltype}_suffix=no
2N/A eval result=\$gl_cv_type_${gltype}_signed
2N/A if test "$result" = yes; then
2N/A glsufu=
2N/A else
2N/A glsufu=u
2N/A fi
2N/A for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
2N/A case $glsuf in
2N/A '') gltype1='int';;
2N/A l) gltype1='long int';;
2N/A ll) gltype1='long long int';;
2N/A i64) gltype1='__int64';;
2N/A u) gltype1='unsigned int';;
2N/A ul) gltype1='unsigned long int';;
2N/A ull) gltype1='unsigned long long int';;
2N/A ui64)gltype1='unsigned __int64';;
2N/A esac
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
2N/A included before <wchar.h>. */
2N/A #include <stddef.h>
2N/A #include <signal.h>
2N/A #if HAVE_WCHAR_H
2N/A # include <stdio.h>
2N/A # include <time.h>
2N/A # include <wchar.h>
2N/A #endif
2N/A
2N/A extern $gltype foo;
2N/A extern $gltype1 foo;
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A eval gl_cv_type_${gltype}_suffix=\$glsuf
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A eval result=\$gl_cv_type_${gltype}_suffix
2N/A test "$result" != no && break
2N/A done
2N/Afi
2N/Aac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
2N/A eval result=\$gl_cv_type_${gltype}_suffix
2N/A test "$result" = no && result=
2N/A eval ${GLTYPE}_SUFFIX=\$result
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define ${GLTYPE}_SUFFIX $result
2N/A_ACEOF
2N/A
2N/A done
2N/A
2N/A
2N/A
2N/A STDINT_H=stdint.h
2N/A fi
2N/A
2N/A
2N/A # Code from module stdio:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_stdio_h='<'stdio.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
2N/A$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
2N/Aif test "${gl_cv_next_stdio_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_stdio_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdio.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/stdio.h#{
2N/A s#.*"\(.*/stdio.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_stdio_h='<'stdio.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
2N/A$as_echo "$gl_cv_next_stdio_h" >&6; }
2N/A fi
2N/A NEXT_STDIO_H=$gl_cv_next_stdio_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'stdio.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_stdio_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A GNULIB_FPRINTF=1
2N/A GNULIB_PRINTF=1
2N/A GNULIB_VFPRINTF=1
2N/A GNULIB_VPRINTF=1
2N/A GNULIB_FPUTC=1
2N/A GNULIB_PUTC=1
2N/A GNULIB_PUTCHAR=1
2N/A GNULIB_FPUTS=1
2N/A GNULIB_PUTS=1
2N/A GNULIB_FWRITE=1
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat snprintf tmpfile vdprintf vsnprintf; do
2N/A as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
2N/A { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
2N/A$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
2N/Aif { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdio.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A@%:@undef $gl_func
2N/A (void) $gl_func;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A eval "$as_gl_Symbol=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_gl_Symbol=no"
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A as_val=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/A eval ac_cv_have_decl_$gl_func=yes
2N/Afi
2N/A
2N/A done
2N/A
2N/A
2N/A # Code from module stdlib:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_stdlib_h='<'stdlib.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
2N/A$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
2N/Aif test "${gl_cv_next_stdlib_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_stdlib_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdlib.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/stdlib.h#{
2N/A s#.*"\(.*/stdlib.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_stdlib_h='<'stdlib.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
2N/A$as_echo "$gl_cv_next_stdlib_h" >&6; }
2N/A fi
2N/A NEXT_STDLIB_H=$gl_cv_next_stdlib_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'stdlib.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_stdlib_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_header in random.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A eval "$as_ac_Header=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_Header=no"
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/A if test $ac_cv_header_random_h = yes; then
2N/A HAVE_RANDOM_H=1
2N/A else
2N/A HAVE_RANDOM_H=0
2N/A fi
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
2N/A$as_echo_n "checking for struct random_data... " >&6; }
2N/Aif test "${ac_cv_type_struct_random_data+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_type_struct_random_data=no
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdlib.h>
2N/A #if HAVE_RANDOM_H
2N/A # include <random.h>
2N/A #endif
2N/A
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Aif (sizeof (struct random_data))
2N/A return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdlib.h>
2N/A #if HAVE_RANDOM_H
2N/A # include <random.h>
2N/A #endif
2N/A
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Aif (sizeof ((struct random_data)))
2N/A return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A :
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_type_struct_random_data=yes
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
2N/A$as_echo "$ac_cv_type_struct_random_data" >&6; }
2N/Aif test "x$ac_cv_type_struct_random_data" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_STRUCT_RANDOM_DATA 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A HAVE_STRUCT_RANDOM_DATA=0
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt unsetenv; do
2N/A as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
2N/A { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
2N/A$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
2N/Aif { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdlib.h>
2N/A#if HAVE_SYS_LOADAVG_H
2N/A# include <sys/loadavg.h>
2N/A#endif
2N/A#if HAVE_RANDOM_H
2N/A# include <random.h>
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A@%:@undef $gl_func
2N/A (void) $gl_func;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A eval "$as_gl_Symbol=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_gl_Symbol=no"
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A as_val=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/A eval ac_cv_have_decl_$gl_func=yes
2N/Afi
2N/A
2N/A done
2N/A
2N/A
2N/A # Code from module strcase:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_func in strcasecmp
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
2N/A
2N/Afi
2N/Adone
2N/A
2N/A
2N/A if test $ac_cv_func_strcasecmp = no; then
2N/A HAVE_STRCASECMP=0
2N/A
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_func in strncasecmp
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
2N/A
2N/Afi
2N/Adone
2N/A
2N/A
2N/A if test $ac_cv_func_strncasecmp = no; then
2N/A
2N/A :
2N/A
2N/A fi
2N/A { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
2N/A$as_echo_n "checking whether strncasecmp is declared... " >&6; }
2N/Aif test "${ac_cv_have_decl_strncasecmp+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A#ifndef strncasecmp
2N/A (void) strncasecmp;
2N/A#endif
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_cv_have_decl_strncasecmp=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_have_decl_strncasecmp=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
2N/A$as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
2N/Aif test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_STRNCASECMP 1
2N/A_ACEOF
2N/A
2N/A
2N/Aelse
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_DECL_STRNCASECMP 0
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A if test $ac_cv_have_decl_strncasecmp = no; then
2N/A HAVE_DECL_STRNCASECMP=0
2N/A fi
2N/A
2N/A
2N/A # Code from module strchrnul:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_func in strchrnul
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
2N/A
2N/Afi
2N/Adone
2N/A
2N/A
2N/A if test $ac_cv_func_strchrnul = no; then
2N/A HAVE_STRCHRNUL=0
2N/A :
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_STRCHRNUL=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_STRCHRNUL 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module streq:
2N/A # Code from module strerror:
2N/A
2N/A
2N/A if test $REPLACE_STRERROR = 1; then
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
2N/A
2N/A
2N/Acat >>confdefs.h <<_ACEOF
2N/A@%:@define REPLACE_STRERROR $REPLACE_STRERROR
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_STRERROR=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_STRERROR 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module string:
2N/A
2N/A
2N/A
2N/A # Code from module strings:
2N/A
2N/A
2N/A
2N/A # Code from module strndup:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_have_decl_strndup = no; then
2N/A HAVE_DECL_STRNDUP=0
2N/A fi
2N/A
2N/A if test $ac_cv_func_strndup = yes; then
2N/A # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
2N/A { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
2N/A$as_echo_n "checking for working strndup... " >&6; }
2N/Aif test "${gl_cv_func_strndup_works+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A
2N/A case $host_os in
2N/A aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
2N/A *) gl_cv_func_strndup_works="guessing yes";;
2N/A esac
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A
2N/A /* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <string.h>
2N/A #include <stdlib.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A#ifndef HAVE_DECL_STRNDUP
2N/A extern char *strndup (const char *, size_t);
2N/A#endif
2N/A char *s;
2N/A s = strndup ("some longer string", 15);
2N/A free (s);
2N/A s = strndup ("shorter string", 13);
2N/A return s[13] != '\0';
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_strndup_works=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_strndup_works=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup_works" >&5
2N/A$as_echo "$gl_cv_func_strndup_works" >&6; }
2N/A case $gl_cv_func_strndup_works in
2N/A *no)
2N/A REPLACE_STRNDUP=1
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
2N/A
2N/A ;;
2N/A esac
2N/A else
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_STRNDUP=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_STRNDUP 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module strnlen:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_have_decl_strnlen = no; then
2N/A HAVE_DECL_STRNLEN=0
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
2N/A$as_echo_n "checking for working strnlen... " >&6; }
2N/Aif test "${ac_cv_func_strnlen_working+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test "$cross_compiling" = yes; then
2N/A ac_cv_func_strnlen_working=no
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A#define S "foobar"
2N/A#define S_LEN (sizeof S - 1)
2N/A
2N/A /* At least one implementation is buggy: that of AIX 4.3 would
2N/A give strnlen (S, 1) == 3. */
2N/A
2N/A int i;
2N/A for (i = 0; i < S_LEN + 1; ++i)
2N/A {
2N/A int expected = i <= S_LEN ? i : S_LEN;
2N/A if (strnlen (S, i) != expected)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A ac_cv_func_strnlen_working=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Aac_cv_func_strnlen_working=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
2N/A$as_echo "$ac_cv_func_strnlen_working" >&6; }
2N/Atest $ac_cv_func_strnlen_working = no &&
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
2N/A
2N/A
2N/A if test $ac_cv_func_strnlen_working = no; then
2N/A REPLACE_STRNLEN=1
2N/A fi
2N/A fi
2N/A if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
2N/A
2N/A :
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_STRNLEN=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_STRNLEN 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module strnlen1:
2N/A # Code from module sys_wait:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_sys_wait_h='<'sys/wait.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <sys/wait.h>" >&5
2N/A$as_echo_n "checking absolute name of <sys/wait.h>... " >&6; }
2N/Aif test "${gl_cv_next_sys_wait_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_sys_wait_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <sys/wait.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_sys_wait_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/sys/wait.h#{
2N/A s#.*"\(.*/sys/wait.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_sys_wait_h='<'sys/wait.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_wait_h" >&5
2N/A$as_echo "$gl_cv_next_sys_wait_h" >&6; }
2N/A fi
2N/A NEXT_SYS_WAIT_H=$gl_cv_next_sys_wait_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'sys/wait.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_sys_wait_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_SYS_WAIT_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2N/A$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2N/Aif test -z "$MKDIR_P"; then
2N/A if test "${ac_cv_path_mkdir+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_prog in mkdir gmkdir; do
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2N/A case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2N/A 'mkdir (GNU coreutils) '* | \
2N/A 'mkdir (coreutils) '* | \
2N/A 'mkdir (fileutils) '4.1*)
2N/A ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2N/A break 3;;
2N/A esac
2N/A done
2N/A done
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/A
2N/A if test "${ac_cv_path_mkdir+set}" = set; then
2N/A MKDIR_P="$ac_cv_path_mkdir -p"
2N/A else
2N/A # As a last resort, use the slow shell script. Don't cache a
2N/A # value for MKDIR_P within a source directory, because that will
2N/A # break other packages using the cache if that directory is
2N/A # removed, or if the value is a relative name.
2N/A test -d ./--version && rmdir ./--version
2N/A MKDIR_P="$ac_install_sh -d"
2N/A fi
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2N/A$as_echo "$MKDIR_P" >&6; }
2N/A
2N/A
2N/A # Code from module sysexits:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_header_sysexits_h = yes; then
2N/A HAVE_SYSEXITS_H=1
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_sysexits_h='<'sysexits.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
2N/A$as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
2N/Aif test "${gl_cv_next_sysexits_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_sysexits_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <sysexits.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/sysexits.h#{
2N/A s#.*"\(.*/sysexits.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_sysexits_h='<'sysexits.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
2N/A$as_echo "$gl_cv_next_sysexits_h" >&6; }
2N/A fi
2N/A NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'sysexits.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_sysexits_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <sysexits.h>
2N/Aint
2N/Amain (void)
2N/A{
2N/Aswitch (0)
2N/A {
2N/A case EX_OK:
2N/A case EX_USAGE:
2N/A case EX_DATAERR:
2N/A case EX_NOINPUT:
2N/A case EX_NOUSER:
2N/A case EX_NOHOST:
2N/A case EX_UNAVAILABLE:
2N/A case EX_SOFTWARE:
2N/A case EX_OSERR:
2N/A case EX_OSFILE:
2N/A case EX_CANTCREAT:
2N/A case EX_IOERR:
2N/A case EX_TEMPFAIL:
2N/A case EX_PROTOCOL:
2N/A case EX_NOPERM:
2N/A case EX_CONFIG:
2N/A break;
2N/A }
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A SYSEXITS_H=
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A SYSEXITS_H=sysexits.h
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A else
2N/A HAVE_SYSEXITS_H=0
2N/A SYSEXITS_H=sysexits.h
2N/A fi
2N/A
2N/A
2N/A
2N/A # Code from module unistd:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_unistd_h='<'unistd.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
2N/A$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
2N/Aif test "${gl_cv_next_unistd_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_unistd_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <unistd.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/unistd.h#{
2N/A s#.*"\(.*/unistd.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_unistd_h='<'unistd.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
2N/A$as_echo "$gl_cv_next_unistd_h" >&6; }
2N/A fi
2N/A NEXT_UNISTD_H=$gl_cv_next_unistd_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'unistd.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_unistd_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_header_unistd_h = yes; then
2N/A HAVE_UNISTD_H=1
2N/A else
2N/A HAVE_UNISTD_H=0
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell lchown link linkat lseek pipe2 pread pwrite readlink readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
2N/A as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
2N/A { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
2N/A$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
2N/Aif { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <unistd.h>
2N/A/* Some systems declare various items in the wrong headers. */
2N/A#ifndef __GLIBC__
2N/A# include <fcntl.h>
2N/A# include <stdio.h>
2N/A# include <stdlib.h>
2N/A# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
2N/A# include <io.h>
2N/A# endif
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A@%:@undef $gl_func
2N/A (void) $gl_func;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A eval "$as_gl_Symbol=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_gl_Symbol=no"
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A as_val=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/A eval ac_cv_have_decl_$gl_func=yes
2N/Afi
2N/A
2N/A done
2N/A
2N/A
2N/A # Code from module vasnprintf:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_vasnprintf = no; then
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
2N/A
2N/A if test $ac_cv_func_vasnprintf = yes; then
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define REPLACE_VASNPRINTF 1
2N/A_ACEOF
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
2N/A$as_echo_n "checking for ptrdiff_t... " >&6; }
2N/Aif test "${ac_cv_type_ptrdiff_t+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_type_ptrdiff_t=no
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Aif (sizeof (ptrdiff_t))
2N/A return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/Aint
2N/Amain (void)
2N/A{
2N/Aif (sizeof ((ptrdiff_t)))
2N/A return 0;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A :
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_type_ptrdiff_t=yes
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
2N/A$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
2N/Aif test "x$ac_cv_type_ptrdiff_t" = x""yes; then
2N/A :
2N/Aelse
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define ptrdiff_t long
2N/A_ACEOF
2N/A
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A fi
2N/A
2N/A # Code from module verify:
2N/A # Code from module vsnprintf:
2N/A
2N/A
2N/A gl_cv_func_vsnprintf_usable=no
2N/A
2N/Afor ac_func in vsnprintf
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/Adone
2N/A
2N/A if test $ac_cv_func_vsnprintf = yes; then
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
2N/A$as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
2N/Aif test "${gl_cv_func_snprintf_size1+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test "$cross_compiling" = yes; then
2N/A gl_cv_func_snprintf_size1="guessing yes"
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <stdio.h>
2N/Aint main()
2N/A{
2N/A static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
2N/A snprintf (buf, 1, "%d", 12345);
2N/A return buf[1] != 'E';
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_snprintf_size1=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_snprintf_size1=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
2N/A$as_echo "$gl_cv_func_snprintf_size1" >&6; }
2N/A
2N/A case "$gl_cv_func_snprintf_size1" in
2N/A *yes)
2N/A gl_cv_func_vsnprintf_usable=yes
2N/A ;;
2N/A esac
2N/A fi
2N/A if test $gl_cv_func_vsnprintf_usable = no; then
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
2N/A
2N/A if test $ac_cv_func_vsnprintf = yes; then
2N/A REPLACE_VSNPRINTF=1
2N/A fi
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_have_decl_vsnprintf = no; then
2N/A HAVE_DECL_VSNPRINTF=0
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_VSNPRINTF=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_VSNPRINTF 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module warn-on-use:
2N/A # Code from module wchar:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_wchar_h='<'wchar.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
2N/A$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
2N/Aif test "${gl_cv_next_wchar_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_wchar_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <wchar.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/wchar.h#{
2N/A s#.*"\(.*/wchar.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_wchar_h='<'wchar.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
2N/A$as_echo "$gl_cv_next_wchar_h" >&6; }
2N/A fi
2N/A NEXT_WCHAR_H=$gl_cv_next_wchar_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'wchar.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_wchar_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A if test $ac_cv_header_wchar_h = yes; then
2N/A HAVE_WCHAR_H=1
2N/A else
2N/A HAVE_WCHAR_H=0
2N/A fi
2N/A
2N/A
2N/A
2N/A if test $gt_cv_c_wint_t = yes; then
2N/A HAVE_WINT_T=1
2N/A else
2N/A HAVE_WINT_T=0
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
2N/A as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
2N/A { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
2N/A$as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
2N/Aif { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Some systems require additional headers. */
2N/A#ifndef __GLIBC__
2N/A# include <stddef.h>
2N/A# include <stdio.h>
2N/A# include <time.h>
2N/A#endif
2N/A#include <wchar.h>
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A@%:@undef $gl_func
2N/A (void) $gl_func;
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A eval "$as_gl_Symbol=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_gl_Symbol=no"
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A as_val=`eval 'as_val=${'$as_gl_Symbol'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/A eval ac_cv_have_decl_$gl_func=yes
2N/Afi
2N/A
2N/A done
2N/A
2N/A
2N/A # Code from module wcrtomb:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
2N/A$as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
2N/Aif test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on AIX and OSF/1.
2N/A aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_JA != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
2N/A {
2N/A const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
2N/A if (mbsinit (&state))
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbrtowc_incomplete_state=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbrtowc_incomplete_state=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
2N/A$as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
2N/A$as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
2N/Aif test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on Solaris 8.
2N/A solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_ZH_CN != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <stdlib.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A /* This fails on Solaris 8:
2N/A mbrtowc returns 2, and sets wc to 0x00F0.
2N/A mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
2N/A if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
2N/A {
2N/A char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
2N/A mbstate_t state;
2N/A wchar_t wc;
2N/A
2N/A memset (&state, '\0', sizeof (mbstate_t));
2N/A if (mbrtowc (&wc, input + 3, 6, &state) != 4
2N/A && mbtowc (&wc, input + 3, 6) == 4)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_mbrtowc_sanitycheck=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_mbrtowc_sanitycheck=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
2N/A$as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
2N/A
2N/A REPLACE_MBSTATE_T=0
2N/A case "$gl_cv_func_mbrtowc_incomplete_state" in
2N/A *yes) ;;
2N/A *) REPLACE_MBSTATE_T=1 ;;
2N/A esac
2N/A case "$gl_cv_func_mbrtowc_sanitycheck" in
2N/A *yes) ;;
2N/A *) REPLACE_MBSTATE_T=1 ;;
2N/A esac
2N/A else
2N/A REPLACE_MBSTATE_T=1
2N/A fi
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_wcrtomb = no; then
2N/A HAVE_WCRTOMB=0
2N/A else
2N/A if test $REPLACE_MBSTATE_T = 1; then
2N/A REPLACE_WCRTOMB=1
2N/A else
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
2N/A$as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
2N/Aif test "${gl_cv_func_wcrtomb_retval+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A case "$host_os" in
2N/A # Guess no on AIX 4, OSF/1 and Solaris.
2N/A aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
2N/A # Guess yes otherwise.
2N/A *) gl_cv_func_wcrtomb_retval="guessing yes" ;;
2N/A esac
2N/A if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
2N/A if test "$cross_compiling" = yes; then
2N/A :
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#include <locale.h>
2N/A#include <stdio.h>
2N/A#include <string.h>
2N/A#include <wchar.h>
2N/Aint main ()
2N/A{
2N/A if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
2N/A {
2N/A if (wcrtomb (NULL, 0, NULL) != 1)
2N/A return 1;
2N/A }
2N/A if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
2N/A {
2N/A if (wcrtomb (NULL, 0, NULL) != 1)
2N/A return 1;
2N/A }
2N/A if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
2N/A {
2N/A if (wcrtomb (NULL, 0, NULL) != 1)
2N/A return 1;
2N/A }
2N/A if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
2N/A {
2N/A if (wcrtomb (NULL, 0, NULL) != 1)
2N/A return 1;
2N/A }
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_wcrtomb_retval=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_wcrtomb_retval=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
2N/A$as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
2N/A case "$gl_cv_func_wcrtomb_retval" in
2N/A *yes) ;;
2N/A *) REPLACE_WCRTOMB=1 ;;
2N/A esac
2N/A fi
2N/A fi
2N/A if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
2N/A
2N/A :
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
2N/A
2N/A
2N/A :
2N/A
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A GNULIB_WCRTOMB=1
2N/A
2N/A
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define GNULIB_TEST_WCRTOMB 1
2N/A_ACEOF
2N/A
2N/A
2N/A
2N/A # Code from module wctype:
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_iswcntrl = yes; then
2N/A HAVE_ISWCNTRL=1
2N/A else
2N/A HAVE_ISWCNTRL=0
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $ac_cv_func_iswblank = yes; then
2N/A HAVE_ISWBLANK=1
2N/A REPLACE_ISWBLANK=0
2N/A else
2N/A HAVE_ISWBLANK=0
2N/A if test $ac_cv_have_decl_iswblank = yes; then
2N/A REPLACE_ISWBLANK=1
2N/A else
2N/A REPLACE_ISWBLANK=0
2N/A fi
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gt_cv_c_wint_t = yes; then
2N/A HAVE_WINT_T=1
2N/A else
2N/A HAVE_WINT_T=0
2N/A fi
2N/A
2N/A
2N/A if test $ac_cv_header_wctype_h = yes; then
2N/A if test $ac_cv_func_iswcntrl = yes; then
2N/A { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
2N/A$as_echo_n "checking whether iswcntrl works... " >&6; }
2N/Aif test "${gl_cv_func_iswcntrl_works+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test "$cross_compiling" = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdlib.h>
2N/A #if __GNU_LIBRARY__ == 1
2N/A Linux libc5 i18n is broken.
2N/A #endif
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A gl_cv_func_iswcntrl_works=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A gl_cv_func_iswcntrl_works=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A #include <stddef.h>
2N/A #include <stdio.h>
2N/A #include <time.h>
2N/A #include <wchar.h>
2N/A #include <wctype.h>
2N/A int main () { return iswprint ('x') == 0; }
2N/A_ACEOF
2N/Arm -f conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2N/A { (case "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_try") 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A gl_cv_func_iswcntrl_works=yes
2N/Aelse
2N/A $as_echo "$as_me: program exited with status $ac_status" >&5
2N/A$as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A( exit $ac_status )
2N/Agl_cv_func_iswcntrl_works=no
2N/Afi
2N/Arm -rf conftest.dSYM
2N/Arm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
2N/A$as_echo "$gl_cv_func_iswcntrl_works" >&6; }
2N/A fi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A if test $gl_cv_have_include_next = yes; then
2N/A gl_cv_next_wctype_h='<'wctype.h'>'
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
2N/A$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
2N/Aif test "${gl_cv_next_wctype_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A if test $ac_cv_header_wctype_h = yes; then
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <wctype.h>
2N/A
2N/A_ACEOF
2N/A case "$host_os" in
2N/A aix*) gl_absname_cpp="$ac_cpp -C" ;;
2N/A *) gl_absname_cpp="$ac_cpp" ;;
2N/A esac
2N/A gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
2N/A sed -n '\#/wctype.h#{
2N/A s#.*"\(.*/wctype.h\)".*#\1#
2N/A s#^/[^/]#//&#
2N/A p
2N/A q
2N/A }'`'"'
2N/A else
2N/A gl_cv_next_wctype_h='<'wctype.h'>'
2N/A fi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
2N/A$as_echo "$gl_cv_next_wctype_h" >&6; }
2N/A fi
2N/A NEXT_WCTYPE_H=$gl_cv_next_wctype_h
2N/A
2N/A if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
2N/A gl_next_as_first_directive='<'wctype.h'>'
2N/A else
2N/A # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
2N/A gl_next_as_first_directive=$gl_cv_next_wctype_h
2N/A fi
2N/A NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
2N/A
2N/A
2N/A
2N/A HAVE_WCTYPE_H=1
2N/A else
2N/A HAVE_WCTYPE_H=0
2N/A fi
2N/A
2N/A
2N/A if test "$gl_cv_func_iswcntrl_works" = no; then
2N/A REPLACE_ISWCNTRL=1
2N/A else
2N/A REPLACE_ISWCNTRL=0
2N/A fi
2N/A
2N/A
2N/A # Code from module xsize:
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_header in stdint.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/A
2N/A # End of code from modules
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gltests_libdeps=
2N/A gltests_ltlibdeps=
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A gl_source_base='tests'
2N/A 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
2N/A
2N/A gl_module_indicator_condition=$gltests_WITNESS
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A LIBGNU_LIBDEPS="$gl_libdeps"
2N/A
2N/A LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
2N/A
2N/A
2N/A
2N/A#
2N/A# Check for target programs.
2N/A#
2N/A
2N/A# Find tools for the target.
2N/Aif test "x$target_alias" != x && test "x$host_alias" != "x$target_alias"; then
2N/A tmp_ac_tool_prefix="$ac_tool_prefix"
2N/A ac_tool_prefix=$target_alias-
2N/A
2N/A if test -n "$ac_tool_prefix"; then
2N/A for ac_prog in gcc egcs cc
2N/A do
2N/A # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_tool_prefix$ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_TARGET_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$TARGET_CC"; then
2N/A ac_cv_prog_TARGET_CC="$TARGET_CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_TARGET_CC="$ac_tool_prefix$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ATARGET_CC=$ac_cv_prog_TARGET_CC
2N/Aif test -n "$TARGET_CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $TARGET_CC" >&5
2N/A$as_echo "$TARGET_CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$TARGET_CC" && break
2N/A done
2N/Afi
2N/Aif test -z "$TARGET_CC"; then
2N/A ac_ct_TARGET_CC=$TARGET_CC
2N/A for ac_prog in gcc egcs cc
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_TARGET_CC+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_TARGET_CC"; then
2N/A ac_cv_prog_ac_ct_TARGET_CC="$ac_ct_TARGET_CC" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_TARGET_CC="$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_TARGET_CC=$ac_cv_prog_ac_ct_TARGET_CC
2N/Aif test -n "$ac_ct_TARGET_CC"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_TARGET_CC" >&5
2N/A$as_echo "$ac_ct_TARGET_CC" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$ac_ct_TARGET_CC" && break
2N/Adone
2N/A
2N/A if test "x$ac_ct_TARGET_CC" = x; then
2N/A TARGET_CC="{ { $as_echo "$as_me:$LINENO: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&5
2N/A$as_echo "$as_me: error: none of gcc, egcs and cc is found. set TARGET_CC manually." >&2;}
2N/A { (exit 1); exit 1; }; }"
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A TARGET_CC=$ac_ct_TARGET_CC
2N/A fi
2N/Afi
2N/A
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}objcopy; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_OBJCOPY+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$OBJCOPY"; then
2N/A ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/AOBJCOPY=$ac_cv_prog_OBJCOPY
2N/Aif test -n "$OBJCOPY"; then
2N/A { $as_echo "$as_me:$LINENO: result: $OBJCOPY" >&5
2N/A$as_echo "$OBJCOPY" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_OBJCOPY"; then
2N/A ac_ct_OBJCOPY=$OBJCOPY
2N/A # Extract the first word of "objcopy", so it can be a program name with args.
2N/Aset dummy objcopy; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_OBJCOPY"; then
2N/A ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_OBJCOPY="objcopy"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
2N/Aif test -n "$ac_ct_OBJCOPY"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
2N/A$as_echo "$ac_ct_OBJCOPY" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_OBJCOPY" = x; then
2N/A OBJCOPY=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A OBJCOPY=$ac_ct_OBJCOPY
2N/A fi
2N/Aelse
2N/A OBJCOPY="$ac_cv_prog_OBJCOPY"
2N/Afi
2N/A
2N/A if test "$host_kernel" == solaris; then
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}gstrip", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}gstrip; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_STRIP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$STRIP"; then
2N/A ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_STRIP="${ac_tool_prefix}gstrip"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ASTRIP=$ac_cv_prog_STRIP
2N/Aif test -n "$STRIP"; then
2N/A { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2N/A$as_echo "$STRIP" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_STRIP"; then
2N/A ac_ct_STRIP=$STRIP
2N/A # Extract the first word of "gstrip", so it can be a program name with args.
2N/Aset dummy gstrip; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_STRIP"; then
2N/A ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_STRIP="gstrip"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2N/Aif test -n "$ac_ct_STRIP"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2N/A$as_echo "$ac_ct_STRIP" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_STRIP" = x; then
2N/A STRIP=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A STRIP=$ac_ct_STRIP
2N/A fi
2N/Aelse
2N/A STRIP="$ac_cv_prog_STRIP"
2N/Afi
2N/A
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}gnm", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}gnm; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_NM+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$NM"; then
2N/A ac_cv_prog_NM="$NM" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_NM="${ac_tool_prefix}gnm"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ANM=$ac_cv_prog_NM
2N/Aif test -n "$NM"; then
2N/A { $as_echo "$as_me:$LINENO: result: $NM" >&5
2N/A$as_echo "$NM" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_NM"; then
2N/A ac_ct_NM=$NM
2N/A # Extract the first word of "gnm", so it can be a program name with args.
2N/Aset dummy gnm; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_NM"; then
2N/A ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_NM="gnm"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_NM=$ac_cv_prog_ac_ct_NM
2N/Aif test -n "$ac_ct_NM"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2N/A$as_echo "$ac_ct_NM" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_NM" = x; then
2N/A NM=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A NM=$ac_ct_NM
2N/A fi
2N/Aelse
2N/A NM="$ac_cv_prog_NM"
2N/Afi
2N/A
2N/A else
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}strip; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_STRIP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$STRIP"; then
2N/A ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ASTRIP=$ac_cv_prog_STRIP
2N/Aif test -n "$STRIP"; then
2N/A { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2N/A$as_echo "$STRIP" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_STRIP"; then
2N/A ac_ct_STRIP=$STRIP
2N/A # Extract the first word of "strip", so it can be a program name with args.
2N/Aset dummy strip; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_STRIP"; then
2N/A ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_STRIP="strip"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2N/Aif test -n "$ac_ct_STRIP"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2N/A$as_echo "$ac_ct_STRIP" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_STRIP" = x; then
2N/A STRIP=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A STRIP=$ac_ct_STRIP
2N/A fi
2N/Aelse
2N/A STRIP="$ac_cv_prog_STRIP"
2N/Afi
2N/A
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}nm; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_NM+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$NM"; then
2N/A ac_cv_prog_NM="$NM" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_NM="${ac_tool_prefix}nm"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ANM=$ac_cv_prog_NM
2N/Aif test -n "$NM"; then
2N/A { $as_echo "$as_me:$LINENO: result: $NM" >&5
2N/A$as_echo "$NM" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_NM"; then
2N/A ac_ct_NM=$NM
2N/A # Extract the first word of "nm", so it can be a program name with args.
2N/Aset dummy nm; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_NM"; then
2N/A ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_NM="nm"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_NM=$ac_cv_prog_ac_ct_NM
2N/Aif test -n "$ac_ct_NM"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2N/A$as_echo "$ac_ct_NM" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_NM" = x; then
2N/A NM=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A NM=$ac_ct_NM
2N/A fi
2N/Aelse
2N/A NM="$ac_cv_prog_NM"
2N/Afi
2N/A
2N/A fi
2N/A ac_tool_prefix="$tmp_ac_tool_prefix"
2N/Aelse
2N/A if test "x$TARGET_CC" = x; then
2N/A TARGET_CC=$CC
2N/A fi
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}objcopy; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_OBJCOPY+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$OBJCOPY"; then
2N/A ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/AOBJCOPY=$ac_cv_prog_OBJCOPY
2N/Aif test -n "$OBJCOPY"; then
2N/A { $as_echo "$as_me:$LINENO: result: $OBJCOPY" >&5
2N/A$as_echo "$OBJCOPY" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_OBJCOPY"; then
2N/A ac_ct_OBJCOPY=$OBJCOPY
2N/A # Extract the first word of "objcopy", so it can be a program name with args.
2N/Aset dummy objcopy; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_OBJCOPY"; then
2N/A ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_OBJCOPY="objcopy"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
2N/Aif test -n "$ac_ct_OBJCOPY"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
2N/A$as_echo "$ac_ct_OBJCOPY" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_OBJCOPY" = x; then
2N/A OBJCOPY=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A OBJCOPY=$ac_ct_OBJCOPY
2N/A fi
2N/Aelse
2N/A OBJCOPY="$ac_cv_prog_OBJCOPY"
2N/Afi
2N/A
2N/A if test "$host_kernel" == solaris; then
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}gstrip", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}gstrip; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_STRIP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$STRIP"; then
2N/A ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_STRIP="${ac_tool_prefix}gstrip"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ASTRIP=$ac_cv_prog_STRIP
2N/Aif test -n "$STRIP"; then
2N/A { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2N/A$as_echo "$STRIP" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_STRIP"; then
2N/A ac_ct_STRIP=$STRIP
2N/A # Extract the first word of "gstrip", so it can be a program name with args.
2N/Aset dummy gstrip; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_STRIP"; then
2N/A ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_STRIP="gstrip"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2N/Aif test -n "$ac_ct_STRIP"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2N/A$as_echo "$ac_ct_STRIP" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_STRIP" = x; then
2N/A STRIP=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A STRIP=$ac_ct_STRIP
2N/A fi
2N/Aelse
2N/A STRIP="$ac_cv_prog_STRIP"
2N/Afi
2N/A
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}gnm", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}gnm; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_NM+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$NM"; then
2N/A ac_cv_prog_NM="$NM" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_NM="${ac_tool_prefix}gnm"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ANM=$ac_cv_prog_NM
2N/Aif test -n "$NM"; then
2N/A { $as_echo "$as_me:$LINENO: result: $NM" >&5
2N/A$as_echo "$NM" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_NM"; then
2N/A ac_ct_NM=$NM
2N/A # Extract the first word of "gnm", so it can be a program name with args.
2N/Aset dummy gnm; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_NM"; then
2N/A ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_NM="gnm"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_NM=$ac_cv_prog_ac_ct_NM
2N/Aif test -n "$ac_ct_NM"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2N/A$as_echo "$ac_ct_NM" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_NM" = x; then
2N/A NM=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A NM=$ac_ct_NM
2N/A fi
2N/Aelse
2N/A NM="$ac_cv_prog_NM"
2N/Afi
2N/A
2N/A else
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}strip; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_STRIP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$STRIP"; then
2N/A ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ASTRIP=$ac_cv_prog_STRIP
2N/Aif test -n "$STRIP"; then
2N/A { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2N/A$as_echo "$STRIP" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_STRIP"; then
2N/A ac_ct_STRIP=$STRIP
2N/A # Extract the first word of "strip", so it can be a program name with args.
2N/Aset dummy strip; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_STRIP"; then
2N/A ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_STRIP="strip"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2N/Aif test -n "$ac_ct_STRIP"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2N/A$as_echo "$ac_ct_STRIP" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_STRIP" = x; then
2N/A STRIP=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A STRIP=$ac_ct_STRIP
2N/A fi
2N/Aelse
2N/A STRIP="$ac_cv_prog_STRIP"
2N/Afi
2N/A
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}nm; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_NM+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$NM"; then
2N/A ac_cv_prog_NM="$NM" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_NM="${ac_tool_prefix}nm"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ANM=$ac_cv_prog_NM
2N/Aif test -n "$NM"; then
2N/A { $as_echo "$as_me:$LINENO: result: $NM" >&5
2N/A$as_echo "$NM" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_NM"; then
2N/A ac_ct_NM=$NM
2N/A # Extract the first word of "nm", so it can be a program name with args.
2N/Aset dummy nm; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_NM"; then
2N/A ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_NM="nm"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_NM=$ac_cv_prog_ac_ct_NM
2N/Aif test -n "$ac_ct_NM"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2N/A$as_echo "$ac_ct_NM" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_NM" = x; then
2N/A NM=""
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A NM=$ac_ct_NM
2N/A fi
2N/Aelse
2N/A NM="$ac_cv_prog_NM"
2N/Afi
2N/A
2N/A fi
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A# Test the C compiler for the target environment.
2N/Atmp_CC="$CC"
2N/Atmp_CFLAGS="$CFLAGS"
2N/Atmp_LDFLAGS="$LDFLAGS"
2N/Atmp_CPPFLAGS="$CPPFLAGS"
2N/Atmp_LIBS="$LIBS"
2N/ACC="$TARGET_CC"
2N/ACFLAGS="$TARGET_CFLAGS"
2N/ACPPFLAGS="$TARGET_CPPFLAGS"
2N/ALDFLAGS="$TARGET_LDFLAGS"
2N/ALIBS=""
2N/A
2N/A# debug flags.
2N/ATARGET_CFLAGS="$TARGET_CFLAGS -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g"
2N/ATARGET_CCASFLAGS="$TARGET_CCASFLAGS -g"
2N/A
2N/A# Force no alignment to save space on i386.
2N/Aif test "x$target_cpu" = xi386; then
2N/A { $as_echo "$as_me:$LINENO: checking whether -falign-loops works" >&5
2N/A$as_echo_n "checking whether -falign-loops works... " >&6; }
2N/Aif test "${grub_cv_cc_falign_loop+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A CFLAGS="$CFLAGS -falign-loops=1"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A grub_cv_cc_falign_loop=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_cc_falign_loop=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_cc_falign_loop" >&5
2N/A$as_echo "$grub_cv_cc_falign_loop" >&6; }
2N/A
2N/A if test "x$grub_cv_cc_falign_loop" = xyes; then
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
2N/A else
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
2N/A fi
2N/A
2N/A # Some toolchains enable these features by default, but they need
2N/A # registers that aren't set up properly in GRUB.
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow"
2N/Afi
2N/A
2N/A# By default, GCC 4.4 generates .eh_frame sections containing unwind
2N/A# information in some cases where it previously did not. GRUB doesn't need
2N/A# these and they just use up vital space. Restore the old compiler
2N/A# behaviour.
2N/A{ $as_echo "$as_me:$LINENO: checking whether -fno-dwarf2-cfi-asm works" >&5
2N/A$as_echo_n "checking whether -fno-dwarf2-cfi-asm works... " >&6; }
2N/Aif test "${grub_cv_cc_fno_dwarf2_cfi_asm+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A SAVE_CFLAGS="$CFLAGS"
2N/A CFLAGS="$CFLAGS -fno-dwarf2-cfi-asm"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A grub_cv_cc_fno_dwarf2_cfi_asm=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_cc_fno_dwarf2_cfi_asm=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A CFLAGS="$SAVE_CFLAGS"
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_cc_fno_dwarf2_cfi_asm" >&5
2N/A$as_echo "$grub_cv_cc_fno_dwarf2_cfi_asm" >&6; }
2N/A
2N/Aif test "x$grub_cv_cc_fno_dwarf2_cfi_asm" = xyes; then
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -fno-dwarf2-cfi-asm"
2N/Afi
2N/A
2N/A# By default, GCC 4.6 generates .eh_frame sections containing unwind
2N/A# information in some cases where it previously did not. GRUB doesn't need
2N/A# these and they just use up vital space. Restore the old compiler
2N/A# behaviour.
2N/A{ $as_echo "$as_me:$LINENO: checking whether -fno-asynchronous-unwind-tables works" >&5
2N/A$as_echo_n "checking whether -fno-asynchronous-unwind-tables works... " >&6; }
2N/Aif test "${grub_cv_cc_fno_asynchronous_unwind_tables+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A SAVE_CFLAGS="$CFLAGS"
2N/A CFLAGS="$CFLAGS -fno-dwarf2-cfi-asm"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A grub_cv_cc_fno_asynchronous_unwind_tables=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_cc_fno_asynchronous_unwind_tables=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A CFLAGS="$SAVE_CFLAGS"
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_cc_fno_asynchronous_unwind_tables" >&5
2N/A$as_echo "$grub_cv_cc_fno_asynchronous_unwind_tables" >&6; }
2N/A
2N/Aif test "x$grub_cv_cc_fno_asynchronous_unwind_tables" = xyes; then
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -fno-asynchronous-unwind-tables"
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether our target compiler is apple cc" >&5
2N/A$as_echo_n "checking whether our target compiler is apple cc... " >&6; }
2N/Aif test "${grub_cv_apple_target_cc+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if $CC -v 2>&1 | grep "Apple Inc." > /dev/null; then
2N/A grub_cv_apple_target_cc=yes
2N/Aelse
2N/A grub_cv_apple_target_cc=no
2N/Afi
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_apple_target_cc" >&5
2N/A$as_echo "$grub_cv_apple_target_cc" >&6; }
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether our target linker is Solaris ld" >&5
2N/A$as_echo_n "checking whether our target linker is Solaris ld... " >&6; }
2N/Aif test "${grub_cv_solaris_linker+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat > conftest.c <<\EOF
2N/Aint main(int argc, char **argv){return 0;}
2N/AEOF
2N/Aif $CC conftest.c -o /dev/null -Wl,-V 2>&1 | grep "Solaris Link Editors" > /dev/null; then
2N/A grub_cv_solaris_linker=yes
2N/Aelse
2N/A grub_cv_solaris_linker=no
2N/Afi
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_solaris_linker" >&5
2N/A$as_echo "$grub_cv_solaris_linker" >&6; }
2N/A
2N/A if test x$grub_cv_solaris_linker = xyes; then
2N/A COND_ld_Solaris_TRUE=
2N/A COND_ld_Solaris_FALSE='#'
2N/Aelse
2N/A COND_ld_Solaris_TRUE='#'
2N/A COND_ld_Solaris_FALSE=
2N/Afi
2N/A
2N/A
2N/Aif test x$grub_cv_apple_target_cc = xyes ; then
2N/A TARGET_CPPFLAGS="$TARGET_CPPFLAGS -DAPPLE_CC=1"
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -fnested-functions"
2N/A
2N/A CFLAGS="$CFLAGS -DAPPLE_CC=1 -fnested-functions"
2N/A TARGET_APPLE_CC=1
2N/A TARGET_SOLARIS_LD=0
2N/A # Extract the first word of "objconv", so it can be a program name with args.
2N/Aset dummy objconv; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_OBJCONV+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$OBJCONV"; then
2N/A ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_OBJCONV="objconv"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/AOBJCONV=$ac_cv_prog_OBJCONV
2N/Aif test -n "$OBJCONV"; then
2N/A { $as_echo "$as_me:$LINENO: result: $OBJCONV" >&5
2N/A$as_echo "$OBJCONV" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A if test "x$OBJCONV" = x ; then
2N/A # Extract the first word of "objconv", so it can be a program name with args.
2N/Aset dummy objconv; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_OBJCONV+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$OBJCONV"; then
2N/A ac_cv_prog_OBJCONV="$OBJCONV" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in .
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_OBJCONV="./objconv"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/AOBJCONV=$ac_cv_prog_OBJCONV
2N/Aif test -n "$OBJCONV"; then
2N/A { $as_echo "$as_me:$LINENO: result: $OBJCONV" >&5
2N/A$as_echo "$OBJCONV" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A fi
2N/A if test "x$OBJCONV" = x ; then
2N/A { { $as_echo "$as_me:$LINENO: error: objconv not found which is required when building with apple compiler" >&5
2N/A$as_echo "$as_me: error: objconv not found which is required when building with apple compiler" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A TARGET_IMG_LDSCRIPT=
2N/A TARGET_IMG_CFLAGS="-static"
2N/A TARGET_IMG_LDFLAGS='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
2N/A TARGET_IMG_LDFLAGS_AC='-nostdlib -static -Wl,-preload -Wl,-segalign,20'
2N/A TARGET_IMG_BASE_LDOPT="-Wl,-image_base"
2N/Aelif test x$grub_cv_solaris_linker = xyes ; then
2N/A TARGET_APPLE_CC=0
2N/A TARGET_SOLARIS_LD=1
2N/A TARGET_IMG_LDSCRIPT=''
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -fno-common"
2N/A TARGET_IMG_LDFLAGS='-Wl,-dn'
2N/A TARGET_IMG_LDFLAGS_AC="-Wl,-dn -Wl,-M${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
2N/A TARGET_IMG_BASE_LDOPT=
2N/Aelse
2N/A TARGET_APPLE_CC=0
2N/A TARGET_SOLARIS_LD=0
2N/A# Use linker script if present, otherwise use builtin -N script.
2N/Aif test -f "${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
2N/A TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
2N/A TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}"
2N/A TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
2N/A TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
2N/Aelse
2N/A TARGET_IMG_LDSCRIPT=
2N/A TARGET_IMG_LDFLAGS='-Wl,-N'
2N/A TARGET_IMG_LDFLAGS_AC='-Wl,-N'
2N/A TARGET_IMG_BASE_LDOPT="-Wl,-Ttext"
2N/Afi
2N/ATARGET_IMG_CFLAGS=
2N/Afi
2N/A
2N/A# For platforms where ELF is not the default link format.
2N/A{ $as_echo "$as_me:$LINENO: checking for command to convert module to ELF format" >&5
2N/A$as_echo_n "checking for command to convert module to ELF format... " >&6; }
2N/Acase "${host_os}" in
2N/A cygwin) TARGET_OBJ2ELF='$(top_builddir)/grub-pe2elf';
2N/A# FIXME: put proper test here
2N/A NEED_REGISTER_FRAME_INFO=1
2N/A ;;
2N/A *) NEED_REGISTER_FRAME_INFO=0 ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: result: $TARGET_OBJ2ELF" >&5
2N/A$as_echo "$TARGET_OBJ2ELF" >&6; }
2N/A
2N/A
2N/A@%:@ Check whether --enable-efiemu was given.
2N/Aif test "${enable_efiemu+set}" = set; then
2N/A enableval=$enable_efiemu;
2N/Afi
2N/A
2N/Aif test x"$enable_efiemu" = xno ; then
2N/A efiemu_excuse="explicitly disabled"
2N/Afi
2N/Aif test x"$target_cpu" != xi386 ; then
2N/A efiemu_excuse="only available on i386"
2N/Afi
2N/Aif test x"$platform" = xefi ; then
2N/A efiemu_excuse="not available on efi"
2N/Afi
2N/Aif test x"$efiemu_excuse" = x ; then
2N/A { $as_echo "$as_me:$LINENO: checking whether options required for efiemu work" >&5
2N/A$as_echo_n "checking whether options required for efiemu work... " >&6; }
2N/Aif test "${grub_cv_cc_efiemu+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A CFLAGS="$CFLAGS -m64 -mcmodel=large -mno-red-zone -nostdlib"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A grub_cv_cc_efiemu=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_cc_efiemu=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_cc_efiemu" >&5
2N/A$as_echo "$grub_cv_cc_efiemu" >&6; }
2N/A if test x$grub_cv_cc_efiemu = xno; then
2N/A efiemu_excuse="cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib"
2N/A fi
2N/Afi
2N/Aif test x"$enable_efiemu" = xyes && test x"$efiemu_excuse" != x ; then
2N/A { { $as_echo "$as_me:$LINENO: error: efiemu runtime was explicitly requested but can't be compiled" >&5
2N/A$as_echo "$as_me: error: efiemu runtime was explicitly requested but can't be compiled" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test x"$efiemu_excuse" = x ; then
2N/Aenable_efiemu=yes
2N/Aelse
2N/Aenable_efiemu=no
2N/Afi
2N/A
2N/A
2N/Aif test "x$target_m32" = x1; then
2N/A # Force 32-bit mode.
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -m32"
2N/A TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m32"
2N/A TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m32"
2N/A TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
2N/A TARGET_MODULE_FORMAT="elf32"
2N/Afi
2N/A
2N/Aif test "x$target_m64" = x1; then
2N/A # Force 64-bit mode.
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -m64"
2N/A TARGET_CCASFLAGS="$TARGET_CCASFLAGS -m64"
2N/A TARGET_CPPFLAGS="$TARGET_CPPFLAGS -m64"
2N/A TARGET_LDFLAGS="$TARGET_LDFLAGS -m64"
2N/A TARGET_MODULE_FORMAT="elf64"
2N/Afi
2N/A
2N/Aif test "$target_cpu"-"$platform" = x86_64-efi; then
2N/A # Use large model to support 4G memory
2N/A { $as_echo "$as_me:$LINENO: checking whether option -mcmodel=large works" >&5
2N/A$as_echo_n "checking whether option -mcmodel=large works... " >&6; }
2N/Aif test "${grub_cv_cc_mcmodel+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A SAVED_CFLAGS=$CFLAGS
2N/A CFLAGS="$CFLAGS -m64 -mcmodel=large"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A grub_cv_cc_mcmodel=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_cc_mcmodel=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_cc_mcmodel" >&5
2N/A$as_echo "$grub_cv_cc_mcmodel" >&6; }
2N/A if test "x$grub_cv_cc_mcmodel" = xno; then
2N/A { { $as_echo "$as_me:$LINENO: error: -mcmodel=large not supported. Upgrade your gcc." >&5
2N/A$as_echo "$as_me: error: -mcmodel=large not supported. Upgrade your gcc." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A else
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -mcmodel=large"
2N/A fi
2N/A
2N/A # EFI writes to stack below %rsp, we must not use the red zone
2N/A { $as_echo "$as_me:$LINENO: checking whether option -mno-red-zone works" >&5
2N/A$as_echo_n "checking whether option -mno-red-zone works... " >&6; }
2N/Aif test "${grub_cv_cc_no_red_zone+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A CFLAGS="$CFLAGS -m64 -mno-red-zone"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A grub_cv_cc_no_red_zone=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_cc_no_red_zone=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_cc_no_red_zone" >&5
2N/A$as_echo "$grub_cv_cc_no_red_zone" >&6; }
2N/A if test "x$grub_cv_cc_no_red_zone" = xno; then
2N/A { { $as_echo "$as_me:$LINENO: error: -mno-red-zone not supported, upgrade your gcc" >&5
2N/A$as_echo "$as_me: error: -mno-red-zone not supported, upgrade your gcc" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -mno-red-zone"
2N/Afi
2N/A
2N/A#
2N/A# Compiler features.
2N/A#
2N/A
2N/A# Need __enable_execute_stack() for nested function trampolines?
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether \`$CC' generates calls to \`__enable_execute_stack()'" >&5
2N/A$as_echo_n "checking whether \`$CC' generates calls to \`__enable_execute_stack()'... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Avoid f (int (*p) (void));
2N/Avoid g (int i)
2N/A{
2N/A int nestedfunc (void) { return i; }
2N/A f (nestedfunc);
2N/A}
2N/A
2N/A_ACEOF
2N/Aif { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
2N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2N/A (eval $ac_try) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; } && test -s conftest.s; then
2N/A true
2N/Aelse
2N/A { { $as_echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
2N/A$as_echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif grep __enable_execute_stack conftest.s >/dev/null 2>&1; then
2N/A NEED_ENABLE_EXECUTE_STACK=1
2N/A { $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/Aelse
2N/A NEED_ENABLE_EXECUTE_STACK=0
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/Arm -f conftest*
2N/A
2N/A
2N/A# Position independent executable.
2N/A
2N/A# Position independent executable.
2N/Apie_possible=yes
2N/A{ $as_echo "$as_me:$LINENO: checking whether \`$CC' has \`-fPIE' as default" >&5
2N/A$as_echo_n "checking whether \`$CC' has \`-fPIE' as default... " >&6; }
2N/A# Is this a reliable test case?
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A#ifdef __PIE__
2N/Aint main() {
2N/A return 0;
2N/A}
2N/A#else
2N/A#error NO __PIE__ DEFINED
2N/A#endif
2N/A
2N/A_ACEOF
2N/A
2N/A# `$CC -c -o ...' might not be portable. But, oh, well... Is calling
2N/A# `ac_compile' like this correct, after all?
2N/Aif eval "$ac_compile -S -o conftest.s" 2> /dev/null; then
2N/A { $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/A # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
2N/A rm -f conftest.s
2N/Aelse
2N/A pie_possible=no
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A# Need that, because some distributions ship compilers that include
2N/A# `-fPIE' in the default specs.
2N/Aif [ x"$pie_possible" = xyes ]; then
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
2N/Afi
2N/A
2N/A# Smashing stack protector.
2N/A
2N/A# Smashing stack protector.
2N/Assp_possible=yes
2N/A{ $as_echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-fstack-protector'" >&5
2N/A$as_echo_n "checking whether \`$CC' accepts \`-fstack-protector'... " >&6; }
2N/A# Is this a reliable test case?
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Avoid foo (void) { volatile char a[8]; a[3]; }
2N/A
2N/A_ACEOF
2N/A# `$CC -c -o ...' might not be portable. But, oh, well... Is calling
2N/A# `ac_compile' like this correct, after all?
2N/Aif eval "$ac_compile -S -fstack-protector -o conftest.s" 2> /dev/null; then
2N/A { $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/A # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
2N/A rm -f conftest.s
2N/Aelse
2N/A ssp_possible=no
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A# Need that, because some distributions ship compilers that include
2N/A# `-fstack-protector' in the default specs.
2N/Aif test "x$ssp_possible" = xyes; then
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -fno-stack-protector"
2N/Afi
2N/A
2N/A# Smashing stack arg probe.
2N/Asap_possible=yes
2N/A{ $as_echo "$as_me:$LINENO: checking whether \`$CC' accepts \`-mstack-arg-probe'" >&5
2N/A$as_echo_n "checking whether \`$CC' accepts \`-mstack-arg-probe'... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Avoid foo (void) { volatile char a[8]; a[3]; }
2N/A
2N/A_ACEOF
2N/Aif eval "$ac_compile -S -mstack-arg-probe -o conftest.s" 2> /dev/null; then
2N/A { $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/A # Should we clear up other files as well, having called `AC_LANG_CONFTEST'?
2N/A rm -f conftest.s
2N/Aelse
2N/A sap_possible=no
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A# Cygwin's GCC uses alloca() to probe the stackframe on static
2N/A# stack allocations above some threshold.
2N/Aif test x"$sap_possible" = xyes; then
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -mno-stack-arg-probe"
2N/Afi
2N/A
2N/A@%:@ Check whether --enable-werror was given.
2N/Aif test "${enable_werror+set}" = set; then
2N/A enableval=$enable_werror;
2N/Afi
2N/A
2N/Aif test x"$enable_werror" != xno ; then
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -Werror"
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether target compiler uses gas as its assembler" >&5
2N/A$as_echo_n "checking whether target compiler uses gas as its assembler... " >&6; }
2N/Aif test "${grub_cv_prog_target_cc_uses_gas+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aasm (".code16; .globl start; .type start, \"function\"; start:");
2N/Aint main (void);
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A grub_cv_prog_target_cc_uses_gas=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_prog_target_cc_uses_gas=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc_uses_gas" >&5
2N/A$as_echo "$grub_cv_prog_target_cc_uses_gas" >&6; }
2N/A
2N/A
2N/Aif test "x$grub_cv_prog_target_cc_uses_gas" = xno; then
2N/A if test -n "$ac_tool_prefix"; then
2N/A # Extract the first word of "${ac_tool_prefix}gas", so it can be a program name with args.
2N/Aset dummy ${ac_tool_prefix}gas; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_TARGET_AS+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$TARGET_AS"; then
2N/A ac_cv_prog_TARGET_AS="$TARGET_AS" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_TARGET_AS="${ac_tool_prefix}gas"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/ATARGET_AS=$ac_cv_prog_TARGET_AS
2N/Aif test -n "$TARGET_AS"; then
2N/A { $as_echo "$as_me:$LINENO: result: $TARGET_AS" >&5
2N/A$as_echo "$TARGET_AS" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif test -z "$ac_cv_prog_TARGET_AS"; then
2N/A ac_ct_TARGET_AS=$TARGET_AS
2N/A # Extract the first word of "gas", so it can be a program name with args.
2N/Aset dummy gas; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_ac_ct_TARGET_AS+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$ac_ct_TARGET_AS"; then
2N/A ac_cv_prog_ac_ct_TARGET_AS="$ac_ct_TARGET_AS" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_ac_ct_TARGET_AS="gas"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/Aac_ct_TARGET_AS=$ac_cv_prog_ac_ct_TARGET_AS
2N/Aif test -n "$ac_ct_TARGET_AS"; then
2N/A { $as_echo "$as_me:$LINENO: result: $ac_ct_TARGET_AS" >&5
2N/A$as_echo "$ac_ct_TARGET_AS" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A if test "x$ac_ct_TARGET_AS" = x; then
2N/A TARGET_AS="{ { $as_echo "$as_me:$LINENO: error: GNU assembler could not be found in your $PATH." >&5
2N/A$as_echo "$as_me: error: GNU assembler could not be found in your $PATH." >&2;}
2N/A { (exit 1); exit 1; }; }"
2N/A else
2N/A case $cross_compiling:$ac_tool_warned in
2N/Ayes:)
2N/A{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2N/A$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2N/Aac_tool_warned=yes ;;
2N/Aesac
2N/A TARGET_AS=$ac_ct_TARGET_AS
2N/A fi
2N/Aelse
2N/A TARGET_AS="$ac_cv_prog_TARGET_AS"
2N/Afi
2N/A
2N/A
2N/A TARGET_CC_USES_GAS=0
2N/Aelse
2N/A TARGET_CC_USES_GAS=1
2N/Afi
2N/A
2N/A
2N/ATARGET_CPP="$TARGET_CC -E"
2N/Aif test x$TARGET_CC_USES_GAS = x0; then
2N/A CCAS='$(top_builddir)/ccas_wrap/ccas_wrap $(TARGET_CC) $(TARGET_AS)'
2N/Aelse
2N/A if test x"$CCAS" = x; then
2N/A CCAS='$(TARGET_CC)'
2N/A fi
2N/Afi
2N/A
2N/Aif test x"$TARGET_CCAS" = x; then
2N/ATARGET_CCAS='$(CCAS)'
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A# Set them to their new values for the tests below.
2N/ACC="$TARGET_CC"
2N/Aif test "x$TARGET_APPLE_CC" = x1 ; then
2N/ACFLAGS="$TARGET_CFLAGS -nostdlib -Wno-error"
2N/Aelse
2N/ACFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100 -Wno-error"
2N/Afi
2N/ACPPFLAGS="$TARGET_CPPFLAGS"
2N/Aif test x$target_cpu = xi386 || test x$target_cpu = xx86_64 ; then
2N/ALIBS=
2N/Aelse
2N/ALIBS=-lgcc
2N/Afi
2N/A
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
2N/A$as_echo_n "checking if C symbols get an underscore after compilation... " >&6; }
2N/Aif test "${grub_cv_asm_uscore+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat > conftest.c <<\EOF
2N/Aint func (int *);
2N/Aint
2N/Afunc (int *list)
2N/A{
2N/A *list = 0;
2N/A return *list;
2N/A}
2N/AEOF
2N/A
2N/Aif { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
2N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2N/A (eval $ac_try) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; } && test -s conftest.s; then
2N/A true
2N/Aelse
2N/A { { $as_echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
2N/A$as_echo "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/Aif $EGREP '(^|^_[:alnum])_func' conftest.s >/dev/null 2>&1; then
2N/A HAVE_ASM_USCORE=1
2N/A grub_cv_asm_uscore=yes
2N/Aelse
2N/A HAVE_ASM_USCORE=0
2N/A grub_cv_asm_uscore=no
2N/Afi
2N/A
2N/Arm -f conftest*
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
2N/A$as_echo "$grub_cv_asm_uscore" >&6; }
2N/A
2N/Aif test x$grub_cv_asm_uscore = xyes; then
2N/ACFLAGS="$CFLAGS -Wl,--defsym,_abort=_main"
2N/Aelse
2N/ACFLAGS="$CFLAGS -Wl,--defsym,abort=main"
2N/Afi
2N/A
2N/A# Check for libgcc symbols
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/Afor ac_func in __bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2 _restgpr_14_x __ia64_trampoline __udivsi3 __umoddi3 __udivdi3 __divsi3 __modsi3 __umodsi3 __moddi3 __divdi3 __ctzdi2 __ctzsi2
2N/Ado
2N/Aas_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
2N/A$as_echo_n "checking for $ac_func... " >&6; }
2N/Aif { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
2N/A For example, HP-UX 11i <limits.h> declares gettimeofday. */
2N/A#define $ac_func innocuous_$ac_func
2N/A
2N/A/* System header to define __stub macros and hopefully few prototypes,
2N/A which can conflict with char $ac_func (); below.
2N/A Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2N/A <limits.h> exists even on freestanding compilers. */
2N/A
2N/A#ifdef __STDC__
2N/A# include <limits.h>
2N/A#else
2N/A# include <assert.h>
2N/A#endif
2N/A
2N/A#undef $ac_func
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar $ac_func ();
2N/A/* The GNU C library defines this for functions which it implements
2N/A to always fail with ENOSYS. Some functions are actually named
2N/A something starting with __ and the normal name is an alias. */
2N/A#if defined __stub_$ac_func || defined __stub___$ac_func
2N/Achoke me
2N/A#endif
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn $ac_func ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A eval "$as_ac_var=yes"
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A eval "$as_ac_var=no"
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aas_val=`eval 'as_val=${'$as_ac_var'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Afi
2N/Adone
2N/A
2N/A
2N/Aif test "x$TARGET_APPLE_CC" = x1 ; then
2N/ACFLAGS="$TARGET_CFLAGS -nostdlib"
2N/Aelif test x$grub_cv_solaris_linker = xyes ; then
2N/ACFLAGS="$TARGET_CFLAGS -nostdlib"
2N/Aelse
2N/ACFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,___main=0x8100"
2N/Afi
2N/ALIBS=""
2N/A
2N/A# Defined in acinclude.m4.
2N/A{ $as_echo "$as_me:$LINENO: checking whether target compiler is working" >&5
2N/A$as_echo_n "checking whether target compiler is working... " >&6; }
2N/Aif test "${grub_cv_prog_target_cc+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aasm (".globl start; start:");
2N/Aint main (void);
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A grub_cv_prog_target_cc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_prog_target_cc=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/A
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_prog_target_cc" >&5
2N/A$as_echo "$grub_cv_prog_target_cc" >&6; }
2N/A
2N/Aif test "x$grub_cv_prog_target_cc" = xno; then
2N/A { { $as_echo "$as_me:$LINENO: error: cannot compile for the target" >&5
2N/A$as_echo "$as_me: error: cannot compile for the target" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/A
2N/Aif test "x$TARGET_APPLE_CC" != x1 ; then
2N/A{ $as_echo "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
2N/A$as_echo_n "checking whether ${OBJCOPY} works for absolute addresses... " >&6; }
2N/Aif test "${grub_cv_prog_objcopy_absolute+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat > conftest.c <<\EOF
2N/Avoid cmain (void);
2N/Avoid
2N/Acmain (void)
2N/A{
2N/A *((int *) 0x1000) = 2;
2N/A}
2N/AEOF
2N/A
2N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2N/A (eval $ac_compile) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && test -s conftest.o; then :
2N/Aelse
2N/A { { $as_echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
2N/A$as_echo "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Agrub_cv_prog_objcopy_absolute=yes
2N/Afor link_addr in 0x2000 0x8000 0x7C00; do
2N/A
2N/A if test x$grub_cv_solaris_linker = xyes ; then
2N/A
2N/Acat > conftest.map <<EOF
2N/A text = P${link_addr} ;
2N/AEOF
2N/A if { ac_try='${CC-cc} ${CFLAGS} -nostdlib -Wl,-Mconftest.map conftest.o -o conftest.exec'
2N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2N/A (eval $ac_try) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then :
2N/A else
2N/A { { $as_echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
2N/A$as_echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
2N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2N/A (eval $ac_try) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then :
2N/A else
2N/A { { $as_echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
2N/A$as_echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A
2N/A else
2N/A
2N/A if { ac_try='${CC-cc} ${CFLAGS} -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},$link_addr conftest.o -o conftest.exec'
2N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2N/A (eval $ac_try) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then :
2N/A else
2N/A { { $as_echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
2N/A$as_echo "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A if { ac_try='${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest'
2N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2N/A (eval $ac_try) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then :
2N/A else
2N/A { { $as_echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
2N/A$as_echo "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A
2N/A fi
2N/A
2N/A if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
2N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2N/A (eval $ac_try) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; }; then
2N/A mv -f conftest conftest.old
2N/A else
2N/A grub_cv_prog_objcopy_absolute=no
2N/A break
2N/A fi
2N/A
2N/Adone
2N/Arm -f conftest*
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
2N/A$as_echo "$grub_cv_prog_objcopy_absolute" >&6; }
2N/A
2N/Aif test "x$grub_cv_prog_objcopy_absolute" = xno; then
2N/A { { $as_echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
2N/A$as_echo "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: checking whether linker accepts --build-id=none" >&5
2N/A$as_echo_n "checking whether linker accepts --build-id=none... " >&6; }
2N/Aif test "${grub_cv_prog_ld_build_id_none+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A save_LDFLAGS="$LDFLAGS"
2N/ALDFLAGS="$LDFLAGS -Wl,--build-id=none"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A grub_cv_prog_ld_build_id_none=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_prog_ld_build_id_none=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALDFLAGS="$save_LDFLAGS"
2N/A
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_prog_ld_build_id_none" >&5
2N/A$as_echo "$grub_cv_prog_ld_build_id_none" >&6; }
2N/A
2N/Aif test "x$grub_cv_prog_ld_build_id_none" = xyes; then
2N/A TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none"
2N/Afi
2N/A
2N/Aif test "x$target_cpu" = xi386; then
2N/A if test "$platform" != emu && test "x$TARGET_APPLE_CC" != x1 ; then
2N/A if test ! -z "$TARGET_IMG_LDSCRIPT"; then
2N/A if test x$grub_cv_solaris_linker = xyes ; then
2N/A # Check symbols provided by linker script.
2N/A CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC}"
2N/A else
2N/A # Check symbols provided by linker script.
2N/A CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC} ${TARGET_IMG_BASE_LDOPT},8000 -Wl,--defsym,___main=0x8100"
2N/A fi
2N/A fi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
2N/A$as_echo_n "checking if __bss_start is defined by the compiler... " >&6; }
2N/Aif test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Aasm ("incl __bss_start")
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A grub_cv_check_uscore_uscore_bss_start_symbol=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_check_uscore_uscore_bss_start_symbol=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
2N/A$as_echo "$grub_cv_check_uscore_uscore_bss_start_symbol" >&6; }
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
2N/A$as_echo_n "checking if edata is defined by the compiler... " >&6; }
2N/Aif test "${grub_cv_check_edata_symbol+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Aasm ("incl edata")
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A grub_cv_check_edata_symbol=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_check_edata_symbol=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
2N/A$as_echo "$grub_cv_check_edata_symbol" >&6; }
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
2N/A$as_echo_n "checking if _edata is defined by the compiler... " >&6; }
2N/Aif test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Aasm ("incl _edata")
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A grub_cv_check_uscore_edata_symbol=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_check_uscore_edata_symbol=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
2N/A$as_echo "$grub_cv_check_uscore_edata_symbol" >&6; }
2N/A
2N/Aif test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
2N/A BSS_START_SYMBOL=__bss_start
2N/Aelif test "x$grub_cv_check_edata_symbol" = xyes; then
2N/A BSS_START_SYMBOL=edata
2N/Aelif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
2N/A BSS_START_SYMBOL=_edata
2N/Aelse
2N/A { { $as_echo "$as_me:$LINENO: error: none of __bss_start, edata or _edata is defined" >&5
2N/A$as_echo "$as_me: error: none of __bss_start, edata or _edata is defined" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking if end is defined by the compiler" >&5
2N/A$as_echo_n "checking if end is defined by the compiler... " >&6; }
2N/Aif test "${grub_cv_check_end_symbol+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Aasm ("incl end")
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A grub_cv_check_end_symbol=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_check_end_symbol=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
2N/A$as_echo "$grub_cv_check_end_symbol" >&6; }
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
2N/A$as_echo_n "checking if _end is defined by the compiler... " >&6; }
2N/Aif test "${grub_cv_check_uscore_end_symbol+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/Aint
2N/Amain (void)
2N/A{
2N/Aasm ("incl _end")
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A grub_cv_check_uscore_end_symbol=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_check_uscore_end_symbol=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
2N/A$as_echo "$grub_cv_check_uscore_end_symbol" >&6; }
2N/A
2N/Aif test "x$grub_cv_check_end_symbol" = xyes; then
2N/A END_SYMBOL=end
2N/Aelif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
2N/A END_SYMBOL=_end
2N/Aelse
2N/A { { $as_echo "$as_me:$LINENO: error: neither end nor _end is defined" >&5
2N/A$as_echo "$as_me: error: neither end nor _end is defined" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/A fi
2N/A CFLAGS="$TARGET_CFLAGS"
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
2N/A$as_echo_n "checking whether addr32 must be in the same line as the instruction... " >&6; }
2N/Aif test "${grub_cv_i386_asm_prefix_requirement+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat > conftest.s <<\EOF
2N/A .code16
2N/Al1: addr32 movb %al, l1
2N/AEOF
2N/A
2N/Aif { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
2N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2N/A (eval $ac_try) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; } && test -s conftest.o; then
2N/A grub_cv_i386_asm_prefix_requirement=yes
2N/Aelif test "x$grub_cv_solaris_linker" = xyes; then
2N/A # XXX Hack Alert XXX
2N/A # Force this to be true on Solaris since we always use the latest GAS
2N/A grub_cv_i386_asm_prefix_requirement=yes
2N/Aelse
2N/A grub_cv_i386_asm_prefix_requirement=no
2N/Afi
2N/A
2N/Arm -f conftest*
2N/Afi
2N/A
2N/A
2N/Aif test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
2N/A grub_tmp_addr32="addr32"
2N/A grub_tmp_data32="data32"
2N/Aelse
2N/A grub_tmp_addr32="addr32;"
2N/A grub_tmp_data32="data32;"
2N/Afi
2N/A
2N/AADDR32=$grub_tmp_addr32
2N/ADATA32=$grub_tmp_data32
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_i386_asm_prefix_requirement" >&5
2N/A$as_echo "$grub_cv_i386_asm_prefix_requirement" >&6; }
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
2N/A$as_echo_n "checking for .code16 addr32 assembler support... " >&6; }
2N/Aif test "${grub_cv_i386_asm_addr32+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A cat > conftest.s.in <<\EOF
2N/A .code16
2N/Al1: @ADDR32@ movb %al, l1
2N/AEOF
2N/A
2N/Aif test "x$grub_cv_i386_asm_prefix_requirement" = xyes; then
2N/A sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
2N/Aelse
2N/A sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
2N/Afi
2N/A
2N/Aif { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
2N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2N/A (eval $ac_try) 2>&5
2N/A ac_status=$?
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); }; } && test -s conftest.o; then
2N/A grub_cv_i386_asm_addr32=yes
2N/Aelse
2N/A grub_cv_i386_asm_addr32=no
2N/Afi
2N/A
2N/Arm -f conftest*
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_i386_asm_addr32" >&5
2N/A$as_echo "$grub_cv_i386_asm_addr32" >&6; }
2N/Afi
2N/A
2N/Aif test "$platform" != emu; then
2N/A{ $as_echo "$as_me:$LINENO: checking whether -nostdinc -isystem works" >&5
2N/A$as_echo_n "checking whether -nostdinc -isystem works... " >&6; }
2N/Aif test "${grub_cv_cc_isystem+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A SAVED_CPPFLAGS="$CPPFLAGS"
2N/A CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdarg.h>
2N/Aint va_arg_func (int fixed, va_list args);
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A grub_cv_cc_isystem=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_cc_isystem=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A CPPFLAGS="$SAVED_CPPFLAGS"
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_cc_isystem" >&5
2N/A$as_echo "$grub_cv_cc_isystem" >&6; }
2N/A
2N/Aif test x"$grub_cv_cc_isystem" = xyes ; then
2N/A TARGET_CPPFLAGS="$TARGET_CPPFLAGS -nostdinc -isystem `$TARGET_CC -print-file-name=include`"
2N/Afi
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether -Wno-trampolines work" >&5
2N/A$as_echo_n "checking whether -Wno-trampolines work... " >&6; }
2N/Aif test "${grub_cv_cc_wnotrampolines+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A
2N/A SAVED_CFLAGS="$CFLAGS"
2N/A # Test for -Wtrampolines rather than -Wno-trampolines to reduce confusion
2N/A # in the event of later failures (since -Wno-* is always accepted, but
2N/A # produces a diagnostic if something else is wrong).
2N/A CFLAGS="$TARGET_CFLAGS -Wtrampolines"
2N/A cat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A#include <stdarg.h>
2N/Aint va_arg_func (int fixed, va_list args);
2N/Aint
2N/Amain (void)
2N/A{
2N/A
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A grub_cv_cc_wnotrampolines=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A grub_cv_cc_wnotrampolines=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A CFLAGS="$SAVED_CFLAGS"
2N/A
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $grub_cv_cc_wnotrampolines" >&5
2N/A$as_echo "$grub_cv_cc_wnotrampolines" >&6; }
2N/A
2N/Aif test x"$grub_cv_cc_wnotrampolines" = xyes ; then
2N/A TARGET_CFLAGS="$TARGET_CFLAGS -Wno-trampolines"
2N/Afi
2N/A
2N/A# Restore the flags.
2N/ACC="$tmp_CC"
2N/ACFLAGS="$tmp_CFLAGS"
2N/ACPPFLAGS="$tmp_CPPFLAGS"
2N/ALDFLAGS="$tmp_LDFLAGS"
2N/ALIBS="$tmp_LIBS"
2N/A
2N/Aif test x$TARGET_SOLARIS_LD = x1 ; then
2N/ACPPFLAGS="$CPPFLAGS -I/usr/sfw/include"
2N/ALDFLAGS="$LDFLAGS -L/usr/sfw/lib"
2N/ANM=/usr/sfw/bin/gnm
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A#
2N/A# Check for options.
2N/A#
2N/A
2N/A# Memory manager debugging.
2N/A@%:@ Check whether --enable-mm-debug was given.
2N/Aif test "${enable_mm_debug+set}" = set; then
2N/A enableval=$enable_mm_debug;
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define MM_DEBUG 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/A
2N/A@%:@ Check whether --enable-cache-stats was given.
2N/Aif test "${enable_cache_stats+set}" = set; then
2N/A enableval=$enable_cache_stats;
2N/Afi
2N/A
2N/A
2N/Aif test x$enable_cache_stats = xyes; then
2N/A DISK_CACHE_STATS=1
2N/Aelse
2N/A DISK_CACHE_STATS=0
2N/Afi
2N/A
2N/A
2N/A@%:@ Check whether --enable-grub-emu-usb was given.
2N/Aif test "${enable_grub_emu_usb+set}" = set; then
2N/A enableval=$enable_grub_emu_usb;
2N/Afi
2N/A
2N/A
2N/A@%:@ Check whether --enable-grub-emu-sdl was given.
2N/Aif test "${enable_grub_emu_sdl+set}" = set; then
2N/A enableval=$enable_grub_emu_sdl;
2N/Afi
2N/A
2N/A
2N/A@%:@ Check whether --enable-grub-emu-pci was given.
2N/Aif test "${enable_grub_emu_pci+set}" = set; then
2N/A enableval=$enable_grub_emu_pci;
2N/Afi
2N/A
2N/A
2N/Aif test "$platform" = emu; then
2N/A missing_ncurses=
2N/A# Check for curses libraries.
2N/A if [ x"$host_kernel" = xsolaris ]; then
2N/A SAVED_LDFLAGS="$LDFLAGS"
2N/A LDFLAGS="-L/opt/sfw/lib $LDFLAGS"
2N/A { $as_echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
2N/A$as_echo_n "checking for wgetch in -lncurses... " >&6; }
2N/Aif test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lncurses $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar wgetch ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn wgetch ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_ncurses_wgetch=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_ncurses_wgetch=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
2N/A$as_echo "$ac_cv_lib_ncurses_wgetch" >&6; }
2N/Aif test "x$ac_cv_lib_ncurses_wgetch" = x""yes; then
2N/A LIBCURSES="-L/usr/gnu/lib -lncurses"
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
2N/A$as_echo_n "checking for wgetch in -lcurses... " >&6; }
2N/Aif test "${ac_cv_lib_curses_wgetch+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lcurses $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar wgetch ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn wgetch ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_curses_wgetch=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_curses_wgetch=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
2N/A$as_echo "$ac_cv_lib_curses_wgetch" >&6; }
2N/Aif test "x$ac_cv_lib_curses_wgetch" = x""yes; then
2N/A LIBCURSES="-lcurses"
2N/Aelse
2N/A missing_ncurses=true
2N/Afi
2N/A
2N/Afi
2N/A
2N/A LDFLAGS="$SAVED_LDFLAGS"
2N/A else
2N/A { $as_echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
2N/A$as_echo_n "checking for wgetch in -lncurses... " >&6; }
2N/Aif test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lncurses $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar wgetch ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn wgetch ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_ncurses_wgetch=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_ncurses_wgetch=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
2N/A$as_echo "$ac_cv_lib_ncurses_wgetch" >&6; }
2N/Aif test "x$ac_cv_lib_ncurses_wgetch" = x""yes; then
2N/A LIBCURSES="-lncurses"
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
2N/A$as_echo_n "checking for wgetch in -lcurses... " >&6; }
2N/Aif test "${ac_cv_lib_curses_wgetch+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lcurses $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar wgetch ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn wgetch ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_curses_wgetch=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_curses_wgetch=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
2N/A$as_echo "$ac_cv_lib_curses_wgetch" >&6; }
2N/Aif test "x$ac_cv_lib_curses_wgetch" = x""yes; then
2N/A LIBCURSES="-lcurses"
2N/Aelse
2N/A missing_ncurses=true
2N/Afi
2N/A
2N/Afi
2N/A
2N/A fi
2N/A
2N/Aif [ x"$missing_ncurses" = x ]; then
2N/A # Check for headers.
2N/A
2N/Afor ac_header in ncurses/curses.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A
2N/Afor ac_header in ncurses.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A
2N/Afor ac_header in curses.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A missing_ncurses=true
2N/Afi
2N/A
2N/Adone
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/Afi
2N/A
2N/Adone
2N/A
2N/Afi
2N/Aif test x"$missing_ncurses" = xtrue ; then
2N/A { { $as_echo "$as_me:$LINENO: error: grub-emu can't be compiled without ncurses" >&5
2N/A$as_echo "$as_me: error: grub-emu can't be compiled without ncurses" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/Aif test x"$enable_grub_emu_usb" != xyes ; then
2N/A grub_emu_usb_excuse="not enabled"
2N/Afi
2N/A
2N/Aif test x"$enable_grub_emu_pci" = xyes ; then
2N/A grub_emu_usb_excuse="conflicts with PCI support"
2N/Afi
2N/A
2N/Aif [ x"$grub_emu_usb_excuse" = x ]; then
2N/A # Check for libusb libraries.
2N/A{ $as_echo "$as_me:$LINENO: checking for usb_claim_interface in -lusb" >&5
2N/A$as_echo_n "checking for usb_claim_interface in -lusb... " >&6; }
2N/Aif test "${ac_cv_lib_usb_usb_claim_interface+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lusb $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar usb_claim_interface ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn usb_claim_interface ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_usb_usb_claim_interface=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_usb_usb_claim_interface=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_claim_interface" >&5
2N/A$as_echo "$ac_cv_lib_usb_usb_claim_interface" >&6; }
2N/Aif test "x$ac_cv_lib_usb_usb_claim_interface" = x""yes; then
2N/A LIBUSB="-lusb"
2N/Aelse
2N/A grub_emu_usb_excuse="need libusb library"
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif [ x"$grub_emu_usb_excuse" = x ]; then
2N/A # Check for headers.
2N/A
2N/Afor ac_header in usb.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A grub_emu_usb_excuse="need libusb headers"
2N/Afi
2N/A
2N/Adone
2N/A
2N/Afi
2N/Aif test x"$enable_grub_emu_usb" = xyes && test x"$grub_emu_usb_excuse" != x ; then
2N/A { { $as_echo "$as_me:$LINENO: error: USB support for grub-emu was explicitly requested but can't be compiled" >&5
2N/A$as_echo "$as_me: error: USB support for grub-emu was explicitly requested but can't be compiled" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test x"$grub_emu_usb_excuse" = x ; then
2N/Aenable_grub_emu_usb=yes
2N/Aelse
2N/Aenable_grub_emu_usb=no
2N/Afi
2N/A
2N/Aif test x"$enable_grub_emu_sdl" = xno ; then
2N/A grub_emu_sdl_excuse="explicitely disabled"
2N/Afi
2N/Aif [ x"$grub_emu_sdl_excuse" = x ]; then
2N/A # Check for libSDL libraries.
2N/A{ $as_echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
2N/A$as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
2N/Aif test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lSDL $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar SDL_Init ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn SDL_Init ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_SDL_SDL_Init=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_SDL_SDL_Init=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5
2N/A$as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
2N/Aif test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then
2N/A LIBSDL="-lSDL"
2N/Aelse
2N/A grub_emu_sdl_excuse="libSDL libraries are required to build \`grub-emu' with SDL support"
2N/Afi
2N/A
2N/A
2N/Afi
2N/A
2N/Aif [ x"$grub_emu_sdl_excuse" = x ]; then
2N/A # Check for headers.
2N/A
2N/Afor ac_header in SDL/SDL.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A grub_emu_sdl_excuse="libSDL header file is required to build \`grub-emu' with SDL support"
2N/Afi
2N/A
2N/Adone
2N/A
2N/Afi
2N/A
2N/Aif test x"enable_grub_emu_sdl" = xyes && test x"$grub_emu_sdl_excuse" != x ; then
2N/A { { $as_echo "$as_me:$LINENO: error: SDL support for grub-emu was explicitely requested but can't be compiled" >&5
2N/A$as_echo "$as_me: error: SDL support for grub-emu was explicitely requested but can't be compiled" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test x"$grub_emu_sdl_excuse" = x ; then
2N/Aenable_grub_emu_sdl=yes
2N/Aelse
2N/Aenable_grub_emu_sdl=no
2N/Afi
2N/A
2N/Aif test x"$enable_grub_emu_pci" != xyes ; then
2N/A grub_emu_pci_excuse="not enabled"
2N/Afi
2N/A
2N/Aif test x"$enable_grub_emu_usb" = xyes ; then
2N/A grub_emu_pci_excuse="conflicts with USB support"
2N/Afi
2N/A
2N/Aif [ x"$grub_emu_pci_excuse" = x ]; then
2N/A # Check for libpci libraries.
2N/A { $as_echo "$as_me:$LINENO: checking for pci_system_init in -lpciaccess" >&5
2N/A$as_echo_n "checking for pci_system_init in -lpciaccess... " >&6; }
2N/Aif test "${ac_cv_lib_pciaccess_pci_system_init+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lpciaccess $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar pci_system_init ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn pci_system_init ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_pciaccess_pci_system_init=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_pciaccess_pci_system_init=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pciaccess_pci_system_init" >&5
2N/A$as_echo "$ac_cv_lib_pciaccess_pci_system_init" >&6; }
2N/Aif test "x$ac_cv_lib_pciaccess_pci_system_init" = x""yes; then
2N/A LIBPCIACCESS="-lpciaccess"
2N/Aelse
2N/A grub_emu_pci_excuse="need libpciaccess library"
2N/Afi
2N/A
2N/A
2N/Afi
2N/Aif [ x"$grub_emu_pci_excuse" = x ]; then
2N/A # Check for headers.
2N/A
2N/Afor ac_header in pci/pci.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A grub_emu_pci_excuse="need libpciaccess headers"
2N/Afi
2N/A
2N/Adone
2N/A
2N/Afi
2N/A
2N/Aif test x"$grub_emu_pci_excuse" = x ; then
2N/Aenable_grub_emu_pci=yes
2N/Aelse
2N/A
2N/Aenable_grub_emu_pci=no
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/Afi
2N/A
2N/A@%:@ Check whether --enable-grub-mkfont was given.
2N/Aif test "${enable_grub_mkfont+set}" = set; then
2N/A enableval=$enable_grub_mkfont;
2N/Afi
2N/A
2N/Aif test x"$enable_grub_mkfont" = xno ; then
2N/A grub_mkfont_excuse="explicitly disabled"
2N/Afi
2N/A
2N/Aif test x"$grub_mkfont_excuse" = x ; then
2N/A # Check for freetype libraries.
2N/A for ac_prog in freetype-config
2N/Ado
2N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
2N/Aset dummy $ac_prog; ac_word=$2
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2N/A$as_echo_n "checking for $ac_word... " >&6; }
2N/Aif test "${ac_cv_prog_FREETYPE+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A if test -n "$FREETYPE"; then
2N/A ac_cv_prog_FREETYPE="$FREETYPE" # Let the user override the test.
2N/Aelse
2N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A for ac_exec_ext in '' $ac_executable_extensions; do
2N/A if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2N/A ac_cv_prog_FREETYPE="$ac_prog"
2N/A $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2N/A break 2
2N/A fi
2N/Adone
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/Afi
2N/Afi
2N/AFREETYPE=$ac_cv_prog_FREETYPE
2N/Aif test -n "$FREETYPE"; then
2N/A { $as_echo "$as_me:$LINENO: result: $FREETYPE" >&5
2N/A$as_echo "$FREETYPE" >&6; }
2N/Aelse
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/A
2N/A
2N/A test -n "$FREETYPE" && break
2N/Adone
2N/A
2N/A if test "x$FREETYPE" = x ; then
2N/A grub_mkfont_excuse="need freetype2 library"
2N/A fi
2N/Afi
2N/A
2N/Aif test x"$grub_mkfont_excuse" = x ; then
2N/A # Check for freetype libraries.
2N/A freetype_cflags=`freetype-config --cflags`
2N/A freetype_libs=`freetype-config --libs`
2N/A SAVED_CPPFLAGS="$CPPFLAGS"
2N/A CPPFLAGS="$CPPFLAGS $freetype_cflags"
2N/A
2N/Afor ac_header in ft2build.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A grub_mkfont_excuse="need freetype2 headers"
2N/Afi
2N/A
2N/Adone
2N/A
2N/A CPPFLAGS="$SAVED_CPPFLAGS"
2N/Afi
2N/A
2N/Aif test x"$enable_grub_mkfont" = xyes && test x"$grub_mkfont_excuse" != x ; then
2N/A { { $as_echo "$as_me:$LINENO: error: grub-mkfont was explicitly requested but can't be compiled" >&5
2N/A$as_echo "$as_me: error: grub-mkfont was explicitly requested but can't be compiled" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test x"$grub_mkfont_excuse" = x ; then
2N/Aenable_grub_mkfont=yes
2N/Aelse
2N/Aenable_grub_mkfont=no
2N/Afi
2N/Aif test x"$enable_grub_mkfont" = xno && test "x$platform" = xloongson; then
2N/A { { $as_echo "$as_me:$LINENO: error: loongson port needs grub-mkfont" >&5
2N/A$as_echo "$as_me: error: loongson port needs grub-mkfont" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A@%:@ Check whether --enable-grub-mount was given.
2N/Aif test "${enable_grub_mount+set}" = set; then
2N/A enableval=$enable_grub_mount;
2N/Afi
2N/A
2N/Aif test x"$enable_grub_mount" = xno ; then
2N/A grub_mount_excuse="explicitly disabled"
2N/Afi
2N/A
2N/Aif test x"$grub_mount_excuse" = x ; then
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for fuse_main_real in -lfuse" >&5
2N/A$as_echo_n "checking for fuse_main_real in -lfuse... " >&6; }
2N/Aif test "${ac_cv_lib_fuse_fuse_main_real+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lfuse $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar fuse_main_real ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn fuse_main_real ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_fuse_fuse_main_real=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_fuse_fuse_main_real=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fuse_fuse_main_real" >&5
2N/A$as_echo "$ac_cv_lib_fuse_fuse_main_real" >&6; }
2N/Aif test "x$ac_cv_lib_fuse_fuse_main_real" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_LIBFUSE 1
2N/A_ACEOF
2N/A
2N/A LIBS="-lfuse $LIBS"
2N/A
2N/Aelse
2N/A grub_mount_excuse="need FUSE library"
2N/Afi
2N/A
2N/Afi
2N/A
2N/Aif test x"$grub_mount_excuse" = x ; then
2N/A # Check for fuse headers.
2N/A SAVED_CPPFLAGS="$CPPFLAGS"
2N/A CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26"
2N/A
2N/Afor ac_header in fuse/fuse.h
2N/Ado
2N/Aas_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
2N/A$as_echo_n "checking $ac_header usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
2N/A$as_echo_n "checking $ac_header presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <$ac_header>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
2N/A$as_echo_n "checking for $ac_header... " >&6; }
2N/Aif { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A eval "$as_ac_Header=\$ac_header_preproc"
2N/Afi
2N/Aac_res=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2N/A$as_echo "$ac_res" >&6; }
2N/A
2N/Afi
2N/Aas_val=`eval 'as_val=${'$as_ac_Header'}
2N/A $as_echo "$as_val"'`
2N/A if test "x$as_val" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
2N/A_ACEOF
2N/A
2N/Aelse
2N/A grub_mount_excuse="need FUSE headers"
2N/Afi
2N/A
2N/Adone
2N/A
2N/A CPPFLAGS="$SAVED_CPPFLAGS"
2N/Afi
2N/A
2N/Aif test x"$enable_grub_mount" = xyes && test x"$grub_mount_excuse" != x ; then
2N/A { { $as_echo "$as_me:$LINENO: error: grub-mount was explicitly requested but can't be compiled" >&5
2N/A$as_echo "$as_me: error: grub-mount was explicitly requested but can't be compiled" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test x"$grub_mount_excuse" = x ; then
2N/Aenable_grub_mount=yes
2N/Aelse
2N/Aenable_grub_mount=no
2N/Afi
2N/A
2N/A
2N/A@%:@ Check whether --enable-device-mapper was given.
2N/Aif test "${enable_device_mapper+set}" = set; then
2N/A enableval=$enable_device_mapper;
2N/Afi
2N/A
2N/Aif test x"$enable_device_mapper" = xno ; then
2N/A device_mapper_excuse="explicitly disabled"
2N/Afi
2N/A
2N/Aif test x"$device_mapper_excuse" = x ; then
2N/A # Check for device-mapper header.
2N/A if test "${ac_cv_header_libdevmapper_h+set}" = set; then
2N/A { $as_echo "$as_me:$LINENO: checking for libdevmapper.h" >&5
2N/A$as_echo_n "checking for libdevmapper.h... " >&6; }
2N/Aif test "${ac_cv_header_libdevmapper_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdevmapper_h" >&5
2N/A$as_echo "$ac_cv_header_libdevmapper_h" >&6; }
2N/Aelse
2N/A # Is the header compilable?
2N/A{ $as_echo "$as_me:$LINENO: checking libdevmapper.h usability" >&5
2N/A$as_echo_n "checking libdevmapper.h usability... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A$ac_includes_default
2N/A@%:@include <libdevmapper.h>
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext
2N/Aif { (ac_try="$ac_compile"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_compile") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest.$ac_objext; then
2N/A ac_header_compiler=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_compiler=no
2N/Afi
2N/A
2N/Arm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2N/A$as_echo "$ac_header_compiler" >&6; }
2N/A
2N/A# Is the header present?
2N/A{ $as_echo "$as_me:$LINENO: checking libdevmapper.h presence" >&5
2N/A$as_echo_n "checking libdevmapper.h presence... " >&6; }
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A@%:@include <libdevmapper.h>
2N/A_ACEOF
2N/Aif { (ac_try="$ac_cpp conftest.$ac_ext"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } >/dev/null && {
2N/A test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A }; then
2N/A ac_header_preproc=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_header_preproc=no
2N/Afi
2N/A
2N/Arm -f conftest.err conftest.$ac_ext
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2N/A$as_echo "$ac_header_preproc" >&6; }
2N/A
2N/A# So? What about this header?
2N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2N/A yes:no: )
2N/A { $as_echo "$as_me:$LINENO: WARNING: libdevmapper.h: accepted by the compiler, rejected by the preprocessor!" >&5
2N/A$as_echo "$as_me: WARNING: libdevmapper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: libdevmapper.h: proceeding with the compiler's result" >&5
2N/A$as_echo "$as_me: WARNING: libdevmapper.h: proceeding with the compiler's result" >&2;}
2N/A ac_header_preproc=yes
2N/A ;;
2N/A no:yes:* )
2N/A { $as_echo "$as_me:$LINENO: WARNING: libdevmapper.h: present but cannot be compiled" >&5
2N/A$as_echo "$as_me: WARNING: libdevmapper.h: present but cannot be compiled" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: libdevmapper.h: check for missing prerequisite headers?" >&5
2N/A$as_echo "$as_me: WARNING: libdevmapper.h: check for missing prerequisite headers?" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: libdevmapper.h: see the Autoconf documentation" >&5
2N/A$as_echo "$as_me: WARNING: libdevmapper.h: see the Autoconf documentation" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: libdevmapper.h: section \"Present But Cannot Be Compiled\"" >&5
2N/A$as_echo "$as_me: WARNING: libdevmapper.h: section \"Present But Cannot Be Compiled\"" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: libdevmapper.h: proceeding with the preprocessor's result" >&5
2N/A$as_echo "$as_me: WARNING: libdevmapper.h: proceeding with the preprocessor's result" >&2;}
2N/A { $as_echo "$as_me:$LINENO: WARNING: libdevmapper.h: in the future, the compiler will take precedence" >&5
2N/A$as_echo "$as_me: WARNING: libdevmapper.h: in the future, the compiler will take precedence" >&2;}
2N/A ( cat <<\_ASBOX
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A@%:@@%:@ Report this to bug-grub@gnu.org @%:@@%:@
2N/A@%:@@%:@ ------------------------------- @%:@@%:@
2N/A_ASBOX
2N/A ) | sed "s/^/$as_me: WARNING: /" >&2
2N/A ;;
2N/Aesac
2N/A{ $as_echo "$as_me:$LINENO: checking for libdevmapper.h" >&5
2N/A$as_echo_n "checking for libdevmapper.h... " >&6; }
2N/Aif test "${ac_cv_header_libdevmapper_h+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_cv_header_libdevmapper_h=$ac_header_preproc
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdevmapper_h" >&5
2N/A$as_echo "$ac_cv_header_libdevmapper_h" >&6; }
2N/A
2N/Afi
2N/Aif test "x$ac_cv_header_libdevmapper_h" = x""yes; then
2N/A :
2N/Aelse
2N/A device_mapper_excuse="need libdevmapper header"
2N/Afi
2N/A
2N/A
2N/Afi
2N/A
2N/Aif test x"$device_mapper_excuse" = x ; then
2N/A # Check for device-mapper library.
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for dm_task_create in -ldevmapper" >&5
2N/A$as_echo_n "checking for dm_task_create in -ldevmapper... " >&6; }
2N/Aif test "${ac_cv_lib_devmapper_dm_task_create+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-ldevmapper $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar dm_task_create ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn dm_task_create ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_devmapper_dm_task_create=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_devmapper_dm_task_create=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_task_create" >&5
2N/A$as_echo "$ac_cv_lib_devmapper_dm_task_create" >&6; }
2N/Aif test "x$ac_cv_lib_devmapper_dm_task_create" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_LIBDEVMAPPER 1
2N/A_ACEOF
2N/A
2N/A LIBS="-ldevmapper $LIBS"
2N/A
2N/Aelse
2N/A device_mapper_excuse="need devmapper library"
2N/Afi
2N/A
2N/Afi
2N/A
2N/Aif test x"$device_mapper_excuse" = x ; then
2N/A # Check for device-mapper library.
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for dm_log_with_errno_init in -ldevmapper" >&5
2N/A$as_echo_n "checking for dm_log_with_errno_init in -ldevmapper... " >&6; }
2N/Aif test "${ac_cv_lib_devmapper_dm_log_with_errno_init+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-ldevmapper $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar dm_log_with_errno_init ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn dm_log_with_errno_init ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_devmapper_dm_log_with_errno_init=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_devmapper_dm_log_with_errno_init=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_log_with_errno_init" >&5
2N/A$as_echo "$ac_cv_lib_devmapper_dm_log_with_errno_init" >&6; }
2N/Aif test "x$ac_cv_lib_devmapper_dm_log_with_errno_init" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_LIBDEVMAPPER 1
2N/A_ACEOF
2N/A
2N/A LIBS="-ldevmapper $LIBS"
2N/A
2N/Aelse
2N/A device_mapper_excuse="need devmapper library"
2N/Afi
2N/A
2N/Afi
2N/A
2N/Aif test x"$device_mapper_excuse" = x ; then
2N/A LIBDEVMAPPER="-ldevmapper";
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_DEVICE_MAPPER 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/ALIBGEOM=
2N/Aif test x$host_kernel = xkfreebsd; then
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for geom_gettree in -lgeom" >&5
2N/A$as_echo_n "checking for geom_gettree in -lgeom... " >&6; }
2N/Aif test "${ac_cv_lib_geom_geom_gettree+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lgeom $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar geom_gettree ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn geom_gettree ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_geom_geom_gettree=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_geom_geom_gettree=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_geom_geom_gettree" >&5
2N/A$as_echo "$ac_cv_lib_geom_geom_gettree" >&6; }
2N/Aif test "x$ac_cv_lib_geom_geom_gettree" = x""yes; then
2N/A cat >>confdefs.h <<_ACEOF
2N/A@%:@define HAVE_LIBGEOM 1
2N/A_ACEOF
2N/A
2N/A LIBS="-lgeom $LIBS"
2N/A
2N/Aelse
2N/A { { $as_echo "$as_me:$LINENO: error: Your platform requires libgeom" >&5
2N/A$as_echo "$as_me: error: Your platform requires libgeom" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/A LIBGEOM="-lgeom"
2N/Afi
2N/A
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for lzma_code in -llzma" >&5
2N/A$as_echo_n "checking for lzma_code in -llzma... " >&6; }
2N/Aif test "${ac_cv_lib_lzma_lzma_code+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-llzma $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar lzma_code ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn lzma_code ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_lzma_lzma_code=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_lzma_lzma_code=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lzma_lzma_code" >&5
2N/A$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
2N/Aif test "x$ac_cv_lib_lzma_lzma_code" = x""yes; then
2N/A LIBLZMA="-llzma"
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_LIBLZMA 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/Aif test x"$grub_cv_solaris_linker" = xno ; then
2N/A{ $as_echo "$as_me:$LINENO: checking for libzfs_init in -lzfs" >&5
2N/A$as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
2N/Aif test "${ac_cv_lib_zfs_libzfs_init+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lzfs $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar libzfs_init ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn libzfs_init ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_zfs_libzfs_init=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_zfs_libzfs_init=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_zfs_libzfs_init" >&5
2N/A$as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
2N/Aif test "x$ac_cv_lib_zfs_libzfs_init" = x""yes; then
2N/A LIBZFS="-lzfs"
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_LIBZFS 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Aelse
2N/A{ $as_echo "$as_me:$LINENO: checking for libzfs_init in -lzfs" >&5
2N/A$as_echo_n "checking for libzfs_init in -lzfs... " >&6; }
2N/Aif test "${ac_cv_lib_zfs_libzfs_init+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lzfs -L/lib $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar libzfs_init ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn libzfs_init ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_zfs_libzfs_init=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_zfs_libzfs_init=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_zfs_libzfs_init" >&5
2N/A$as_echo "$ac_cv_lib_zfs_libzfs_init" >&6; }
2N/Aif test "x$ac_cv_lib_zfs_libzfs_init" = x""yes; then
2N/A LIBZFS="-L/lib -lzfs"
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_LIBZFS 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/Afi
2N/A
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking for nvlist_print in -lnvpair" >&5
2N/A$as_echo_n "checking for nvlist_print in -lnvpair... " >&6; }
2N/Aif test "${ac_cv_lib_nvpair_nvlist_print+set}" = set; then
2N/A $as_echo_n "(cached) " >&6
2N/Aelse
2N/A ac_check_lib_save_LIBS=$LIBS
2N/ALIBS="-lnvpair $LIBS"
2N/Acat >conftest.$ac_ext <<_ACEOF
2N/A/* confdefs.h. */
2N/A_ACEOF
2N/Acat confdefs.h >>conftest.$ac_ext
2N/Acat >>conftest.$ac_ext <<_ACEOF
2N/A/* end confdefs.h. */
2N/A
2N/A/* Override any GCC internal prototype to avoid an error.
2N/A Use char because int might match the return type of a GCC
2N/A builtin and then its argument prototype would still apply. */
2N/A#ifdef __cplusplus
2N/Aextern "C"
2N/A#endif
2N/Achar nvlist_print ();
2N/Aint
2N/Amain (void)
2N/A{
2N/Areturn nvlist_print ();
2N/A ;
2N/A return 0;
2N/A}
2N/A_ACEOF
2N/Arm -f conftest.$ac_objext conftest$ac_exeext
2N/Aif { (ac_try="$ac_link"
2N/Acase "(($ac_try" in
2N/A *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2N/A *) ac_try_echo=$ac_try;;
2N/Aesac
2N/Aeval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2N/A$as_echo "$ac_try_echo") >&5
2N/A (eval "$ac_link") 2>conftest.er1
2N/A ac_status=$?
2N/A grep -v '^ *+' conftest.er1 >conftest.err
2N/A rm -f conftest.er1
2N/A cat conftest.err >&5
2N/A $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2N/A (exit $ac_status); } && {
2N/A test -z "$ac_c_werror_flag" ||
2N/A test ! -s conftest.err
2N/A } && test -s conftest$ac_exeext && {
2N/A test "$cross_compiling" = yes ||
2N/A $as_test_x conftest$ac_exeext
2N/A }; then
2N/A ac_cv_lib_nvpair_nvlist_print=yes
2N/Aelse
2N/A $as_echo "$as_me: failed program was:" >&5
2N/Ased 's/^/| /' conftest.$ac_ext >&5
2N/A
2N/A ac_cv_lib_nvpair_nvlist_print=no
2N/Afi
2N/A
2N/Arm -rf conftest.dSYM
2N/Arm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2N/A conftest$ac_exeext conftest.$ac_ext
2N/ALIBS=$ac_check_lib_save_LIBS
2N/Afi
2N/A{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_print" >&5
2N/A$as_echo "$ac_cv_lib_nvpair_nvlist_print" >&6; }
2N/Aif test "x$ac_cv_lib_nvpair_nvlist_print" = x""yes; then
2N/A LIBNVPAIR="-lnvpair"
2N/A
2N/Acat >>confdefs.h <<\_ACEOF
2N/A@%:@define HAVE_LIBNVPAIR 1
2N/A_ACEOF
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/ALIBS=""
2N/A
2N/Apkglibrootdir='$(libdir)'/`echo $PACKAGE | sed "$program_transform_name"`
2N/A
2N/A
2N/A
2N/Aif test x$target_cpu = xi386 -a x$platform = xqemu; then
2N/A GRUB_BOOT_MACHINE_LINK_ADDR=0xffe00
2N/A
2N/Afi
2N/A
2N/Aif test x$TARGET_APPLE_CC = x1; then
2N/A USE_APPLE_CC_FIXES=yes
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A
2N/A#
2N/A# Automake conditionals
2N/A#
2N/A
2N/A if test x$platform = xemu; then
2N/A COND_emu_TRUE=
2N/A COND_emu_FALSE='#'
2N/Aelse
2N/A COND_emu_TRUE='#'
2N/A COND_emu_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xi386 -a x$platform = xpc; then
2N/A COND_i386_pc_TRUE=
2N/A COND_i386_pc_FALSE='#'
2N/Aelse
2N/A COND_i386_pc_TRUE='#'
2N/A COND_i386_pc_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xi386 -a x$platform = xefi; then
2N/A COND_i386_efi_TRUE=
2N/A COND_i386_efi_FALSE='#'
2N/Aelse
2N/A COND_i386_efi_TRUE='#'
2N/A COND_i386_efi_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xia64 -a x$platform = xefi; then
2N/A COND_ia64_efi_TRUE=
2N/A COND_ia64_efi_FALSE='#'
2N/Aelse
2N/A COND_ia64_efi_TRUE='#'
2N/A COND_ia64_efi_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xi386 -a x$platform = xqemu; then
2N/A COND_i386_qemu_TRUE=
2N/A COND_i386_qemu_FALSE='#'
2N/Aelse
2N/A COND_i386_qemu_TRUE='#'
2N/A COND_i386_qemu_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xi386 -a x$platform = xieee1275; then
2N/A COND_i386_ieee1275_TRUE=
2N/A COND_i386_ieee1275_FALSE='#'
2N/Aelse
2N/A COND_i386_ieee1275_TRUE='#'
2N/A COND_i386_ieee1275_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xi386 -a x$platform = xcoreboot; then
2N/A COND_i386_coreboot_TRUE=
2N/A COND_i386_coreboot_FALSE='#'
2N/Aelse
2N/A COND_i386_coreboot_TRUE='#'
2N/A COND_i386_coreboot_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xi386 -a x$platform = xmultiboot; then
2N/A COND_i386_multiboot_TRUE=
2N/A COND_i386_multiboot_FALSE='#'
2N/Aelse
2N/A COND_i386_multiboot_TRUE='#'
2N/A COND_i386_multiboot_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xx86_64 -a x$platform = xefi; then
2N/A COND_x86_64_efi_TRUE=
2N/A COND_x86_64_efi_FALSE='#'
2N/Aelse
2N/A COND_x86_64_efi_TRUE='#'
2N/A COND_x86_64_efi_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xmipsel -a x$platform = xloongson; then
2N/A COND_mips_loongson_TRUE=
2N/A COND_mips_loongson_FALSE='#'
2N/Aelse
2N/A COND_mips_loongson_TRUE='#'
2N/A COND_mips_loongson_FALSE=
2N/Afi
2N/A
2N/A if test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xqemu_mips; then
2N/A COND_mips_qemu_mips_TRUE=
2N/A COND_mips_qemu_mips_FALSE='#'
2N/Aelse
2N/A COND_mips_qemu_mips_TRUE='#'
2N/A COND_mips_qemu_mips_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xmips -a x$platform = xarc; then
2N/A COND_mips_arc_TRUE=
2N/A COND_mips_arc_FALSE='#'
2N/Aelse
2N/A COND_mips_arc_TRUE='#'
2N/A COND_mips_arc_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xsparc64 -a x$platform = xieee1275; then
2N/A COND_sparc64_ieee1275_TRUE=
2N/A COND_sparc64_ieee1275_FALSE='#'
2N/Aelse
2N/A COND_sparc64_ieee1275_TRUE='#'
2N/A COND_sparc64_ieee1275_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xpowerpc -a x$platform = xieee1275; then
2N/A COND_powerpc_ieee1275_TRUE=
2N/A COND_powerpc_ieee1275_FALSE='#'
2N/Aelse
2N/A COND_powerpc_ieee1275_TRUE='#'
2N/A COND_powerpc_ieee1275_FALSE=
2N/Afi
2N/A
2N/A if test x$target_cpu = xmips -o x$target_cpu = xmipsel; then
2N/A COND_mips_TRUE=
2N/A COND_mips_FALSE='#'
2N/Aelse
2N/A COND_mips_TRUE='#'
2N/A COND_mips_FALSE=
2N/Afi
2N/A
2N/A
2N/A if test x$host_kernel = xhurd; then
2N/A COND_HOST_HURD_TRUE=
2N/A COND_HOST_HURD_FALSE='#'
2N/Aelse
2N/A COND_HOST_HURD_TRUE='#'
2N/A COND_HOST_HURD_FALSE=
2N/Afi
2N/A
2N/A if test x$host_kernel = xlinux; then
2N/A COND_HOST_LINUX_TRUE=
2N/A COND_HOST_LINUX_FALSE='#'
2N/Aelse
2N/A COND_HOST_LINUX_TRUE='#'
2N/A COND_HOST_LINUX_FALSE=
2N/Afi
2N/A
2N/A if test x$host_kernel = xnetbsd; then
2N/A COND_HOST_NETBSD_TRUE=
2N/A COND_HOST_NETBSD_FALSE='#'
2N/Aelse
2N/A COND_HOST_NETBSD_TRUE='#'
2N/A COND_HOST_NETBSD_FALSE=
2N/Afi
2N/A
2N/A if test x$host_kernel = xwindows; then
2N/A COND_HOST_WINDOWS_TRUE=
2N/A COND_HOST_WINDOWS_FALSE='#'
2N/Aelse
2N/A COND_HOST_WINDOWS_TRUE='#'
2N/A COND_HOST_WINDOWS_FALSE=
2N/Afi
2N/A
2N/A if test x$host_kernel = xkfreebsd; then
2N/A COND_HOST_KFREEBSD_TRUE=
2N/A COND_HOST_KFREEBSD_FALSE='#'
2N/Aelse
2N/A COND_HOST_KFREEBSD_TRUE='#'
2N/A COND_HOST_KFREEBSD_FALSE=
2N/Afi
2N/A
2N/A if test x$host_kernel = xsolaris; then
2N/A COND_HOST_SOLARIS_TRUE=
2N/A COND_HOST_SOLARIS_FALSE='#'
2N/Aelse
2N/A COND_HOST_SOLARIS_TRUE='#'
2N/A COND_HOST_SOLARIS_FALSE=
2N/Afi
2N/A
2N/A if test x$host_kernel = xillumos; then
2N/A COND_HOST_ILLUMOS_TRUE=
2N/A COND_HOST_ILLUMOS_FALSE='#'
2N/Aelse
2N/A COND_HOST_ILLUMOS_TRUE='#'
2N/A COND_HOST_ILLUMOS_FALSE=
2N/Afi
2N/A
2N/A
2N/A if test x$cross_compiling = xno -a x$HELP2MAN != x; then
2N/A COND_MAN_PAGES_TRUE=
2N/A COND_MAN_PAGES_FALSE='#'
2N/Aelse
2N/A COND_MAN_PAGES_TRUE='#'
2N/A COND_MAN_PAGES_FALSE=
2N/Afi
2N/A
2N/A if test x$enable_grub_emu_usb = xyes; then
2N/A COND_GRUB_EMU_USB_TRUE=
2N/A COND_GRUB_EMU_USB_FALSE='#'
2N/Aelse
2N/A COND_GRUB_EMU_USB_TRUE='#'
2N/A COND_GRUB_EMU_USB_FALSE=
2N/Afi
2N/A
2N/A if test x$enable_grub_emu_sdl = xyes; then
2N/A COND_GRUB_EMU_SDL_TRUE=
2N/A COND_GRUB_EMU_SDL_FALSE='#'
2N/Aelse
2N/A COND_GRUB_EMU_SDL_TRUE='#'
2N/A COND_GRUB_EMU_SDL_FALSE=
2N/Afi
2N/A
2N/A if test x$enable_grub_emu_pci = xyes; then
2N/A COND_GRUB_EMU_PCI_TRUE=
2N/A COND_GRUB_EMU_PCI_FALSE='#'
2N/Aelse
2N/A COND_GRUB_EMU_PCI_TRUE='#'
2N/A COND_GRUB_EMU_PCI_FALSE=
2N/Afi
2N/A
2N/A if test x$enable_grub_mkfont = xyes; then
2N/A COND_GRUB_MKFONT_TRUE=
2N/A COND_GRUB_MKFONT_FALSE='#'
2N/Aelse
2N/A COND_GRUB_MKFONT_TRUE='#'
2N/A COND_GRUB_MKFONT_FALSE=
2N/Afi
2N/A
2N/A if test x$enable_grub_mount = xyes; then
2N/A COND_GRUB_MOUNT_TRUE=
2N/A COND_GRUB_MOUNT_FALSE='#'
2N/Aelse
2N/A COND_GRUB_MOUNT_TRUE='#'
2N/A COND_GRUB_MOUNT_FALSE=
2N/Afi
2N/A
2N/A if test x$FONT_SOURCE != x; then
2N/A COND_HAVE_FONT_SOURCE_TRUE=
2N/A COND_HAVE_FONT_SOURCE_FALSE='#'
2N/Aelse
2N/A COND_HAVE_FONT_SOURCE_TRUE='#'
2N/A COND_HAVE_FONT_SOURCE_FALSE=
2N/Afi
2N/A
2N/A if test x$TARGET_OBJ2ELF != x; then
2N/A COND_GRUB_PE2ELF_TRUE=
2N/A COND_GRUB_PE2ELF_FALSE='#'
2N/Aelse
2N/A COND_GRUB_PE2ELF_TRUE='#'
2N/A COND_GRUB_PE2ELF_FALSE=
2N/Afi
2N/A
2N/A if test x$TARGET_APPLE_CC = x1; then
2N/A COND_APPLE_CC_TRUE=
2N/A COND_APPLE_CC_FALSE='#'
2N/Aelse
2N/A COND_APPLE_CC_TRUE='#'
2N/A COND_APPLE_CC_FALSE=
2N/Afi
2N/A
2N/A if test x$enable_efiemu = xyes; then
2N/A COND_ENABLE_EFIEMU_TRUE=
2N/A COND_ENABLE_EFIEMU_FALSE='#'
2N/Aelse
2N/A COND_ENABLE_EFIEMU_TRUE='#'
2N/A COND_ENABLE_EFIEMU_FALSE=
2N/Afi
2N/A
2N/A if test x$DISK_CACHE_STATS = x1; then
2N/A COND_ENABLE_CACHE_STATS_TRUE=
2N/A COND_ENABLE_CACHE_STATS_FALSE='#'
2N/Aelse
2N/A COND_ENABLE_CACHE_STATS_TRUE='#'
2N/A COND_ENABLE_CACHE_STATS_FALSE=
2N/Afi
2N/A
2N/A
2N/A if test x$HAVE_ASM_USCORE = x1; then
2N/A COND_HAVE_ASM_USCORE_TRUE=
2N/A COND_HAVE_ASM_USCORE_FALSE='#'
2N/Aelse
2N/A COND_HAVE_ASM_USCORE_TRUE='#'
2N/A COND_HAVE_ASM_USCORE_FALSE=
2N/Afi
2N/A
2N/A if test x$host_os = xcygwin; then
2N/A COND_CYGWIN_TRUE=
2N/A COND_CYGWIN_FALSE='#'
2N/Aelse
2N/A COND_CYGWIN_TRUE='#'
2N/A COND_CYGWIN_FALSE=
2N/Afi
2N/A
2N/A
2N/A# Output files.
2N/Acpudir="${target_cpu}"
2N/Aif test x${cpudir} = xmipsel; then
2N/A cpudir=mips;
2N/Afi
2N/A
2N/A{ $as_echo "$as_me:$LINENO: checking whether ln can handle directories properly" >&5
2N/A$as_echo_n "checking whether ln can handle directories properly... " >&6; }
2N/Amkdir testdir 2>/dev/null
2N/Acase $srcdir in
2N/A[\\/$]* | ?:[\\/]* ) reldir=$srcdir/include/grub/util ;;
2N/A *) reldir=../$srcdir/include/grub/util ;;
2N/Aesac
2N/Aif ln -s $reldir testdir/util 2>/dev/null ; then
2N/A { $as_echo "$as_me:$LINENO: result: yes" >&5
2N/A$as_echo "yes" >&6; }
2N/A link_dir=yes
2N/Aelse
2N/A link_dir=no
2N/A { $as_echo "$as_me:$LINENO: result: no" >&5
2N/A$as_echo "no" >&6; }
2N/Afi
2N/Arm -rf testdir
2N/A
2N/Aif test x"$link_dir" = xyes ; then
2N/A mkdir -p ccas_wrap 2>/dev/null
2N/A cp -rp $srcdir/ccas_wrap/* ccas_wrap/
2N/A ac_config_links="$ac_config_links include/grub/cpu:include/grub/$cpudir"
2N/A
2N/A if test "$platform" != emu ; then
2N/A ac_config_links="$ac_config_links include/grub/machine:include/grub/$cpudir/$platform"
2N/A
2N/A fi
2N/Aelse
2N/A mkdir -p include/grub 2>/dev/null
2N/A mkdir -p ccas_wrap 2>/dev/null
2N/A cp -rp $srcdir/ccas_wrap/* ccas_wrap/
2N/A rm -rf include/grub/cpu
2N/A cp -rp $srcdir/include/grub/$cpudir include/grub/cpu 2>/dev/null
2N/A if test "$platform" != emu ; then
2N/A rm -rf include/grub/machine
2N/A cp -rp $srcdir/include/grub/$cpudir/$platform include/grub/machine 2>/dev/null
2N/A fi
2N/Afi
2N/A
2N/Aac_config_files="$ac_config_files Makefile"
2N/A
2N/Aac_config_files="$ac_config_files ccas_wrap/Makefile"
2N/A
2N/Aac_config_files="$ac_config_files grub-core/Makefile"
2N/A
2N/Aac_config_files="$ac_config_files grub-core/gnulib/Makefile"
2N/A
2N/Aac_config_files="$ac_config_files po/Makefile.in"
2N/A
2N/Aac_config_files="$ac_config_files docs/Makefile"
2N/A
2N/Aac_config_files="$ac_config_files util/bash-completion.d/Makefile"
2N/A
2N/Aac_config_files="$ac_config_files stamp-h"
2N/A
2N/Aac_config_files="$ac_config_files config.h"
2N/A
2N/A
2N/Acat >confcache <<\_ACEOF
2N/A# This file is a shell script that caches the results of configure
2N/A# tests run on this system so they can be shared between configure
2N/A# scripts and configure runs, see configure's option --config-cache.
2N/A# It is not useful on other systems. If it contains results you don't
2N/A# want to keep, you may remove or edit it.
2N/A#
2N/A# config.status only pays attention to the cache file if you give it
2N/A# the --recheck option to rerun configure.
2N/A#
2N/A# `ac_cv_env_foo' variables (set or unset) will be overridden when
2N/A# loading this file, other *unset* `ac_cv_foo' will be assigned the
2N/A# following values.
2N/A
2N/A_ACEOF
2N/A
2N/A# The following way of writing the cache mishandles newlines in values,
2N/A# but we know of no workaround that is simple, portable, and efficient.
2N/A# So, we kill variables containing newlines.
2N/A# Ultrix sh set writes to stderr and can't be redirected directly,
2N/A# and sets the high bit in the cache file unless we assign to the vars.
2N/A(
2N/A for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2N/A eval ac_val=\$$ac_var
2N/A case $ac_val in #(
2N/A *${as_nl}*)
2N/A case $ac_var in #(
2N/A *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2N/A$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2N/A esac
2N/A case $ac_var in #(
2N/A _ | IFS | as_nl) ;; #(
2N/A BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2N/A *) $as_unset $ac_var ;;
2N/A esac ;;
2N/A esac
2N/A done
2N/A
2N/A (set) 2>&1 |
2N/A case $as_nl`(ac_space=' '; set) 2>&1` in #(
2N/A *${as_nl}ac_space=\ *)
2N/A # `set' does not quote correctly, so add quotes (double-quote
2N/A # substitution turns \\\\ into \\, and sed turns \\ into \).
2N/A sed -n \
2N/A "s/'/'\\\\''/g;
2N/A s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2N/A ;; #(
2N/A *)
2N/A # `set' quotes correctly as required by POSIX, so do not add quotes.
2N/A sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2N/A ;;
2N/A esac |
2N/A sort
2N/A) |
2N/A sed '
2N/A /^ac_cv_env_/b end
2N/A t clear
2N/A :clear
2N/A s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2N/A t end
2N/A s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2N/A :end' >>confcache
2N/Aif diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2N/A if test -w "$cache_file"; then
2N/A test "x$cache_file" != "x/dev/null" &&
2N/A { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
2N/A$as_echo "$as_me: updating cache $cache_file" >&6;}
2N/A cat confcache >$cache_file
2N/A else
2N/A { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
2N/A$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
2N/A fi
2N/Afi
2N/Arm -f confcache
2N/A
2N/Atest "x$prefix" = xNONE && prefix=$ac_default_prefix
2N/A# Let make expand exec_prefix.
2N/Atest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2N/A
2N/ADEFS=-DHAVE_CONFIG_H
2N/A
2N/Aac_libobjs=
2N/Aac_ltlibobjs=
2N/Afor ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
2N/A # 1. Remove the extension, and $U if already installed.
2N/A ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2N/A ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
2N/A # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2N/A # will be set to the directory where LIBOBJS objects are built.
2N/A ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2N/A ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
2N/Adone
2N/ALIB@&t@OBJS=$ac_libobjs
2N/A
2N/ALTLIBOBJS=$ac_ltlibobjs
2N/A
2N/A
2N/Aif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/Aif test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/A gl_libobjs=
2N/A gl_ltlibobjs=
2N/A if test -n "$gl_LIBOBJS"; then
2N/A # Remove the extension.
2N/A sed_drop_objext='s/\.o$//;s/\.obj$//'
2N/A for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
2N/A gl_libobjs="$gl_libobjs $i.$ac_objext"
2N/A gl_ltlibobjs="$gl_ltlibobjs $i.lo"
2N/A done
2N/A fi
2N/A gl_LIBOBJS=$gl_libobjs
2N/A
2N/A gl_LTLIBOBJS=$gl_ltlibobjs
2N/A
2N/A
2N/A
2N/A gltests_libobjs=
2N/A gltests_ltlibobjs=
2N/A if test -n "$gltests_LIBOBJS"; then
2N/A # Remove the extension.
2N/A sed_drop_objext='s/\.o$//;s/\.obj$//'
2N/A for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
2N/A gltests_libobjs="$gltests_libobjs $i.$ac_objext"
2N/A gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
2N/A done
2N/A fi
2N/A gltests_LIBOBJS=$gltests_libobjs
2N/A
2N/A gltests_LTLIBOBJS=$gltests_ltlibobjs
2N/A
2N/A
2N/Aif test -z "${COND_ld_Solaris_TRUE}" && test -z "${COND_ld_Solaris_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ld_Solaris\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_ld_Solaris\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_emu_TRUE}" && test -z "${COND_emu_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_emu\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_emu\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_i386_pc_TRUE}" && test -z "${COND_i386_pc_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_i386_pc\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_i386_pc\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_i386_efi_TRUE}" && test -z "${COND_i386_efi_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_i386_efi\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_i386_efi\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_ia64_efi_TRUE}" && test -z "${COND_ia64_efi_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ia64_efi\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_ia64_efi\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_i386_qemu_TRUE}" && test -z "${COND_i386_qemu_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_i386_qemu\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_i386_qemu\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_i386_ieee1275_TRUE}" && test -z "${COND_i386_ieee1275_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_i386_ieee1275\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_i386_ieee1275\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_i386_coreboot_TRUE}" && test -z "${COND_i386_coreboot_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_i386_coreboot\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_i386_coreboot\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_i386_multiboot_TRUE}" && test -z "${COND_i386_multiboot_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_i386_multiboot\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_i386_multiboot\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_x86_64_efi_TRUE}" && test -z "${COND_x86_64_efi_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_x86_64_efi\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_x86_64_efi\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_mips_loongson_TRUE}" && test -z "${COND_mips_loongson_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_mips_loongson\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_mips_loongson\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_mips_qemu_mips_TRUE}" && test -z "${COND_mips_qemu_mips_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_mips_qemu_mips\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_mips_qemu_mips\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_mips_arc_TRUE}" && test -z "${COND_mips_arc_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_mips_arc\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_mips_arc\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_sparc64_ieee1275_TRUE}" && test -z "${COND_sparc64_ieee1275_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_sparc64_ieee1275\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_sparc64_ieee1275\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_powerpc_ieee1275_TRUE}" && test -z "${COND_powerpc_ieee1275_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_powerpc_ieee1275\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_powerpc_ieee1275\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_mips_TRUE}" && test -z "${COND_mips_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_mips\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_mips\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_HOST_HURD_TRUE}" && test -z "${COND_HOST_HURD_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_HOST_HURD\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_HOST_HURD\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_HOST_LINUX_TRUE}" && test -z "${COND_HOST_LINUX_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_HOST_LINUX\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_HOST_LINUX\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_HOST_NETBSD_TRUE}" && test -z "${COND_HOST_NETBSD_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_HOST_NETBSD\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_HOST_NETBSD\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_HOST_WINDOWS_TRUE}" && test -z "${COND_HOST_WINDOWS_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_HOST_WINDOWS\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_HOST_WINDOWS\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_HOST_KFREEBSD_TRUE}" && test -z "${COND_HOST_KFREEBSD_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_HOST_KFREEBSD\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_HOST_KFREEBSD\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_HOST_SOLARIS_TRUE}" && test -z "${COND_HOST_SOLARIS_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_HOST_SOLARIS\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_HOST_SOLARIS\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_HOST_ILLUMOS_TRUE}" && test -z "${COND_HOST_ILLUMOS_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_HOST_ILLUMOS\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_HOST_ILLUMOS\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_MAN_PAGES_TRUE}" && test -z "${COND_MAN_PAGES_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_MAN_PAGES\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_MAN_PAGES\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_GRUB_EMU_USB_TRUE}" && test -z "${COND_GRUB_EMU_USB_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_GRUB_EMU_USB\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_GRUB_EMU_USB\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_GRUB_EMU_SDL_TRUE}" && test -z "${COND_GRUB_EMU_SDL_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_GRUB_EMU_SDL\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_GRUB_EMU_SDL\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_GRUB_EMU_PCI_TRUE}" && test -z "${COND_GRUB_EMU_PCI_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_GRUB_EMU_PCI\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_GRUB_EMU_PCI\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_GRUB_MKFONT_TRUE}" && test -z "${COND_GRUB_MKFONT_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_GRUB_MKFONT\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_GRUB_MKFONT\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_GRUB_MOUNT_TRUE}" && test -z "${COND_GRUB_MOUNT_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_GRUB_MOUNT\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_GRUB_MOUNT\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_HAVE_FONT_SOURCE_TRUE}" && test -z "${COND_HAVE_FONT_SOURCE_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_HAVE_FONT_SOURCE\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_GRUB_PE2ELF_TRUE}" && test -z "${COND_GRUB_PE2ELF_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_GRUB_PE2ELF\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_GRUB_PE2ELF\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_APPLE_CC_TRUE}" && test -z "${COND_APPLE_CC_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_APPLE_CC\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_APPLE_CC\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_ENABLE_EFIEMU_TRUE}" && test -z "${COND_ENABLE_EFIEMU_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENABLE_EFIEMU\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_ENABLE_EFIEMU\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_ENABLE_CACHE_STATS_TRUE}" && test -z "${COND_ENABLE_CACHE_STATS_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_ENABLE_CACHE_STATS\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_ENABLE_CACHE_STATS\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_HAVE_ASM_USCORE_TRUE}" && test -z "${COND_HAVE_ASM_USCORE_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_HAVE_ASM_USCORE\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_HAVE_ASM_USCORE\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/Aif test -z "${COND_CYGWIN_TRUE}" && test -z "${COND_CYGWIN_FALSE}"; then
2N/A { { $as_echo "$as_me:$LINENO: error: conditional \"COND_CYGWIN\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&5
2N/A$as_echo "$as_me: error: conditional \"COND_CYGWIN\" was never defined.
2N/AUsually this means the macro was only invoked conditionally." >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi
2N/A
2N/A: ${CONFIG_STATUS=./config.status}
2N/Aac_write_fail=0
2N/Aac_clean_files_save=$ac_clean_files
2N/Aac_clean_files="$ac_clean_files $CONFIG_STATUS"
2N/A{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2N/A$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
2N/Acat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2N/A#! $SHELL
2N/A# Generated by $as_me.
2N/A# Run this file to recreate the current configuration.
2N/A# Compiler output produced by configure, useful for debugging
2N/A# configure, is in config.log if it exists.
2N/A
2N/Adebug=false
2N/Aac_cs_recheck=false
2N/Aac_cs_silent=false
2N/ASHELL=\${CONFIG_SHELL-$SHELL}
2N/A_ACEOF
2N/A
2N/Acat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2N/A## --------------------- ##
2N/A## M4sh Initialization. ##
2N/A## --------------------- ##
2N/A
2N/A# Be more Bourne compatible
2N/ADUALCASE=1; export DUALCASE # for MKS sh
2N/Aif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2N/A emulate sh
2N/A NULLCMD=:
2N/A # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2N/A # is contrary to our usage. Disable this feature.
2N/A alias -g '${1+"$@"}'='"$@"'
2N/A setopt NO_GLOB_SUBST
2N/Aelse
2N/A case `(set -o) 2>/dev/null` in
2N/A *posix*) set -o posix ;;
2N/Aesac
2N/A
2N/Afi
2N/A
2N/A
2N/A
2N/A
2N/A# PATH needs CR
2N/A# Avoid depending upon Character Ranges.
2N/Aas_cr_letters='abcdefghijklmnopqrstuvwxyz'
2N/Aas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2N/Aas_cr_Letters=$as_cr_letters$as_cr_LETTERS
2N/Aas_cr_digits='0123456789'
2N/Aas_cr_alnum=$as_cr_Letters$as_cr_digits
2N/A
2N/Aas_nl='
2N/A'
2N/Aexport as_nl
2N/A# Printing a long string crashes Solaris 7 /usr/bin/printf.
2N/Aas_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2N/Aas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
2N/Aas_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
2N/Aif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
2N/A as_echo='printf %s\n'
2N/A as_echo_n='printf %s'
2N/Aelse
2N/A if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
2N/A as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
2N/A as_echo_n='/usr/ucb/echo -n'
2N/A else
2N/A as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
2N/A as_echo_n_body='eval
2N/A arg=$1;
2N/A case $arg in
2N/A *"$as_nl"*)
2N/A expr "X$arg" : "X\\(.*\\)$as_nl";
2N/A arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
2N/A esac;
2N/A expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
2N/A '
2N/A export as_echo_n_body
2N/A as_echo_n='sh -c $as_echo_n_body as_echo'
2N/A fi
2N/A export as_echo_body
2N/A as_echo='sh -c $as_echo_body as_echo'
2N/Afi
2N/A
2N/A# The user is always right.
2N/Aif test "${PATH_SEPARATOR+set}" != set; then
2N/A PATH_SEPARATOR=:
2N/A (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2N/A (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2N/A PATH_SEPARATOR=';'
2N/A }
2N/Afi
2N/A
2N/A# Support unset when possible.
2N/Aif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2N/A as_unset=unset
2N/Aelse
2N/A as_unset=false
2N/Afi
2N/A
2N/A
2N/A# IFS
2N/A# We need space, tab and new line, in precisely that order. Quoting is
2N/A# there to prevent editors from complaining about space-tab.
2N/A# (If _AS_PATH_WALK were called with IFS unset, it would disable word
2N/A# splitting by setting IFS to empty value.)
2N/AIFS=" "" $as_nl"
2N/A
2N/A# Find who we are. Look in the path if we contain no directory separator.
2N/Acase $0 in
2N/A *[\\/]* ) as_myself=$0 ;;
2N/A *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2N/Afor as_dir in $PATH
2N/Ado
2N/A IFS=$as_save_IFS
2N/A test -z "$as_dir" && as_dir=.
2N/A test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2N/Adone
2N/AIFS=$as_save_IFS
2N/A
2N/A ;;
2N/Aesac
2N/A# We did not find ourselves, most probably we were run as `sh COMMAND'
2N/A# in which case we are not to be found in the path.
2N/Aif test "x$as_myself" = x; then
2N/A as_myself=$0
2N/Afi
2N/Aif test ! -f "$as_myself"; then
2N/A $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2N/A { (exit 1); exit 1; }
2N/Afi
2N/A
2N/A# Work around bugs in pre-3.0 UWIN ksh.
2N/Afor as_var in ENV MAIL MAILPATH
2N/Ado ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
2N/Adone
2N/APS1='$ '
2N/APS2='> '
2N/APS4='+ '
2N/A
2N/A# NLS nuisances.
2N/ALC_ALL=C
2N/Aexport LC_ALL
2N/ALANGUAGE=C
2N/Aexport LANGUAGE
2N/A
2N/A# Required to use basename.
2N/Aif expr a : '\(a\)' >/dev/null 2>&1 &&
2N/A test "X`expr 00001 : '.*\(...\)'`" = X001; then
2N/A as_expr=expr
2N/Aelse
2N/A as_expr=false
2N/Afi
2N/A
2N/Aif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2N/A as_basename=basename
2N/Aelse
2N/A as_basename=false
2N/Afi
2N/A
2N/A
2N/A# Name of the executable.
2N/Aas_me=`$as_basename -- "$0" ||
2N/A$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2N/A X"$0" : 'X\(//\)$' \| \
2N/A X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2N/A$as_echo X/"$0" |
2N/A sed '/^.*\/\([^/][^/]*\)\/*$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\/\(\/\/\)$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\/\(\/\).*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A s/.*/./; q'`
2N/A
2N/A# CDPATH.
2N/A$as_unset CDPATH
2N/A
2N/A
2N/A
2N/A as_lineno_1=$LINENO
2N/A as_lineno_2=$LINENO
2N/A test "x$as_lineno_1" != "x$as_lineno_2" &&
2N/A test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
2N/A
2N/A # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2N/A # uniformly replaced by the line number. The first 'sed' inserts a
2N/A # line-number line after each line using $LINENO; the second 'sed'
2N/A # does the real work. The second script uses 'N' to pair each
2N/A # line-number line with the line containing $LINENO, and appends
2N/A # trailing '-' during substitution so that $LINENO is not a special
2N/A # case at line end.
2N/A # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2N/A # scripts with optimization help from Paolo Bonzini. Blame Lee
2N/A # E. McMahon (1931-1989) for sed's syntax. :-)
2N/A sed -n '
2N/A p
2N/A /[$]LINENO/=
2N/A ' <$as_myself |
2N/A sed '
2N/A s/[$]LINENO.*/&-/
2N/A t lineno
2N/A b
2N/A :lineno
2N/A N
2N/A :loop
2N/A s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
2N/A t loop
2N/A s/-\n.*//
2N/A ' >$as_me.lineno &&
2N/A chmod +x "$as_me.lineno" ||
2N/A { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
2N/A { (exit 1); exit 1; }; }
2N/A
2N/A # Don't try to exec as it changes $[0], causing all sort of problems
2N/A # (the dirname of $[0] is not the place where we might find the
2N/A # original and so on. Autoconf is especially sensitive to this).
2N/A . "./$as_me.lineno"
2N/A # Exit status is that of the last command.
2N/A exit
2N/A}
2N/A
2N/A
2N/Aif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2N/A as_dirname=dirname
2N/Aelse
2N/A as_dirname=false
2N/Afi
2N/A
2N/AECHO_C= ECHO_N= ECHO_T=
2N/Acase `echo -n x` in
2N/A-n*)
2N/A case `echo 'x\c'` in
2N/A *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2N/A *) ECHO_C='\c';;
2N/A esac;;
2N/A*)
2N/A ECHO_N='-n';;
2N/Aesac
2N/Aif expr a : '\(a\)' >/dev/null 2>&1 &&
2N/A test "X`expr 00001 : '.*\(...\)'`" = X001; then
2N/A as_expr=expr
2N/Aelse
2N/A as_expr=false
2N/Afi
2N/A
2N/Arm -f conf$$ conf$$.exe conf$$.file
2N/Aif test -d conf$$.dir; then
2N/A rm -f conf$$.dir/conf$$.file
2N/Aelse
2N/A rm -f conf$$.dir
2N/A mkdir conf$$.dir 2>/dev/null
2N/Afi
2N/Aif (echo >conf$$.file) 2>/dev/null; then
2N/A if ln -s conf$$.file conf$$ 2>/dev/null; then
2N/A as_ln_s='ln -s'
2N/A # ... but there are two gotchas:
2N/A # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2N/A # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2N/A # In both cases, we have to default to `cp -p'.
2N/A ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2N/A as_ln_s='cp -p'
2N/A elif ln conf$$.file conf$$ 2>/dev/null; then
2N/A as_ln_s=ln
2N/A else
2N/A as_ln_s='cp -p'
2N/A fi
2N/Aelse
2N/A as_ln_s='cp -p'
2N/Afi
2N/Arm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2N/Armdir conf$$.dir 2>/dev/null
2N/A
2N/Aif mkdir -p . 2>/dev/null; then
2N/A as_mkdir_p=:
2N/Aelse
2N/A test -d ./-p && rmdir ./-p
2N/A as_mkdir_p=false
2N/Afi
2N/A
2N/Aif test -x / >/dev/null 2>&1; then
2N/A as_test_x='test -x'
2N/Aelse
2N/A if ls -dL / >/dev/null 2>&1; then
2N/A as_ls_L_option=L
2N/A else
2N/A as_ls_L_option=
2N/A fi
2N/A as_test_x='
2N/A eval sh -c '\''
2N/A if test -d "$1"; then
2N/A test -d "$1/.";
2N/A else
2N/A case $1 in
2N/A -*)set "./$1";;
2N/A esac;
2N/A case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
2N/A ???[sx]*):;;*)false;;esac;fi
2N/A '\'' sh
2N/A '
2N/Afi
2N/Aas_executable_p=$as_test_x
2N/A
2N/A# Sed expression to map a string onto a valid CPP name.
2N/Aas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2N/A
2N/A# Sed expression to map a string onto a valid variable name.
2N/Aas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2N/A
2N/A
2N/Aexec 6>&1
2N/A
2N/A# Save the log message, to keep $[0] and so on meaningful, and to
2N/A# report actual input values of CONFIG_FILES etc. instead of their
2N/A# values after options handling.
2N/Aac_log="
2N/AThis file was extended by GRUB $as_me 1.99, which was
2N/Agenerated by GNU Autoconf 2.63. Invocation command line was
2N/A
2N/A CONFIG_FILES = $CONFIG_FILES
2N/A CONFIG_HEADERS = $CONFIG_HEADERS
2N/A CONFIG_LINKS = $CONFIG_LINKS
2N/A CONFIG_COMMANDS = $CONFIG_COMMANDS
2N/A $ $0 $@
2N/A
2N/Aon `(hostname || uname -n) 2>/dev/null | sed 1q`
2N/A"
2N/A
2N/A_ACEOF
2N/A
2N/Acase $ac_config_files in *"
2N/A"*) set x $ac_config_files; shift; ac_config_files=$*;;
2N/Aesac
2N/A
2N/Acase $ac_config_headers in *"
2N/A"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
2N/Aesac
2N/A
2N/A
2N/Acat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2N/A# Files that config.status was made for.
2N/Aconfig_files="$ac_config_files"
2N/Aconfig_headers="$ac_config_headers"
2N/Aconfig_links="$ac_config_links"
2N/Aconfig_commands="$ac_config_commands"
2N/A
2N/A_ACEOF
2N/A
2N/Acat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2N/Aac_cs_usage="\
2N/A\`$as_me' instantiates files from templates according to the
2N/Acurrent configuration.
2N/A
2N/AUsage: $0 [OPTION]... [FILE]...
2N/A
2N/A -h, --help print this help, then exit
2N/A -V, --version print version number and configuration settings, then exit
2N/A -q, --quiet, --silent
2N/A do not print progress messages
2N/A -d, --debug don't remove temporary files
2N/A --recheck update $as_me by reconfiguring in the same conditions
2N/A --file=FILE[:TEMPLATE]
2N/A instantiate the configuration file FILE
2N/A --header=FILE[:TEMPLATE]
2N/A instantiate the configuration header FILE
2N/A
2N/AConfiguration files:
2N/A$config_files
2N/A
2N/AConfiguration headers:
2N/A$config_headers
2N/A
2N/AConfiguration links:
2N/A$config_links
2N/A
2N/AConfiguration commands:
2N/A$config_commands
2N/A
2N/AReport bugs to <bug-autoconf@gnu.org>."
2N/A
2N/A_ACEOF
2N/Acat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2N/Aac_cs_version="\\
2N/AGRUB config.status 1.99
2N/Aconfigured by $0, generated by GNU Autoconf 2.63,
2N/A with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2N/A
2N/ACopyright (C) 2008 Free Software Foundation, Inc.
2N/AThis config.status script is free software; the Free Software Foundation
2N/Agives unlimited permission to copy, distribute and modify it."
2N/A
2N/Aac_pwd='$ac_pwd'
2N/Asrcdir='$srcdir'
2N/AINSTALL='$INSTALL'
2N/AMKDIR_P='$MKDIR_P'
2N/AAWK='$AWK'
2N/Atest -n "\$AWK" || AWK=awk
2N/A_ACEOF
2N/A
2N/Acat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2N/A# The default lists apply if the user does not specify any file.
2N/Aac_need_defaults=:
2N/Awhile test $# != 0
2N/Ado
2N/A case $1 in
2N/A --*=*)
2N/A ac_option=`expr "X$1" : 'X\([^=]*\)='`
2N/A ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2N/A ac_shift=:
2N/A ;;
2N/A *)
2N/A ac_option=$1
2N/A ac_optarg=$2
2N/A ac_shift=shift
2N/A ;;
2N/A esac
2N/A
2N/A case $ac_option in
2N/A # Handling of the options.
2N/A -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2N/A ac_cs_recheck=: ;;
2N/A --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2N/A $as_echo "$ac_cs_version"; exit ;;
2N/A --debug | --debu | --deb | --de | --d | -d )
2N/A debug=: ;;
2N/A --file | --fil | --fi | --f )
2N/A $ac_shift
2N/A case $ac_optarg in
2N/A *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2N/A esac
2N/A CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
2N/A ac_need_defaults=false;;
2N/A --header | --heade | --head | --hea )
2N/A $ac_shift
2N/A case $ac_optarg in
2N/A *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2N/A esac
2N/A CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
2N/A ac_need_defaults=false;;
2N/A --he | --h)
2N/A # Conflict between --help and --header
2N/A { $as_echo "$as_me: error: ambiguous option: $1
2N/ATry \`$0 --help' for more information." >&2
2N/A { (exit 1); exit 1; }; };;
2N/A --help | --hel | -h )
2N/A $as_echo "$ac_cs_usage"; exit ;;
2N/A -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2N/A | -silent | --silent | --silen | --sile | --sil | --si | --s)
2N/A ac_cs_silent=: ;;
2N/A
2N/A # This is an error.
2N/A -*) { $as_echo "$as_me: error: unrecognized option: $1
2N/ATry \`$0 --help' for more information." >&2
2N/A { (exit 1); exit 1; }; } ;;
2N/A
2N/A *) ac_config_targets="$ac_config_targets $1"
2N/A ac_need_defaults=false ;;
2N/A
2N/A esac
2N/A shift
2N/Adone
2N/A
2N/Aac_configure_extra_args=
2N/A
2N/Aif $ac_cs_silent; then
2N/A exec 6>/dev/null
2N/A ac_configure_extra_args="$ac_configure_extra_args --silent"
2N/Afi
2N/A
2N/A_ACEOF
2N/Acat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2N/Aif \$ac_cs_recheck; then
2N/A set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2N/A shift
2N/A \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
2N/A CONFIG_SHELL='$SHELL'
2N/A export CONFIG_SHELL
2N/A exec "\$@"
2N/Afi
2N/A
2N/A_ACEOF
2N/Acat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2N/Aexec 5>>config.log
2N/A{
2N/A echo
2N/A sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
2N/A@%:@@%:@ Running $as_me. @%:@@%:@
2N/A_ASBOX
2N/A $as_echo "$ac_log"
2N/A} >&5
2N/A
2N/A_ACEOF
2N/Acat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2N/A#
2N/A# INIT-COMMANDS
2N/A#
2N/AAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
2N/A# Capture the value of obsolete ALL_LINGUAS because we need it to compute
2N/A # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
2N/A # from automake < 1.5.
2N/A eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
2N/A # Capture the value of LINGUAS because we need it to compute CATALOGS.
2N/A LINGUAS="${LINGUAS-%UNSET%}"
2N/A
2N/A
2N/A_ACEOF
2N/A
2N/Acat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2N/A
2N/A# Handling of arguments.
2N/Afor ac_config_target in $ac_config_targets
2N/Ado
2N/A case $ac_config_target in
2N/A "config-util.h") CONFIG_HEADERS="$CONFIG_HEADERS config-util.h" ;;
2N/A "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
2N/A "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
2N/A "include/grub/cpu") CONFIG_LINKS="$CONFIG_LINKS include/grub/cpu:include/grub/$cpudir" ;;
2N/A "include/grub/machine") CONFIG_LINKS="$CONFIG_LINKS include/grub/machine:include/grub/$cpudir/$platform" ;;
2N/A "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2N/A "ccas_wrap/Makefile") CONFIG_FILES="$CONFIG_FILES ccas_wrap/Makefile" ;;
2N/A "grub-core/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/Makefile" ;;
2N/A "grub-core/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES grub-core/gnulib/Makefile" ;;
2N/A "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
2N/A "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
2N/A "util/bash-completion.d/Makefile") CONFIG_FILES="$CONFIG_FILES util/bash-completion.d/Makefile" ;;
2N/A "stamp-h") CONFIG_FILES="$CONFIG_FILES stamp-h" ;;
2N/A "config.h") CONFIG_FILES="$CONFIG_FILES config.h" ;;
2N/A
2N/A *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
2N/A$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
2N/A { (exit 1); exit 1; }; };;
2N/A esac
2N/Adone
2N/A
2N/A
2N/A# If the user did not use the arguments to specify the items to instantiate,
2N/A# then the envvar interface is used. Set only those that are not.
2N/A# We use the long form for the default assignment because of an extremely
2N/A# bizarre bug on SunOS 4.1.3.
2N/Aif $ac_need_defaults; then
2N/A test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
2N/A test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
2N/A test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
2N/A test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
2N/Afi
2N/A
2N/A# Have a temporary directory for convenience. Make it in the build tree
2N/A# simply because there is no reason against having it here, and in addition,
2N/A# creating and moving files from /tmp can sometimes cause problems.
2N/A# Hook for its removal unless debugging.
2N/A# Note that there is a small window in which the directory will not be cleaned:
2N/A# after its creation but before its name has been assigned to `$tmp'.
2N/A$debug ||
2N/A{
2N/A tmp=
2N/A trap 'exit_status=$?
2N/A { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
2N/A' 0
2N/A trap '{ (exit 1); exit 1; }' 1 2 13 15
2N/A}
2N/A# Create a (secure) tmp directory for tmp files.
2N/A
2N/A{
2N/A tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2N/A test -n "$tmp" && test -d "$tmp"
2N/A} ||
2N/A{
2N/A tmp=./conf$$-$RANDOM
2N/A (umask 077 && mkdir "$tmp")
2N/A} ||
2N/A{
2N/A $as_echo "$as_me: cannot create a temporary directory in ." >&2
2N/A { (exit 1); exit 1; }
2N/A}
2N/A
2N/A# Set up the scripts for CONFIG_FILES section.
2N/A# No need to generate them if there are no CONFIG_FILES.
2N/A# This happens for instance with `./config.status config.h'.
2N/Aif test -n "$CONFIG_FILES"; then
2N/A
2N/A
2N/Aac_cr='
2N/A'
2N/Aac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
2N/Aif test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
2N/A ac_cs_awk_cr='\\r'
2N/Aelse
2N/A ac_cs_awk_cr=$ac_cr
2N/Afi
2N/A
2N/Aecho 'BEGIN {' >"$tmp/subs1.awk" &&
2N/A_ACEOF
2N/A
2N/A
2N/A{
2N/A echo "cat >conf$$subs.awk <<_ACEOF" &&
2N/A echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
2N/A echo "_ACEOF"
2N/A} >conf$$subs.sh ||
2N/A { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2N/A$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Aac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
2N/Aac_delim='%!_!# '
2N/Afor ac_last_try in false false false false false :; do
2N/A . ./conf$$subs.sh ||
2N/A { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2N/A$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A
2N/A ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
2N/A if test $ac_delim_n = $ac_delim_num; then
2N/A break
2N/A elif $ac_last_try; then
2N/A { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2N/A$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A else
2N/A ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2N/A fi
2N/Adone
2N/Arm -f conf$$subs.sh
2N/A
2N/Acat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2N/Acat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2N/A_ACEOF
2N/Ased -n '
2N/Ah
2N/As/^/S["/; s/!.*/"]=/
2N/Ap
2N/Ag
2N/As/^[^!]*!//
2N/A:repl
2N/At repl
2N/As/'"$ac_delim"'$//
2N/At delim
2N/A:nl
2N/Ah
2N/As/\(.\{148\}\).*/\1/
2N/At more1
2N/As/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
2N/Ap
2N/An
2N/Ab repl
2N/A:more1
2N/As/["\\]/\\&/g; s/^/"/; s/$/"\\/
2N/Ap
2N/Ag
2N/As/.\{148\}//
2N/At nl
2N/A:delim
2N/Ah
2N/As/\(.\{148\}\).*/\1/
2N/At more2
2N/As/["\\]/\\&/g; s/^/"/; s/$/"/
2N/Ap
2N/Ab
2N/A:more2
2N/As/["\\]/\\&/g; s/^/"/; s/$/"\\/
2N/Ap
2N/Ag
2N/As/.\{148\}//
2N/At delim
2N/A' <conf$$subs.awk | sed '
2N/A/^[^""]/{
2N/A N
2N/A s/\n//
2N/A}
2N/A' >>$CONFIG_STATUS || ac_write_fail=1
2N/Arm -f conf$$subs.awk
2N/Acat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2N/A_ACAWK
2N/Acat >>"\$tmp/subs1.awk" <<_ACAWK &&
2N/A for (key in S) S_is_set[key] = 1
2N/A FS = ""
2N/A
2N/A}
2N/A{
2N/A line = $ 0
2N/A nfields = split(line, field, "@")
2N/A substed = 0
2N/A len = length(field[1])
2N/A for (i = 2; i < nfields; i++) {
2N/A key = field[i]
2N/A keylen = length(key)
2N/A if (S_is_set[key]) {
2N/A value = S[key]
2N/A line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
2N/A len += length(value) + length(field[++i])
2N/A substed = 1
2N/A } else
2N/A len += 1 + keylen
2N/A }
2N/A
2N/A print line
2N/A}
2N/A
2N/A_ACAWK
2N/A_ACEOF
2N/Acat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2N/Aif sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
2N/A sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
2N/Aelse
2N/A cat
2N/Afi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
2N/A || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
2N/A$as_echo "$as_me: error: could not setup config files machinery" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A_ACEOF
2N/A
2N/A# VPATH may cause trouble with some makes, so we remove $(srcdir),
2N/A# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2N/A# trailing colons and then remove the whole line if VPATH becomes empty
2N/A# (actually we leave an empty line to preserve line numbers).
2N/Aif test "x$srcdir" = x.; then
2N/A ac_vpsub='/^[ ]*VPATH[ ]*=/{
2N/As/:*\$(srcdir):*/:/
2N/As/:*\${srcdir}:*/:/
2N/As/:*@srcdir@:*/:/
2N/As/^\([^=]*=[ ]*\):*/\1/
2N/As/:*$//
2N/As/^[^=]*=[ ]*$//
2N/A}'
2N/Afi
2N/A
2N/Acat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2N/Afi # test -n "$CONFIG_FILES"
2N/A
2N/A# Set up the scripts for CONFIG_HEADERS section.
2N/A# No need to generate them if there are no CONFIG_HEADERS.
2N/A# This happens for instance with `./config.status Makefile'.
2N/Aif test -n "$CONFIG_HEADERS"; then
2N/Acat >"$tmp/defines.awk" <<\_ACAWK ||
2N/ABEGIN {
2N/A_ACEOF
2N/A
2N/A# Transform confdefs.h into an awk script `defines.awk', embedded as
2N/A# here-document in config.status, that substitutes the proper values into
2N/A# config.h.in to produce config.h.
2N/A
2N/A# Create a delimiter string that does not exist in confdefs.h, to ease
2N/A# handling of long lines.
2N/Aac_delim='%!_!# '
2N/Afor ac_last_try in false false :; do
2N/A ac_t=`sed -n "/$ac_delim/p" confdefs.h`
2N/A if test -z "$ac_t"; then
2N/A break
2N/A elif $ac_last_try; then
2N/A { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
2N/A$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A else
2N/A ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
2N/A fi
2N/Adone
2N/A
2N/A# For the awk script, D is an array of macro values keyed by name,
2N/A# likewise P contains macro parameters if any. Preserve backslash
2N/A# newline sequences.
2N/A
2N/Aac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
2N/Ased -n '
2N/As/.\{148\}/&'"$ac_delim"'/g
2N/At rset
2N/A:rset
2N/As/^[ ]*#[ ]*define[ ][ ]*/ /
2N/At def
2N/Ad
2N/A:def
2N/As/\\$//
2N/At bsnl
2N/As/["\\]/\\&/g
2N/As/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
2N/AD["\1"]=" \3"/p
2N/As/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
2N/Ad
2N/A:bsnl
2N/As/["\\]/\\&/g
2N/As/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
2N/AD["\1"]=" \3\\\\\\n"\\/p
2N/At cont
2N/As/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
2N/At cont
2N/Ad
2N/A:cont
2N/An
2N/As/.\{148\}/&'"$ac_delim"'/g
2N/At clear
2N/A:clear
2N/As/\\$//
2N/At bsnlc
2N/As/["\\]/\\&/g; s/^/"/; s/$/"/p
2N/Ad
2N/A:bsnlc
2N/As/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
2N/Ab cont
2N/A' <confdefs.h | sed '
2N/As/'"$ac_delim"'/"\\\
2N/A"/g' >>$CONFIG_STATUS || ac_write_fail=1
2N/A
2N/Acat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2N/A for (key in D) D_is_set[key] = 1
2N/A FS = ""
2N/A}
2N/A/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
2N/A line = \$ 0
2N/A split(line, arg, " ")
2N/A if (arg[1] == "#") {
2N/A defundef = arg[2]
2N/A mac1 = arg[3]
2N/A } else {
2N/A defundef = substr(arg[1], 2)
2N/A mac1 = arg[2]
2N/A }
2N/A split(mac1, mac2, "(") #)
2N/A macro = mac2[1]
2N/A prefix = substr(line, 1, index(line, defundef) - 1)
2N/A if (D_is_set[macro]) {
2N/A # Preserve the white space surrounding the "#".
2N/A print prefix "define", macro P[macro] D[macro]
2N/A next
2N/A } else {
2N/A # Replace #undef with comments. This is necessary, for example,
2N/A # in the case of _POSIX_SOURCE, which is predefined and required
2N/A # on some systems where configure will not decide to define it.
2N/A if (defundef == "undef") {
2N/A print "/*", prefix defundef, macro, "*/"
2N/A next
2N/A }
2N/A }
2N/A}
2N/A{ print }
2N/A_ACAWK
2N/A_ACEOF
2N/Acat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2N/A { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
2N/A$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/Afi # test -n "$CONFIG_HEADERS"
2N/A
2N/A
2N/Aeval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
2N/Ashift
2N/Afor ac_tag
2N/Ado
2N/A case $ac_tag in
2N/A :[FHLC]) ac_mode=$ac_tag; continue;;
2N/A esac
2N/A case $ac_mode$ac_tag in
2N/A :[FHL]*:*);;
2N/A :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
2N/A$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
2N/A { (exit 1); exit 1; }; };;
2N/A :[FH]-) ac_tag=-:-;;
2N/A :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
2N/A esac
2N/A ac_save_IFS=$IFS
2N/A IFS=:
2N/A set x $ac_tag
2N/A IFS=$ac_save_IFS
2N/A shift
2N/A ac_file=$1
2N/A shift
2N/A
2N/A case $ac_mode in
2N/A :L) ac_source=$1;;
2N/A :[FH])
2N/A ac_file_inputs=
2N/A for ac_f
2N/A do
2N/A case $ac_f in
2N/A -) ac_f="$tmp/stdin";;
2N/A *) # Look for the file first in the build tree, then in the source tree
2N/A # (if the path is not absolute). The absolute path cannot be DOS-style,
2N/A # because $ac_f cannot contain `:'.
2N/A test -f "$ac_f" ||
2N/A case $ac_f in
2N/A [\\/$]*) false;;
2N/A *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
2N/A esac ||
2N/A { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
2N/A$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
2N/A { (exit 1); exit 1; }; };;
2N/A esac
2N/A case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
2N/A ac_file_inputs="$ac_file_inputs '$ac_f'"
2N/A done
2N/A
2N/A # Let's still pretend it is `configure' which instantiates (i.e., don't
2N/A # use $as_me), people would be surprised to read:
2N/A # /* config.h. Generated by config.status. */
2N/A configure_input='Generated from '`
2N/A $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
2N/A `' by configure.'
2N/A if test x"$ac_file" != x-; then
2N/A configure_input="$ac_file. $configure_input"
2N/A { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
2N/A$as_echo "$as_me: creating $ac_file" >&6;}
2N/A fi
2N/A # Neutralize special characters interpreted by sed in replacement strings.
2N/A case $configure_input in #(
2N/A *\&* | *\|* | *\\* )
2N/A ac_sed_conf_input=`$as_echo "$configure_input" |
2N/A sed 's/[\\\\&|]/\\\\&/g'`;; #(
2N/A *) ac_sed_conf_input=$configure_input;;
2N/A esac
2N/A
2N/A case $ac_tag in
2N/A *:-:* | *:-) cat >"$tmp/stdin" \
2N/A || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
2N/A$as_echo "$as_me: error: could not create $ac_file" >&2;}
2N/A { (exit 1); exit 1; }; } ;;
2N/A esac
2N/A ;;
2N/A esac
2N/A
2N/A ac_dir=`$as_dirname -- "$ac_file" ||
2N/A$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2N/A X"$ac_file" : 'X\(//\)[^/]' \| \
2N/A X"$ac_file" : 'X\(//\)$' \| \
2N/A X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
2N/A$as_echo X"$ac_file" |
2N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)[^/].*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\).*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A s/.*/./; q'`
2N/A { as_dir="$ac_dir"
2N/A case $as_dir in #(
2N/A -*) as_dir=./$as_dir;;
2N/A esac
2N/A test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2N/A as_dirs=
2N/A while :; do
2N/A case $as_dir in #(
2N/A *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2N/A *) as_qdir=$as_dir;;
2N/A esac
2N/A as_dirs="'$as_qdir' $as_dirs"
2N/A as_dir=`$as_dirname -- "$as_dir" ||
2N/A$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2N/A X"$as_dir" : 'X\(//\)[^/]' \| \
2N/A X"$as_dir" : 'X\(//\)$' \| \
2N/A X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2N/A$as_echo X"$as_dir" |
2N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)[^/].*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\).*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A s/.*/./; q'`
2N/A test -d "$as_dir" && break
2N/A done
2N/A test -z "$as_dirs" || eval "mkdir $as_dirs"
2N/A } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
2N/A$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2N/A { (exit 1); exit 1; }; }; }
2N/A ac_builddir=.
2N/A
2N/Acase "$ac_dir" in
2N/A.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2N/A*)
2N/A ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2N/A # A ".." for each directory in $ac_dir_suffix.
2N/A ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2N/A case $ac_top_builddir_sub in
2N/A "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2N/A *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2N/A esac ;;
2N/Aesac
2N/Aac_abs_top_builddir=$ac_pwd
2N/Aac_abs_builddir=$ac_pwd$ac_dir_suffix
2N/A# for backward compatibility:
2N/Aac_top_builddir=$ac_top_build_prefix
2N/A
2N/Acase $srcdir in
2N/A .) # We are building in place.
2N/A ac_srcdir=.
2N/A ac_top_srcdir=$ac_top_builddir_sub
2N/A ac_abs_top_srcdir=$ac_pwd ;;
2N/A [\\/]* | ?:[\\/]* ) # Absolute name.
2N/A ac_srcdir=$srcdir$ac_dir_suffix;
2N/A ac_top_srcdir=$srcdir
2N/A ac_abs_top_srcdir=$srcdir ;;
2N/A *) # Relative name.
2N/A ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2N/A ac_top_srcdir=$ac_top_build_prefix$srcdir
2N/A ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2N/Aesac
2N/Aac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2N/A
2N/A
2N/A case $ac_mode in
2N/A :F)
2N/A #
2N/A # CONFIG_FILE
2N/A #
2N/A
2N/A case $INSTALL in
2N/A [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2N/A *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
2N/A esac
2N/A ac_MKDIR_P=$MKDIR_P
2N/A case $MKDIR_P in
2N/A [\\/$]* | ?:[\\/]* ) ;;
2N/A */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
2N/A esac
2N/A_ACEOF
2N/A
2N/Acat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2N/A# If the template does not know about datarootdir, expand it.
2N/A# FIXME: This hack should be removed a few years after 2.60.
2N/Aac_datarootdir_hack=; ac_datarootdir_seen=
2N/A
2N/Aac_sed_dataroot='
2N/A/datarootdir/ {
2N/A p
2N/A q
2N/A}
2N/A/@datadir@/p
2N/A/@docdir@/p
2N/A/@infodir@/p
2N/A/@localedir@/p
2N/A/@mandir@/p
2N/A'
2N/Acase `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
2N/A*datarootdir*) ac_datarootdir_seen=yes;;
2N/A*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
2N/A$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
2N/A_ACEOF
2N/Acat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2N/A ac_datarootdir_hack='
2N/A s&@datadir@&$datadir&g
2N/A s&@docdir@&$docdir&g
2N/A s&@infodir@&$infodir&g
2N/A s&@localedir@&$localedir&g
2N/A s&@mandir@&$mandir&g
2N/A s&\\\${datarootdir}&$datarootdir&g' ;;
2N/Aesac
2N/A_ACEOF
2N/A
2N/A# Neutralize VPATH when `$srcdir' = `.'.
2N/A# Shell code in configure.ac might set extrasub.
2N/A# FIXME: do we really want to maintain this feature?
2N/Acat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2N/Aac_sed_extra="$ac_vpsub
2N/A$extrasub
2N/A_ACEOF
2N/Acat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2N/A:t
2N/A/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
2N/As|@configure_input@|$ac_sed_conf_input|;t t
2N/As&@top_builddir@&$ac_top_builddir_sub&;t t
2N/As&@top_build_prefix@&$ac_top_build_prefix&;t t
2N/As&@srcdir@&$ac_srcdir&;t t
2N/As&@abs_srcdir@&$ac_abs_srcdir&;t t
2N/As&@top_srcdir@&$ac_top_srcdir&;t t
2N/As&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
2N/As&@builddir@&$ac_builddir&;t t
2N/As&@abs_builddir@&$ac_abs_builddir&;t t
2N/As&@abs_top_builddir@&$ac_abs_top_builddir&;t t
2N/As&@INSTALL@&$ac_INSTALL&;t t
2N/As&@MKDIR_P@&$ac_MKDIR_P&;t t
2N/A$ac_datarootdir_hack
2N/A"
2N/Aeval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
2N/A || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
2N/A$as_echo "$as_me: error: could not create $ac_file" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A
2N/Atest -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
2N/A { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
2N/A { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
2N/A { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2N/Awhich seems to be undefined. Please make sure it is defined." >&5
2N/A$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
2N/Awhich seems to be undefined. Please make sure it is defined." >&2;}
2N/A
2N/A rm -f "$tmp/stdin"
2N/A case $ac_file in
2N/A -) cat "$tmp/out" && rm -f "$tmp/out";;
2N/A *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
2N/A esac \
2N/A || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
2N/A$as_echo "$as_me: error: could not create $ac_file" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A ;;
2N/A :H)
2N/A #
2N/A # CONFIG_HEADER
2N/A #
2N/A if test x"$ac_file" != x-; then
2N/A {
2N/A $as_echo "/* $configure_input */" \
2N/A && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
2N/A } >"$tmp/config.h" \
2N/A || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
2N/A$as_echo "$as_me: error: could not create $ac_file" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
2N/A { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
2N/A$as_echo "$as_me: $ac_file is unchanged" >&6;}
2N/A else
2N/A rm -f "$ac_file"
2N/A mv "$tmp/config.h" "$ac_file" \
2N/A || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
2N/A$as_echo "$as_me: error: could not create $ac_file" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A else
2N/A $as_echo "/* $configure_input */" \
2N/A && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
2N/A || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
2N/A$as_echo "$as_me: error: could not create -" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A# Compute "$ac_file"'s index in $config_headers.
2N/A_am_stamp_count=1
2N/Afor _am_header in $config_headers :; do
2N/A case $_am_header in
2N/A "$ac_file" | "$ac_file":* )
2N/A break ;;
2N/A * )
2N/A _am_stamp_count=`expr $_am_stamp_count + 1` ;;
2N/A esac
2N/Adone
2N/Aecho "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
2N/A$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2N/A X"$ac_file" : 'X\(//\)[^/]' \| \
2N/A X"$ac_file" : 'X\(//\)$' \| \
2N/A X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
2N/A$as_echo X"$ac_file" |
2N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)[^/].*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\).*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A s/.*/./; q'`/stamp-h$_am_stamp_count
2N/A ;;
2N/A :L)
2N/A #
2N/A # CONFIG_LINK
2N/A #
2N/A
2N/A if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
2N/A :
2N/A else
2N/A # Prefer the file from the source tree if names are identical.
2N/A if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
2N/A ac_source=$srcdir/$ac_source
2N/A fi
2N/A
2N/A { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
2N/A$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
2N/A
2N/A if test ! -r "$ac_source"; then
2N/A { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
2N/A$as_echo "$as_me: error: $ac_source: file not found" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A rm -f "$ac_file"
2N/A
2N/A # Try a relative symlink, then a hard link, then a copy.
2N/A case $srcdir in
2N/A [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
2N/A *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
2N/A esac
2N/A ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
2N/A ln "$ac_source" "$ac_file" 2>/dev/null ||
2N/A cp -p "$ac_source" "$ac_file" ||
2N/A { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
2N/A$as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A fi
2N/A ;;
2N/A :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
2N/A$as_echo "$as_me: executing $ac_file commands" >&6;}
2N/A ;;
2N/A esac
2N/A
2N/A
2N/A case $ac_file$ac_mode in
2N/A "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
2N/A # Strip MF so we end up with the name of the file.
2N/A mf=`echo "$mf" | sed -e 's/:.*$//'`
2N/A # Check whether this is an Automake generated Makefile or not.
2N/A # We used to match only the files named `Makefile.in', but
2N/A # some people rename them; so instead we look at the file content.
2N/A # Grep'ing the first line is not enough: some people post-process
2N/A # each Makefile.in and add a new line on top of each file to say so.
2N/A # Grep'ing the whole file is not good either: AIX grep has a line
2N/A # limit of 2048, but all sed's we know have understand at least 4000.
2N/A if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
2N/A dirpart=`$as_dirname -- "$mf" ||
2N/A$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2N/A X"$mf" : 'X\(//\)[^/]' \| \
2N/A X"$mf" : 'X\(//\)$' \| \
2N/A X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
2N/A$as_echo X"$mf" |
2N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)[^/].*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\).*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A s/.*/./; q'`
2N/A else
2N/A continue
2N/A fi
2N/A # Extract the definition of DEPDIR, am__include, and am__quote
2N/A # from the Makefile without running `make'.
2N/A DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
2N/A test -z "$DEPDIR" && continue
2N/A am__include=`sed -n 's/^am__include = //p' < "$mf"`
2N/A test -z "am__include" && continue
2N/A am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
2N/A # When using ansi2knr, U may be empty or an underscore; expand it
2N/A U=`sed -n 's/^U = //p' < "$mf"`
2N/A # Find all dependency output files, they are included files with
2N/A # $(DEPDIR) in their names. We invoke sed twice because it is the
2N/A # simplest approach to changing $(DEPDIR) to its actual value in the
2N/A # expansion.
2N/A for file in `sed -n "
2N/A s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
2N/A sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
2N/A # Make sure the directory exists.
2N/A test -f "$dirpart/$file" && continue
2N/A fdir=`$as_dirname -- "$file" ||
2N/A$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2N/A X"$file" : 'X\(//\)[^/]' \| \
2N/A X"$file" : 'X\(//\)$' \| \
2N/A X"$file" : 'X\(/\)' \| . 2>/dev/null ||
2N/A$as_echo X"$file" |
2N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)[^/].*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\).*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A s/.*/./; q'`
2N/A { as_dir=$dirpart/$fdir
2N/A case $as_dir in #(
2N/A -*) as_dir=./$as_dir;;
2N/A esac
2N/A test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2N/A as_dirs=
2N/A while :; do
2N/A case $as_dir in #(
2N/A *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2N/A *) as_qdir=$as_dir;;
2N/A esac
2N/A as_dirs="'$as_qdir' $as_dirs"
2N/A as_dir=`$as_dirname -- "$as_dir" ||
2N/A$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2N/A X"$as_dir" : 'X\(//\)[^/]' \| \
2N/A X"$as_dir" : 'X\(//\)$' \| \
2N/A X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2N/A$as_echo X"$as_dir" |
2N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)[^/].*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\/\)$/{
2N/A s//\1/
2N/A q
2N/A }
2N/A /^X\(\/\).*/{
2N/A s//\1/
2N/A q
2N/A }
2N/A s/.*/./; q'`
2N/A test -d "$as_dir" && break
2N/A done
2N/A test -z "$as_dirs" || eval "mkdir $as_dirs"
2N/A } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
2N/A$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2N/A { (exit 1); exit 1; }; }; }
2N/A # echo "creating $dirpart/$file"
2N/A echo '# dummy' > "$dirpart/$file"
2N/A done
2N/Adone
2N/A ;;
2N/A "po-directories":C)
2N/A for ac_file in $CONFIG_FILES; do
2N/A # Support "outfile[:infile[:infile...]]"
2N/A case "$ac_file" in
2N/A *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2N/A esac
2N/A # PO directories have a Makefile.in generated from Makefile.in.in.
2N/A case "$ac_file" in */Makefile.in)
2N/A # Adjust a relative srcdir.
2N/A ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
2N/A ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
2N/A ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
2N/A # In autoconf-2.13 it is called $ac_given_srcdir.
2N/A # In autoconf-2.50 it is called $srcdir.
2N/A test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
2N/A case "$ac_given_srcdir" in
2N/A .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
2N/A /*) top_srcdir="$ac_given_srcdir" ;;
2N/A *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
2N/A esac
2N/A # Treat a directory as a PO directory if and only if it has a
2N/A # POTFILES.in file. This allows packages to have multiple PO
2N/A # directories under different names or in different locations.
2N/A if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
2N/A rm -f "$ac_dir/POTFILES"
2N/A test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
2N/A cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
2N/A POMAKEFILEDEPS="POTFILES.in"
2N/A # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
2N/A # on $ac_dir but don't depend on user-specified configuration
2N/A # parameters.
2N/A if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
2N/A # The LINGUAS file contains the set of available languages.
2N/A if test -n "$OBSOLETE_ALL_LINGUAS"; then
2N/A test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
2N/A fi
2N/A ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
2N/A # Hide the ALL_LINGUAS assigment from automake < 1.5.
2N/A eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
2N/A POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
2N/A else
2N/A # The set of available languages was given in configure.in.
2N/A # Hide the ALL_LINGUAS assigment from automake < 1.5.
2N/A eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
2N/A fi
2N/A # Compute POFILES
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
2N/A # Compute UPDATEPOFILES
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
2N/A # Compute DUMMYPOFILES
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
2N/A # Compute GMOFILES
2N/A # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
2N/A case "$ac_given_srcdir" in
2N/A .) srcdirpre= ;;
2N/A *) srcdirpre='$(srcdir)/' ;;
2N/A esac
2N/A POFILES=
2N/A UPDATEPOFILES=
2N/A DUMMYPOFILES=
2N/A GMOFILES=
2N/A for lang in $ALL_LINGUAS; do
2N/A POFILES="$POFILES $srcdirpre$lang.po"
2N/A UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
2N/A DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
2N/A GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
2N/A done
2N/A # CATALOGS depends on both $ac_dir and the user's LINGUAS
2N/A # environment variable.
2N/A INST_LINGUAS=
2N/A if test -n "$ALL_LINGUAS"; then
2N/A for presentlang in $ALL_LINGUAS; do
2N/A useit=no
2N/A if test "%UNSET%" != "$LINGUAS"; then
2N/A desiredlanguages="$LINGUAS"
2N/A else
2N/A desiredlanguages="$ALL_LINGUAS"
2N/A fi
2N/A for desiredlang in $desiredlanguages; do
2N/A # Use the presentlang catalog if desiredlang is
2N/A # a. equal to presentlang, or
2N/A # b. a variant of presentlang (because in this case,
2N/A # presentlang can be used as a fallback for messages
2N/A # which are not translated in the desiredlang catalog).
2N/A case "$desiredlang" in
2N/A "$presentlang"*) useit=yes;;
2N/A esac
2N/A done
2N/A if test $useit = yes; then
2N/A INST_LINGUAS="$INST_LINGUAS $presentlang"
2N/A fi
2N/A done
2N/A fi
2N/A CATALOGS=
2N/A if test -n "$INST_LINGUAS"; then
2N/A for lang in $INST_LINGUAS; do
2N/A CATALOGS="$CATALOGS $lang.gmo"
2N/A done
2N/A fi
2N/A test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
2N/A 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"
2N/A for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
2N/A if test -f "$f"; then
2N/A case "$f" in
2N/A *.orig | *.bak | *~) ;;
2N/A *) cat "$f" >> "$ac_dir/Makefile" ;;
2N/A esac
2N/A fi
2N/A done
2N/A fi
2N/A ;;
2N/A esac
2N/A done ;;
2N/A "stamp-h":F) echo timestamp > stamp-h ;;
2N/A
2N/A esac
2N/Adone # for ac_tag
2N/A
2N/A
2N/A{ (exit 0); exit 0; }
2N/A_ACEOF
2N/Achmod +x $CONFIG_STATUS
2N/Aac_clean_files=$ac_clean_files_save
2N/A
2N/Atest $ac_write_fail = 0 ||
2N/A { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
2N/A$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
2N/A { (exit 1); exit 1; }; }
2N/A
2N/A
2N/A# configure is writing to config.log, and then calls config.status.
2N/A# config.status does its own redirection, appending to config.log.
2N/A# Unfortunately, on DOS this fails, as config.log is still kept open
2N/A# by configure, so config.status won't be able to write to it; its
2N/A# output is simply discarded. So we exec the FD to /dev/null,
2N/A# effectively closing config.log, so it can be properly (re)opened and
2N/A# appended to by config.status. When coming back to configure, we
2N/A# need to make the FD available again.
2N/Aif test "$no_create" != yes; then
2N/A ac_cs_success=:
2N/A ac_config_status_args=
2N/A test "$silent" = yes &&
2N/A ac_config_status_args="$ac_config_status_args --quiet"
2N/A exec 5>/dev/null
2N/A $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
2N/A exec 5>>config.log
2N/A # Use ||, not &&, to avoid exiting from the if with $? = 1, which
2N/A # would make configure fail if this is the last instruction.
2N/A $ac_cs_success || { (exit 1); exit 1; }
2N/Afi
2N/Aif test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
2N/A { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
2N/A$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
2N/Afi
2N/A
2N/A
2N/Aecho "*******************************************************"
2N/Aecho GRUB2 will be compiled with following components:
2N/Aecho Platform: "$target_cpu"-"$platform"
2N/Aif [ x"$platform" = xemu ]; then
2N/Aif [ x"$grub_emu_usb_excuse" = x ]; then
2N/Aecho USB support for grub-emu: Yes
2N/Aelse
2N/Aecho USB support for grub-emu: No "($grub_emu_usb_excuse)"
2N/Afi
2N/Aif [ x"$grub_emu_sdl_excuse" = x ]; then
2N/Aecho SDL support for grub-emu: Yes
2N/Aelse
2N/Aecho SDL support for grub-emu: No "($grub_emu_sdl_excuse)"
2N/Afi
2N/Aif [ x"$grub_emu_pci_excuse" = x ]; then
2N/Aecho PCI support for grub-emu: Yes
2N/Aelse
2N/Aecho PCI support for grub-emu: No "($grub_emu_pci_excuse)"
2N/Afi
2N/Afi
2N/Aif test x"$device_mapper_excuse" = x ; then
2N/Aecho With devmapper support: Yes
2N/Aelse
2N/Aecho With devmapper support: No "($device_mapper_excuse)"
2N/Afi
2N/Aif [ x"$enable_mm_debug" = xyes ]; then
2N/Aecho With memory debugging: Yes
2N/Aelse
2N/Aecho With memory debugging: No
2N/Afi
2N/Aif [ x"$enable_cache_stats" = xyes ]; then
2N/Aecho With disk cache statistics: Yes
2N/Aelse
2N/Aecho With disk cache statistics: No
2N/Afi
2N/Aif [ x"$efiemu_excuse" = x ]; then
2N/Aecho efiemu runtime: Yes
2N/Aelse
2N/Aecho efiemu runtime: No "($efiemu_excuse)"
2N/Afi
2N/Aif [ x"$grub_mkfont_excuse" = x ]; then
2N/Aecho grub-mkfont: Yes
2N/Aelse
2N/Aecho grub-mkfont: No "($grub_mkfont_excuse)"
2N/Afi
2N/Aif [ x"$grub_mount_excuse" = x ]; then
2N/Aecho grub-mount: Yes
2N/Aelse
2N/Aecho grub-mount: No "($grub_mount_excuse)"
2N/Afi
2N/Aecho "*******************************************************"