1N/A#! /bin/sh
1N/A# Guess values for system-dependent variables and create Makefiles.
1N/A# Generated by GNU Autoconf 2.59 for GRUB 0.97.
1N/A#
1N/A# Report bugs to <bug-grub@gnu.org>.
1N/A#
1N/A# Copyright (C) 2003 Free Software Foundation, Inc.
1N/A# This configure script is free software; the Free Software Foundation
1N/A# gives unlimited permission to copy, distribute and modify it.
1N/A## --------------------- ##
1N/A## M4sh Initialization. ##
1N/A## --------------------- ##
1N/A
1N/A# Be Bourne compatible
1N/Aif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1N/A emulate sh
1N/A NULLCMD=:
1N/A # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1N/A # is contrary to our usage. Disable this feature.
1N/A alias -g '${1+"$@"}'='"$@"'
1N/Aelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1N/A set -o posix
1N/Afi
1N/ADUALCASE=1; export DUALCASE # for MKS sh
1N/A
1N/A# Support unset when possible.
1N/Aif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1N/A as_unset=unset
1N/Aelse
1N/A as_unset=false
1N/Afi
1N/A
1N/A
1N/A# Work around bugs in pre-3.0 UWIN ksh.
1N/A$as_unset ENV MAIL MAILPATH
1N/APS1='$ '
1N/APS2='> '
1N/APS4='+ '
1N/A
1N/A# NLS nuisances.
1N/Afor as_var in \
1N/A LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
1N/A LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
1N/A LC_TELEPHONE LC_TIME
1N/Ado
1N/A if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1N/A eval $as_var=C; export $as_var
1N/A else
1N/A $as_unset $as_var
1N/A fi
1N/Adone
1N/A
1N/A# Required to use basename.
1N/Aif expr a : '\(a\)' >/dev/null 2>&1; then
1N/A as_expr=expr
1N/Aelse
1N/A as_expr=false
1N/Afi
1N/A
1N/Aif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1N/A as_basename=basename
1N/Aelse
1N/A as_basename=false
1N/Afi
1N/A
1N/A
1N/A# Name of the executable.
1N/Aas_me=`$as_basename "$0" ||
1N/A$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1N/A X"$0" : 'X\(//\)$' \| \
1N/A X"$0" : 'X\(/\)$' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X/"$0" |
1N/A sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
1N/A /^X\/\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\/\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A
1N/A
1N/A# PATH needs CR, and LINENO needs CR and PATH.
1N/A# Avoid depending upon Character Ranges.
1N/Aas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1N/Aas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1N/Aas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1N/Aas_cr_digits='0123456789'
1N/Aas_cr_alnum=$as_cr_Letters$as_cr_digits
1N/A
1N/A# The user is always right.
1N/Aif test "${PATH_SEPARATOR+set}" != set; then
1N/A echo "#! /bin/sh" >conf$$.sh
1N/A echo "exit 0" >>conf$$.sh
1N/A chmod +x conf$$.sh
1N/A if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1N/A PATH_SEPARATOR=';'
1N/A else
1N/A PATH_SEPARATOR=:
1N/A fi
1N/A rm -f conf$$.sh
1N/Afi
1N/A
1N/A
1N/A as_lineno_1=$LINENO
1N/A as_lineno_2=$LINENO
1N/A as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1N/A test "x$as_lineno_1" != "x$as_lineno_2" &&
1N/A test "x$as_lineno_3" = "x$as_lineno_2" || {
1N/A # Find who we are. Look in the path if we contain no path at all
1N/A # relative or not.
1N/A case $0 in
1N/A *[\\/]* ) as_myself=$0 ;;
1N/A *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1N/Adone
1N/A
1N/A ;;
1N/A esac
1N/A # We did not find ourselves, most probably we were run as `sh COMMAND'
1N/A # in which case we are not to be found in the path.
1N/A if test "x$as_myself" = x; then
1N/A as_myself=$0
1N/A fi
1N/A if test ! -f "$as_myself"; then
1N/A { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
1N/A { (exit 1); exit 1; }; }
1N/A fi
1N/A case $CONFIG_SHELL in
1N/A '')
1N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for as_base in sh bash ksh sh5; do
1N/A case $as_dir in
1N/A /*)
1N/A if ("$as_dir/$as_base" -c '
1N/A as_lineno_1=$LINENO
1N/A as_lineno_2=$LINENO
1N/A as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1N/A test "x$as_lineno_1" != "x$as_lineno_2" &&
1N/A test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
1N/A $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
1N/A $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
1N/A CONFIG_SHELL=$as_dir/$as_base
1N/A export CONFIG_SHELL
1N/A exec "$CONFIG_SHELL" "$0" ${1+"$@"}
1N/A fi;;
1N/A esac
1N/A done
1N/Adone
1N/A;;
1N/A esac
1N/A
1N/A # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
1N/A # uniformly replaced by the line number. The first 'sed' inserts a
1N/A # line-number line before each line; the second 'sed' does the real
1N/A # work. The second script uses 'N' to pair each line-number line
1N/A # with the numbered line, and appends trailing '-' during
1N/A # substitution so that $LINENO is not a special case at line end.
1N/A # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1N/A # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
1N/A sed '=' <$as_myself |
1N/A sed '
1N/A N
1N/A s,$,-,
1N/A : loop
1N/A s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1N/A t loop
1N/A s,-$,,
1N/A s,^['$as_cr_digits']*\n,,
1N/A ' >$as_me.lineno &&
1N/A chmod +x $as_me.lineno ||
1N/A { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
1N/A { (exit 1); exit 1; }; }
1N/A
1N/A # Don't try to exec as it changes $[0], causing all sort of problems
1N/A # (the dirname of $[0] is not the place where we might find the
1N/A # original and so on. Autoconf is especially sensible to this).
1N/A . ./$as_me.lineno
1N/A # Exit status is that of the last command.
1N/A exit
1N/A}
1N/A
1N/A
1N/Acase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1N/A *c*,-n*) ECHO_N= ECHO_C='
1N/A' ECHO_T=' ' ;;
1N/A *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1N/A *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1N/Aesac
1N/A
1N/Aif expr a : '\(a\)' >/dev/null 2>&1; then
1N/A as_expr=expr
1N/Aelse
1N/A as_expr=false
1N/Afi
1N/A
1N/Arm -f conf$$ conf$$.exe conf$$.file
1N/Aecho >conf$$.file
1N/Aif ln -s conf$$.file conf$$ 2>/dev/null; then
1N/A # We could just check for DJGPP; but this test a) works b) is more generic
1N/A # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1N/A if test -f conf$$.exe; then
1N/A # Don't use ln at all; we don't have any links
1N/A as_ln_s='cp -p'
1N/A else
1N/A as_ln_s='ln -s'
1N/A fi
1N/Aelif ln conf$$.file conf$$ 2>/dev/null; then
1N/A as_ln_s=ln
1N/Aelse
1N/A as_ln_s='cp -p'
1N/Afi
1N/Arm -f conf$$ conf$$.exe conf$$.file
1N/A
1N/Aif mkdir -p . 2>/dev/null; then
1N/A as_mkdir_p=:
1N/Aelse
1N/A test -d ./-p && rmdir ./-p
1N/A as_mkdir_p=false
1N/Afi
1N/A
1N/Aas_executable_p="test -f"
1N/A
1N/A# Sed expression to map a string onto a valid CPP name.
1N/Aas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1N/A
1N/A# Sed expression to map a string onto a valid variable name.
1N/Aas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1N/A
1N/A
1N/A# IFS
1N/A# We need space, tab and new line, in precisely that order.
1N/Aas_nl='
1N/A'
1N/AIFS=" $as_nl"
1N/A
1N/A# CDPATH.
1N/A$as_unset CDPATH
1N/A
1N/A
1N/A# Name of the host.
1N/A# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
1N/A# so uname gets run too.
1N/Aac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
1N/A
1N/Aexec 6>&1
1N/A
1N/A#
1N/A# Initializations.
1N/A#
1N/Aac_default_prefix=/usr/local
1N/Aac_config_libobj_dir=.
1N/Across_compiling=no
1N/Asubdirs=
1N/AMFLAGS=
1N/AMAKEFLAGS=
1N/ASHELL=${CONFIG_SHELL-/bin/sh}
1N/A
1N/A# Maximum number of lines to put in a shell here document.
1N/A# This variable seems obsolete. It should probably be removed, and
1N/A# only ac_max_sed_lines should be used.
1N/A: ${ac_max_here_lines=38}
1N/A
1N/A# Identity of this package.
1N/APACKAGE_NAME='GRUB'
1N/APACKAGE_TARNAME='grub'
1N/APACKAGE_VERSION='0.97'
1N/APACKAGE_STRING='GRUB 0.97'
1N/APACKAGE_BUGREPORT='bug-grub@gnu.org'
1N/A
1N/Aac_unique_file="stage2/stage2.c"
1N/A# Factoring default headers for most tests.
1N/Aac_includes_default="\
1N/A#include <stdio.h>
1N/A#if HAVE_SYS_TYPES_H
1N/A# include <sys/types.h>
1N/A#endif
1N/A#if HAVE_SYS_STAT_H
1N/A# include <sys/stat.h>
1N/A#endif
1N/A#if STDC_HEADERS
1N/A# include <stdlib.h>
1N/A# include <stddef.h>
1N/A#else
1N/A# if HAVE_STDLIB_H
1N/A# include <stdlib.h>
1N/A# endif
1N/A#endif
1N/A#if HAVE_STRING_H
1N/A# if !STDC_HEADERS && HAVE_MEMORY_H
1N/A# include <memory.h>
1N/A# endif
1N/A# include <string.h>
1N/A#endif
1N/A#if HAVE_STRINGS_H
1N/A# include <strings.h>
1N/A#endif
1N/A#if HAVE_INTTYPES_H
1N/A# include <inttypes.h>
1N/A#else
1N/A# if HAVE_STDINT_H
1N/A# include <stdint.h>
1N/A# endif
1N/A#endif
1N/A#if HAVE_UNISTD_H
1N/A# include <unistd.h>
1N/A#endif"
1N/A
1N/Aac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT PERL CC ac_ct_CC CFLAGS LDFLAGS CPPFLAGS EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS RANLIB ac_ct_RANLIB STAGE1_CFLAGS STAGE2_CFLAGS GRUB_CFLAGS OBJCOPY ac_ct_OBJCOPY GRUB_LIBS CPP EGREP NETBOOT_SUPPORT_TRUE NETBOOT_SUPPORT_FALSE DISKLESS_SUPPORT_TRUE DISKLESS_SUPPORT_FALSE HERCULES_SUPPORT_TRUE HERCULES_SUPPORT_FALSE SERIAL_SUPPORT_TRUE SERIAL_SUPPORT_FALSE SERIAL_SPEED_SIMULATION_TRUE SERIAL_SPEED_SIMULATION_FALSE BUILD_EXAMPLE_KERNEL_TRUE BUILD_EXAMPLE_KERNEL_FALSE FSYS_CFLAGS NET_CFLAGS NET_EXTRAFLAGS NETBOOT_DRIVERS CCASFLAGS LIBOBJS LTLIBOBJS'
1N/Aac_subst_files=''
1N/A
1N/A# Initialize some variables set by options.
1N/Aac_init_help=
1N/Aac_init_version=false
1N/A# The variables have the same names as the options, with
1N/A# dashes changed to underlines.
1N/Acache_file=/dev/null
1N/Aexec_prefix=NONE
1N/Ano_create=
1N/Ano_recursion=
1N/Aprefix=NONE
1N/Aprogram_prefix=NONE
1N/Aprogram_suffix=NONE
1N/Aprogram_transform_name=s,x,x,
1N/Asilent=
1N/Asite=
1N/Asrcdir=
1N/Averbose=
1N/Ax_includes=NONE
1N/Ax_libraries=NONE
1N/A
1N/A# Installation directory options.
1N/A# These are left unexpanded so users can "make install exec_prefix=/foo"
1N/A# and all the variables that are supposed to be based on exec_prefix
1N/A# by default will actually change.
1N/A# Use braces instead of parens because sh, perl, etc. also accept them.
1N/Abindir='${exec_prefix}/bin'
1N/Asbindir='${exec_prefix}/sbin'
1N/Alibexecdir='${exec_prefix}/libexec'
1N/Adatadir='${prefix}/share'
1N/Asysconfdir='${prefix}/etc'
1N/Asharedstatedir='${prefix}/com'
1N/Alocalstatedir='${prefix}/var'
1N/Alibdir='${exec_prefix}/lib'
1N/Aincludedir='${prefix}/include'
1N/Aoldincludedir='/usr/include'
1N/Ainfodir='${prefix}/info'
1N/Amandir='${prefix}/man'
1N/A
1N/Aac_prev=
1N/Afor ac_option
1N/Ado
1N/A # If the previous option needs an argument, assign it.
1N/A if test -n "$ac_prev"; then
1N/A eval "$ac_prev=\$ac_option"
1N/A ac_prev=
1N/A continue
1N/A fi
1N/A
1N/A ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
1N/A
1N/A # Accept the important Cygnus configure options, so we can diagnose typos.
1N/A
1N/A case $ac_option in
1N/A
1N/A -bindir | --bindir | --bindi | --bind | --bin | --bi)
1N/A ac_prev=bindir ;;
1N/A -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1N/A bindir=$ac_optarg ;;
1N/A
1N/A -build | --build | --buil | --bui | --bu)
1N/A ac_prev=build_alias ;;
1N/A -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1N/A build_alias=$ac_optarg ;;
1N/A
1N/A -cache-file | --cache-file | --cache-fil | --cache-fi \
1N/A | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1N/A ac_prev=cache_file ;;
1N/A -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1N/A | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1N/A cache_file=$ac_optarg ;;
1N/A
1N/A --config-cache | -C)
1N/A cache_file=config.cache ;;
1N/A
1N/A -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
1N/A ac_prev=datadir ;;
1N/A -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
1N/A | --da=*)
1N/A datadir=$ac_optarg ;;
1N/A
1N/A -disable-* | --disable-*)
1N/A ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1N/A # Reject names that are not valid shell variable names.
1N/A expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1N/A { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1N/A { (exit 1); exit 1; }; }
1N/A ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1N/A eval "enable_$ac_feature=no" ;;
1N/A
1N/A -enable-* | --enable-*)
1N/A ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1N/A # Reject names that are not valid shell variable names.
1N/A expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1N/A { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1N/A { (exit 1); exit 1; }; }
1N/A ac_feature=`echo $ac_feature | sed 's/-/_/g'`
1N/A case $ac_option in
1N/A *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1N/A *) ac_optarg=yes ;;
1N/A esac
1N/A eval "enable_$ac_feature='$ac_optarg'" ;;
1N/A
1N/A -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1N/A | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1N/A | --exec | --exe | --ex)
1N/A ac_prev=exec_prefix ;;
1N/A -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1N/A | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1N/A | --exec=* | --exe=* | --ex=*)
1N/A exec_prefix=$ac_optarg ;;
1N/A
1N/A -gas | --gas | --ga | --g)
1N/A # Obsolete; use --with-gas.
1N/A with_gas=yes ;;
1N/A
1N/A -help | --help | --hel | --he | -h)
1N/A ac_init_help=long ;;
1N/A -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1N/A ac_init_help=recursive ;;
1N/A -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1N/A ac_init_help=short ;;
1N/A
1N/A -host | --host | --hos | --ho)
1N/A ac_prev=host_alias ;;
1N/A -host=* | --host=* | --hos=* | --ho=*)
1N/A host_alias=$ac_optarg ;;
1N/A
1N/A -includedir | --includedir | --includedi | --included | --include \
1N/A | --includ | --inclu | --incl | --inc)
1N/A ac_prev=includedir ;;
1N/A -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1N/A | --includ=* | --inclu=* | --incl=* | --inc=*)
1N/A includedir=$ac_optarg ;;
1N/A
1N/A -infodir | --infodir | --infodi | --infod | --info | --inf)
1N/A ac_prev=infodir ;;
1N/A -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1N/A infodir=$ac_optarg ;;
1N/A
1N/A -libdir | --libdir | --libdi | --libd)
1N/A ac_prev=libdir ;;
1N/A -libdir=* | --libdir=* | --libdi=* | --libd=*)
1N/A libdir=$ac_optarg ;;
1N/A
1N/A -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1N/A | --libexe | --libex | --libe)
1N/A ac_prev=libexecdir ;;
1N/A -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1N/A | --libexe=* | --libex=* | --libe=*)
1N/A libexecdir=$ac_optarg ;;
1N/A
1N/A -localstatedir | --localstatedir | --localstatedi | --localstated \
1N/A | --localstate | --localstat | --localsta | --localst \
1N/A | --locals | --local | --loca | --loc | --lo)
1N/A ac_prev=localstatedir ;;
1N/A -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1N/A | --localstate=* | --localstat=* | --localsta=* | --localst=* \
1N/A | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1N/A localstatedir=$ac_optarg ;;
1N/A
1N/A -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1N/A ac_prev=mandir ;;
1N/A -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1N/A mandir=$ac_optarg ;;
1N/A
1N/A -nfp | --nfp | --nf)
1N/A # Obsolete; use --without-fp.
1N/A with_fp=no ;;
1N/A
1N/A -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1N/A | --no-cr | --no-c | -n)
1N/A no_create=yes ;;
1N/A
1N/A -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1N/A | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1N/A no_recursion=yes ;;
1N/A
1N/A -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1N/A | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1N/A | --oldin | --oldi | --old | --ol | --o)
1N/A ac_prev=oldincludedir ;;
1N/A -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1N/A | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1N/A | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1N/A oldincludedir=$ac_optarg ;;
1N/A
1N/A -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1N/A ac_prev=prefix ;;
1N/A -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1N/A prefix=$ac_optarg ;;
1N/A
1N/A -program-prefix | --program-prefix | --program-prefi | --program-pref \
1N/A | --program-pre | --program-pr | --program-p)
1N/A ac_prev=program_prefix ;;
1N/A -program-prefix=* | --program-prefix=* | --program-prefi=* \
1N/A | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1N/A program_prefix=$ac_optarg ;;
1N/A
1N/A -program-suffix | --program-suffix | --program-suffi | --program-suff \
1N/A | --program-suf | --program-su | --program-s)
1N/A ac_prev=program_suffix ;;
1N/A -program-suffix=* | --program-suffix=* | --program-suffi=* \
1N/A | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1N/A program_suffix=$ac_optarg ;;
1N/A
1N/A -program-transform-name | --program-transform-name \
1N/A | --program-transform-nam | --program-transform-na \
1N/A | --program-transform-n | --program-transform- \
1N/A | --program-transform | --program-transfor \
1N/A | --program-transfo | --program-transf \
1N/A | --program-trans | --program-tran \
1N/A | --progr-tra | --program-tr | --program-t)
1N/A ac_prev=program_transform_name ;;
1N/A -program-transform-name=* | --program-transform-name=* \
1N/A | --program-transform-nam=* | --program-transform-na=* \
1N/A | --program-transform-n=* | --program-transform-=* \
1N/A | --program-transform=* | --program-transfor=* \
1N/A | --program-transfo=* | --program-transf=* \
1N/A | --program-trans=* | --program-tran=* \
1N/A | --progr-tra=* | --program-tr=* | --program-t=*)
1N/A program_transform_name=$ac_optarg ;;
1N/A
1N/A -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1N/A | -silent | --silent | --silen | --sile | --sil)
1N/A silent=yes ;;
1N/A
1N/A -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1N/A ac_prev=sbindir ;;
1N/A -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1N/A | --sbi=* | --sb=*)
1N/A sbindir=$ac_optarg ;;
1N/A
1N/A -sharedstatedir | --sharedstatedir | --sharedstatedi \
1N/A | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1N/A | --sharedst | --shareds | --shared | --share | --shar \
1N/A | --sha | --sh)
1N/A ac_prev=sharedstatedir ;;
1N/A -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1N/A | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1N/A | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1N/A | --sha=* | --sh=*)
1N/A sharedstatedir=$ac_optarg ;;
1N/A
1N/A -site | --site | --sit)
1N/A ac_prev=site ;;
1N/A -site=* | --site=* | --sit=*)
1N/A site=$ac_optarg ;;
1N/A
1N/A -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1N/A ac_prev=srcdir ;;
1N/A -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1N/A srcdir=$ac_optarg ;;
1N/A
1N/A -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1N/A | --syscon | --sysco | --sysc | --sys | --sy)
1N/A ac_prev=sysconfdir ;;
1N/A -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1N/A | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1N/A sysconfdir=$ac_optarg ;;
1N/A
1N/A -target | --target | --targe | --targ | --tar | --ta | --t)
1N/A ac_prev=target_alias ;;
1N/A -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1N/A target_alias=$ac_optarg ;;
1N/A
1N/A -v | -verbose | --verbose | --verbos | --verbo | --verb)
1N/A verbose=yes ;;
1N/A
1N/A -version | --version | --versio | --versi | --vers | -V)
1N/A ac_init_version=: ;;
1N/A
1N/A -with-* | --with-*)
1N/A ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1N/A # Reject names that are not valid shell variable names.
1N/A expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1N/A { echo "$as_me: error: invalid package name: $ac_package" >&2
1N/A { (exit 1); exit 1; }; }
1N/A ac_package=`echo $ac_package| sed 's/-/_/g'`
1N/A case $ac_option in
1N/A *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
1N/A *) ac_optarg=yes ;;
1N/A esac
1N/A eval "with_$ac_package='$ac_optarg'" ;;
1N/A
1N/A -without-* | --without-*)
1N/A ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1N/A # Reject names that are not valid shell variable names.
1N/A expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1N/A { echo "$as_me: error: invalid package name: $ac_package" >&2
1N/A { (exit 1); exit 1; }; }
1N/A ac_package=`echo $ac_package | sed 's/-/_/g'`
1N/A eval "with_$ac_package=no" ;;
1N/A
1N/A --x)
1N/A # Obsolete; use --with-x.
1N/A with_x=yes ;;
1N/A
1N/A -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1N/A | --x-incl | --x-inc | --x-in | --x-i)
1N/A ac_prev=x_includes ;;
1N/A -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1N/A | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1N/A x_includes=$ac_optarg ;;
1N/A
1N/A -x-libraries | --x-libraries | --x-librarie | --x-librari \
1N/A | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1N/A ac_prev=x_libraries ;;
1N/A -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1N/A | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1N/A x_libraries=$ac_optarg ;;
1N/A
1N/A -*) { echo "$as_me: error: unrecognized option: $ac_option
1N/ATry \`$0 --help' for more information." >&2
1N/A { (exit 1); exit 1; }; }
1N/A ;;
1N/A
1N/A *=*)
1N/A ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1N/A # Reject names that are not valid shell variable names.
1N/A expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1N/A { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1N/A { (exit 1); exit 1; }; }
1N/A ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
1N/A eval "$ac_envvar='$ac_optarg'"
1N/A export $ac_envvar ;;
1N/A
1N/A *)
1N/A # FIXME: should be removed in autoconf 3.0.
1N/A echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1N/A expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1N/A echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1N/A : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1N/A ;;
1N/A
1N/A esac
1N/Adone
1N/A
1N/Aif test -n "$ac_prev"; then
1N/A ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1N/A { echo "$as_me: error: missing argument to $ac_option" >&2
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/A# Be sure to have absolute paths.
1N/Afor ac_var in exec_prefix prefix
1N/Ado
1N/A eval ac_val=$`echo $ac_var`
1N/A case $ac_val in
1N/A [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
1N/A *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1N/A { (exit 1); exit 1; }; };;
1N/A esac
1N/Adone
1N/A
1N/A# Be sure to have absolute paths.
1N/Afor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
1N/A localstatedir libdir includedir oldincludedir infodir mandir
1N/Ado
1N/A eval ac_val=$`echo $ac_var`
1N/A case $ac_val in
1N/A [\\/$]* | ?:[\\/]* ) ;;
1N/A *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1N/A { (exit 1); exit 1; }; };;
1N/A esac
1N/Adone
1N/A
1N/A# There might be people who depend on the old broken behavior: `$host'
1N/A# used to hold the argument of --host etc.
1N/A# FIXME: To remove some day.
1N/Abuild=$build_alias
1N/Ahost=$host_alias
1N/Atarget=$target_alias
1N/A
1N/A# FIXME: To remove some day.
1N/Aif test "x$host_alias" != x; then
1N/A if test "x$build_alias" = x; then
1N/A cross_compiling=maybe
1N/A echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1N/A If a cross compiler is detected then cross compile mode will be used." >&2
1N/A elif test "x$build_alias" != "x$host_alias"; then
1N/A cross_compiling=yes
1N/A fi
1N/Afi
1N/A
1N/Aac_tool_prefix=
1N/Atest -n "$host_alias" && ac_tool_prefix=$host_alias-
1N/A
1N/Atest "$silent" = yes && exec 6>/dev/null
1N/A
1N/A
1N/A# Find the source files, if location was not specified.
1N/Aif test -z "$srcdir"; then
1N/A ac_srcdir_defaulted=yes
1N/A # Try the directory containing this script, then its parent.
1N/A ac_confdir=`(dirname "$0") 2>/dev/null ||
1N/A$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1N/A X"$0" : 'X\(//\)[^/]' \| \
1N/A X"$0" : 'X\(//\)$' \| \
1N/A X"$0" : 'X\(/\)' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X"$0" |
1N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1N/A /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1N/A /^X\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A srcdir=$ac_confdir
1N/A if test ! -r $srcdir/$ac_unique_file; then
1N/A srcdir=..
1N/A fi
1N/Aelse
1N/A ac_srcdir_defaulted=no
1N/Afi
1N/Aif test ! -r $srcdir/$ac_unique_file; then
1N/A if test "$ac_srcdir_defaulted" = yes; then
1N/A { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
1N/A { (exit 1); exit 1; }; }
1N/A else
1N/A { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1N/A { (exit 1); exit 1; }; }
1N/A fi
1N/Afi
1N/A(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
1N/A { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
1N/A { (exit 1); exit 1; }; }
1N/Asrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
1N/Aac_env_build_alias_set=${build_alias+set}
1N/Aac_env_build_alias_value=$build_alias
1N/Aac_cv_env_build_alias_set=${build_alias+set}
1N/Aac_cv_env_build_alias_value=$build_alias
1N/Aac_env_host_alias_set=${host_alias+set}
1N/Aac_env_host_alias_value=$host_alias
1N/Aac_cv_env_host_alias_set=${host_alias+set}
1N/Aac_cv_env_host_alias_value=$host_alias
1N/Aac_env_target_alias_set=${target_alias+set}
1N/Aac_env_target_alias_value=$target_alias
1N/Aac_cv_env_target_alias_set=${target_alias+set}
1N/Aac_cv_env_target_alias_value=$target_alias
1N/Aac_env_CC_set=${CC+set}
1N/Aac_env_CC_value=$CC
1N/Aac_cv_env_CC_set=${CC+set}
1N/Aac_cv_env_CC_value=$CC
1N/Aac_env_CFLAGS_set=${CFLAGS+set}
1N/Aac_env_CFLAGS_value=$CFLAGS
1N/Aac_cv_env_CFLAGS_set=${CFLAGS+set}
1N/Aac_cv_env_CFLAGS_value=$CFLAGS
1N/Aac_env_LDFLAGS_set=${LDFLAGS+set}
1N/Aac_env_LDFLAGS_value=$LDFLAGS
1N/Aac_cv_env_LDFLAGS_set=${LDFLAGS+set}
1N/Aac_cv_env_LDFLAGS_value=$LDFLAGS
1N/Aac_env_CPPFLAGS_set=${CPPFLAGS+set}
1N/Aac_env_CPPFLAGS_value=$CPPFLAGS
1N/Aac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
1N/Aac_cv_env_CPPFLAGS_value=$CPPFLAGS
1N/Aac_env_CPP_set=${CPP+set}
1N/Aac_env_CPP_value=$CPP
1N/Aac_cv_env_CPP_set=${CPP+set}
1N/Aac_cv_env_CPP_value=$CPP
1N/A
1N/A#
1N/A# Report the --help message.
1N/A#
1N/Aif test "$ac_init_help" = "long"; then
1N/A # Omit some internal or obsolete options to make the list less imposing.
1N/A # This message is too long to be a string in the A/UX 3.1 sh.
1N/A cat <<_ACEOF
1N/A\`configure' configures GRUB 0.97 to adapt to many kinds of systems.
1N/A
1N/AUsage: $0 [OPTION]... [VAR=VALUE]...
1N/A
1N/ATo assign environment variables (e.g., CC, CFLAGS...), specify them as
1N/AVAR=VALUE. See below for descriptions of some of the useful variables.
1N/A
1N/ADefaults for the options are specified in brackets.
1N/A
1N/AConfiguration:
1N/A -h, --help display this help and exit
1N/A --help=short display options specific to this package
1N/A --help=recursive display the short help of all the included packages
1N/A -V, --version display version information and exit
1N/A -q, --quiet, --silent do not print \`checking...' messages
1N/A --cache-file=FILE cache test results in FILE [disabled]
1N/A -C, --config-cache alias for \`--cache-file=config.cache'
1N/A -n, --no-create do not create output files
1N/A --srcdir=DIR find the sources in DIR [configure dir or \`..']
1N/A
1N/A_ACEOF
1N/A
1N/A cat <<_ACEOF
1N/AInstallation directories:
1N/A --prefix=PREFIX install architecture-independent files in PREFIX
1N/A [$ac_default_prefix]
1N/A --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1N/A [PREFIX]
1N/A
1N/ABy default, \`make install' will install all the files in
1N/A\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1N/Aan installation prefix other than \`$ac_default_prefix' using \`--prefix',
1N/Afor instance \`--prefix=\$HOME'.
1N/A
1N/AFor better control, use the options below.
1N/A
1N/AFine tuning of the installation directories:
1N/A --bindir=DIR user executables [EPREFIX/bin]
1N/A --sbindir=DIR system admin executables [EPREFIX/sbin]
1N/A --libexecdir=DIR program executables [EPREFIX/libexec]
1N/A --datadir=DIR read-only architecture-independent data [PREFIX/share]
1N/A --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1N/A --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1N/A --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1N/A --libdir=DIR object code libraries [EPREFIX/lib]
1N/A --includedir=DIR C header files [PREFIX/include]
1N/A --oldincludedir=DIR C header files for non-gcc [/usr/include]
1N/A --infodir=DIR info documentation [PREFIX/info]
1N/A --mandir=DIR man documentation [PREFIX/man]
1N/A_ACEOF
1N/A
1N/A cat <<\_ACEOF
1N/A
1N/AProgram names:
1N/A --program-prefix=PREFIX prepend PREFIX to installed program names
1N/A --program-suffix=SUFFIX append SUFFIX to installed program names
1N/A --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1N/A
1N/ASystem types:
1N/A --build=BUILD configure for building on BUILD [guessed]
1N/A --host=HOST cross-compile to build programs to run on HOST [BUILD]
1N/A_ACEOF
1N/Afi
1N/A
1N/Aif test -n "$ac_init_help"; then
1N/A case $ac_init_help in
1N/A short | recursive ) echo "Configuration of GRUB 0.97:";;
1N/A esac
1N/A cat <<\_ACEOF
1N/A
1N/AOptional Features:
1N/A --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1N/A --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1N/A --enable-maintainer-mode enable make rules and dependencies not useful
1N/A (and sometimes confusing) to the casual installer
1N/A --disable-dependency-tracking speeds up one-time build
1N/A --enable-dependency-tracking do not reject slow dependency extractors
1N/A --disable-ext2fs disable ext2fs support in Stage 2
1N/A --disable-fat disable FAT support in Stage 2
1N/A --disable-ffs disable FFS support in Stage 2
1N/A --disable-ufs disable UFS support in Stage 2
1N/A --disable-ufs2 disable UFS2 support in Stage 2
1N/A --disable-minix disable Minix fs support in Stage 2
1N/A --disable-reiserfs disable ReiserFS support in Stage 2
1N/A --disable-vstafs disable VSTa FS support in Stage 2
1N/A --disable-jfs disable IBM JFS support in Stage 2
1N/A --disable-xfs disable SGI XFS support in Stage 2
1N/A --disable-zfs disable ZFS support in Stage 2
1N/A --disable-iso9660 disable ISO9660 support in Stage 2
1N/A --disable-gunzip disable decompression in Stage 2
1N/A --disable-md5-password disable MD5 password support in Stage 2
1N/A --disable-packet-retransmission
1N/A turn off packet retransmission
1N/A --enable-pci-direct access PCI directly instead of using BIOS
1N/A --enable-3c595 enable 3Com595 driver
1N/A --enable-3c90x enable 3Com90x driver
1N/A --enable-davicom enable Davicom driver
1N/A --enable-e1000 enable Etherexpress Pro/1000 driver
1N/A --enable-eepro100 enable Etherexpress Pro/100 driver
1N/A --enable-epic100 enable SMC 83c170 EPIC/100 driver
1N/A --enable-forcedeth enable Nvidia Geforce driver
1N/A --enable-natsemi enable NatSemi DP8381x driver
1N/A --enable-ns83820 enable NS83820 driver
1N/A --enable-ns8390 enable NE2000 PCI driver
1N/A --enable-pcnet32 enable AMD Lance/PCI PCNet/32 driver
1N/A --enable-pnic enable Bochs Pseudo Nic driver
1N/A --enable-rtl8139 enable Realtek 8139 driver
1N/A --enable-r8169 enable Realtek 8169 driver
1N/A --enable-sis900 enable SIS 900 and SIS 7016 driver
1N/A --enable-sundance enable Sundance ST201 driver
1N/A --enable-tg3 enable Broadcom Tigon3 driver
1N/A --enable-tulip enable Tulip driver
1N/A --enable-tlan enable TI ThunderLAN driver
1N/A --enable-undi enable PXE UNDI driver
1N/A --enable-via-rhine enable Rhine-I/II driver
1N/A --enable-w89c840 enable Winbond W89c840 driver
1N/A --enable-compex-rl2000-fix
1N/A specify this if you have a Compex RL2000 PCI
1N/A --enable-ne-scan=LIST probe for NE base address using LIST
1N/A --enable-wd-default-mem=MEM
1N/A set the default memory location for WD/SMC
1N/A --enable-diskless enable diskless support
1N/A --disable-graphics disable graphics terminal support
1N/A --disable-hercules disable hercules terminal support
1N/A --disable-serial disable serial terminal support
1N/A --enable-serial-speed-simulation
1N/A simulate the slowness of a serial device
1N/A --enable-preset-menu=FILE
1N/A preset a menu file FILE in Stage 2
1N/A --enable-example-kernel
1N/A build the example Multiboot kernel
1N/A --disable-auto-linux-mem-opt
1N/A don't pass Linux mem= option automatically
1N/A
1N/AOptional Packages:
1N/A --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1N/A --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1N/A --with-binutils=DIR search the directory DIR to find binutils
1N/A --without-curses do not use curses
1N/A
1N/ASome influential environment variables:
1N/A CC C compiler command
1N/A CFLAGS C compiler flags
1N/A LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1N/A nonstandard directory <lib dir>
1N/A CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1N/A headers in a nonstandard directory <include dir>
1N/A CPP C preprocessor
1N/A
1N/AUse these variables to override the choices made by `configure' or to help
1N/Ait to find libraries and programs with nonstandard names/locations.
1N/A
1N/AReport bugs to <bug-grub@gnu.org>.
1N/A_ACEOF
1N/Afi
1N/A
1N/Aif test "$ac_init_help" = "recursive"; then
1N/A # If there are subdirs, report their specific --help.
1N/A ac_popdir=`pwd`
1N/A for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1N/A test -d $ac_dir || continue
1N/A ac_builddir=.
1N/A
1N/Aif test "$ac_dir" != .; then
1N/A ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1N/A # A "../" for each directory in $ac_dir_suffix.
1N/A ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1N/Aelse
1N/A ac_dir_suffix= ac_top_builddir=
1N/Afi
1N/A
1N/Acase $srcdir in
1N/A .) # No --srcdir option. We are building in place.
1N/A ac_srcdir=.
1N/A if test -z "$ac_top_builddir"; then
1N/A ac_top_srcdir=.
1N/A else
1N/A ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1N/A fi ;;
1N/A [\\/]* | ?:[\\/]* ) # Absolute path.
1N/A ac_srcdir=$srcdir$ac_dir_suffix;
1N/A ac_top_srcdir=$srcdir ;;
1N/A *) # Relative path.
1N/A ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1N/A ac_top_srcdir=$ac_top_builddir$srcdir ;;
1N/Aesac
1N/A
1N/A# Do not use `cd foo && pwd` to compute absolute paths, because
1N/A# the directories may not exist.
1N/Acase `pwd` in
1N/A.) ac_abs_builddir="$ac_dir";;
1N/A*)
1N/A case "$ac_dir" in
1N/A .) ac_abs_builddir=`pwd`;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1N/A *) ac_abs_builddir=`pwd`/"$ac_dir";;
1N/A esac;;
1N/Aesac
1N/Acase $ac_abs_builddir in
1N/A.) ac_abs_top_builddir=${ac_top_builddir}.;;
1N/A*)
1N/A case ${ac_top_builddir}. in
1N/A .) ac_abs_top_builddir=$ac_abs_builddir;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1N/A *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1N/A esac;;
1N/Aesac
1N/Acase $ac_abs_builddir in
1N/A.) ac_abs_srcdir=$ac_srcdir;;
1N/A*)
1N/A case $ac_srcdir in
1N/A .) ac_abs_srcdir=$ac_abs_builddir;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1N/A *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1N/A esac;;
1N/Aesac
1N/Acase $ac_abs_builddir in
1N/A.) ac_abs_top_srcdir=$ac_top_srcdir;;
1N/A*)
1N/A case $ac_top_srcdir in
1N/A .) ac_abs_top_srcdir=$ac_abs_builddir;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1N/A *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1N/A esac;;
1N/Aesac
1N/A
1N/A cd $ac_dir
1N/A # Check for guested configure; otherwise get Cygnus style configure.
1N/A if test -f $ac_srcdir/configure.gnu; then
1N/A echo
1N/A $SHELL $ac_srcdir/configure.gnu --help=recursive
1N/A elif test -f $ac_srcdir/configure; then
1N/A echo
1N/A $SHELL $ac_srcdir/configure --help=recursive
1N/A elif test -f $ac_srcdir/configure.ac ||
1N/A test -f $ac_srcdir/configure.in; then
1N/A echo
1N/A $ac_configure --help
1N/A else
1N/A echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1N/A fi
1N/A cd $ac_popdir
1N/A done
1N/Afi
1N/A
1N/Atest -n "$ac_init_help" && exit 0
1N/Aif $ac_init_version; then
1N/A cat <<\_ACEOF
1N/AGRUB configure 0.97
1N/Agenerated by GNU Autoconf 2.59
1N/A
1N/ACopyright (C) 2003 Free Software Foundation, Inc.
1N/AThis configure script is free software; the Free Software Foundation
1N/Agives unlimited permission to copy, distribute and modify it.
1N/A_ACEOF
1N/A exit 0
1N/Afi
1N/Aexec 5>config.log
1N/Acat >&5 <<_ACEOF
1N/AThis file contains any messages produced by compilers while
1N/Arunning configure, to aid debugging if configure makes a mistake.
1N/A
1N/AIt was created by GRUB $as_me 0.97, which was
1N/Agenerated by GNU Autoconf 2.59. Invocation command line was
1N/A
1N/A $ $0 $@
1N/A
1N/A_ACEOF
1N/A{
1N/Acat <<_ASUNAME
1N/A## --------- ##
1N/A## Platform. ##
1N/A## --------- ##
1N/A
1N/Ahostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1N/Auname -m = `(uname -m) 2>/dev/null || echo unknown`
1N/Auname -r = `(uname -r) 2>/dev/null || echo unknown`
1N/Auname -s = `(uname -s) 2>/dev/null || echo unknown`
1N/Auname -v = `(uname -v) 2>/dev/null || echo unknown`
1N/A
1N/A/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1N/A/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1N/A
1N/A/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1N/A/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1N/A/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1N/Ahostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1N/A/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1N/A/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1N/A/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1N/A
1N/A_ASUNAME
1N/A
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A echo "PATH: $as_dir"
1N/Adone
1N/A
1N/A} >&5
1N/A
1N/Acat >&5 <<_ACEOF
1N/A
1N/A
1N/A## ----------- ##
1N/A## Core tests. ##
1N/A## ----------- ##
1N/A
1N/A_ACEOF
1N/A
1N/A
1N/A# Keep a trace of the command line.
1N/A# Strip out --no-create and --no-recursion so they do not pile up.
1N/A# Strip out --silent because we don't want to record it for future runs.
1N/A# Also quote any args containing shell meta-characters.
1N/A# Make two passes to allow for proper duplicate-argument suppression.
1N/Aac_configure_args=
1N/Aac_configure_args0=
1N/Aac_configure_args1=
1N/Aac_sep=
1N/Aac_must_keep_next=false
1N/Afor ac_pass in 1 2
1N/Ado
1N/A for ac_arg
1N/A do
1N/A case $ac_arg in
1N/A -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1N/A -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1N/A | -silent | --silent | --silen | --sile | --sil)
1N/A continue ;;
1N/A *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1N/A ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1N/A esac
1N/A case $ac_pass in
1N/A 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1N/A 2)
1N/A ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1N/A if test $ac_must_keep_next = true; then
1N/A ac_must_keep_next=false # Got value, back to normal.
1N/A else
1N/A case $ac_arg in
1N/A *=* | --config-cache | -C | -disable-* | --disable-* \
1N/A | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1N/A | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1N/A | -with-* | --with-* | -without-* | --without-* | --x)
1N/A case "$ac_configure_args0 " in
1N/A "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1N/A esac
1N/A ;;
1N/A -* ) ac_must_keep_next=true ;;
1N/A esac
1N/A fi
1N/A ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1N/A # Get rid of the leading space.
1N/A ac_sep=" "
1N/A ;;
1N/A esac
1N/A done
1N/Adone
1N/A$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1N/A$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1N/A
1N/A# When interrupted or exit'd, cleanup temporary files, and complete
1N/A# config.log. We remove comments because anyway the quotes in there
1N/A# would cause problems or look ugly.
1N/A# WARNING: Be sure not to use single quotes in there, as some shells,
1N/A# such as our DU 5.0 friend, will then `close' the trap.
1N/Atrap 'exit_status=$?
1N/A # Save into config.log some information that might help in debugging.
1N/A {
1N/A echo
1N/A
1N/A cat <<\_ASBOX
1N/A## ---------------- ##
1N/A## Cache variables. ##
1N/A## ---------------- ##
1N/A_ASBOX
1N/A echo
1N/A # The following way of writing the cache mishandles newlines in values,
1N/A{
1N/A (set) 2>&1 |
1N/A case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1N/A *ac_space=\ *)
1N/A sed -n \
1N/A "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1N/A s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1N/A ;;
1N/A *)
1N/A sed -n \
1N/A "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1N/A ;;
1N/A esac;
1N/A}
1N/A echo
1N/A
1N/A cat <<\_ASBOX
1N/A## ----------------- ##
1N/A## Output variables. ##
1N/A## ----------------- ##
1N/A_ASBOX
1N/A echo
1N/A for ac_var in $ac_subst_vars
1N/A do
1N/A eval ac_val=$`echo $ac_var`
1N/A echo "$ac_var='"'"'$ac_val'"'"'"
1N/A done | sort
1N/A echo
1N/A
1N/A if test -n "$ac_subst_files"; then
1N/A cat <<\_ASBOX
1N/A## ------------- ##
1N/A## Output files. ##
1N/A## ------------- ##
1N/A_ASBOX
1N/A echo
1N/A for ac_var in $ac_subst_files
1N/A do
1N/A eval ac_val=$`echo $ac_var`
1N/A echo "$ac_var='"'"'$ac_val'"'"'"
1N/A done | sort
1N/A echo
1N/A fi
1N/A
1N/A if test -s confdefs.h; then
1N/A cat <<\_ASBOX
1N/A## ----------- ##
1N/A## confdefs.h. ##
1N/A## ----------- ##
1N/A_ASBOX
1N/A echo
1N/A sed "/^$/d" confdefs.h | sort
1N/A echo
1N/A fi
1N/A test "$ac_signal" != 0 &&
1N/A echo "$as_me: caught signal $ac_signal"
1N/A echo "$as_me: exit $exit_status"
1N/A } >&5
1N/A rm -f core *.core &&
1N/A rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1N/A exit $exit_status
1N/A ' 0
1N/Afor ac_signal in 1 2 13 15; do
1N/A trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1N/Adone
1N/Aac_signal=0
1N/A
1N/A# confdefs.h avoids OS command line length limits that DEFS can exceed.
1N/Arm -rf conftest* confdefs.h
1N/A# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1N/Aecho >confdefs.h
1N/A
1N/A# Predefined preprocessor variables.
1N/A
1N/Acat >>confdefs.h <<_ACEOF
1N/A#define PACKAGE_NAME "$PACKAGE_NAME"
1N/A_ACEOF
1N/A
1N/A
1N/Acat >>confdefs.h <<_ACEOF
1N/A#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1N/A_ACEOF
1N/A
1N/A
1N/Acat >>confdefs.h <<_ACEOF
1N/A#define PACKAGE_VERSION "$PACKAGE_VERSION"
1N/A_ACEOF
1N/A
1N/A
1N/Acat >>confdefs.h <<_ACEOF
1N/A#define PACKAGE_STRING "$PACKAGE_STRING"
1N/A_ACEOF
1N/A
1N/A
1N/Acat >>confdefs.h <<_ACEOF
1N/A#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1N/A_ACEOF
1N/A
1N/A
1N/A# Let the site file select an alternate cache file if it wants to.
1N/A# Prefer explicitly selected file to automatically selected ones.
1N/Aif test -z "$CONFIG_SITE"; then
1N/A if test "x$prefix" != xNONE; then
1N/A CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1N/A else
1N/A CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1N/A fi
1N/Afi
1N/Afor ac_site_file in $CONFIG_SITE; do
1N/A if test -r "$ac_site_file"; then
1N/A { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1N/Aecho "$as_me: loading site script $ac_site_file" >&6;}
1N/A sed 's/^/| /' "$ac_site_file" >&5
1N/A . "$ac_site_file"
1N/A fi
1N/Adone
1N/A
1N/Aif test -r "$cache_file"; then
1N/A # Some versions of bash will fail to source /dev/null (special
1N/A # files actually), so we avoid doing that.
1N/A if test -f "$cache_file"; then
1N/A { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1N/Aecho "$as_me: loading cache $cache_file" >&6;}
1N/A case $cache_file in
1N/A [\\/]* | ?:[\\/]* ) . $cache_file;;
1N/A *) . ./$cache_file;;
1N/A esac
1N/A fi
1N/Aelse
1N/A { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1N/Aecho "$as_me: creating cache $cache_file" >&6;}
1N/A >$cache_file
1N/Afi
1N/A
1N/A# Check that the precious variables saved in the cache have kept the same
1N/A# value.
1N/Aac_cache_corrupted=false
1N/Afor ac_var in `(set) 2>&1 |
1N/A sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1N/A eval ac_old_set=\$ac_cv_env_${ac_var}_set
1N/A eval ac_new_set=\$ac_env_${ac_var}_set
1N/A eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1N/A eval ac_new_val="\$ac_env_${ac_var}_value"
1N/A case $ac_old_set,$ac_new_set in
1N/A set,)
1N/A { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1N/Aecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1N/A ac_cache_corrupted=: ;;
1N/A ,set)
1N/A { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1N/Aecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1N/A ac_cache_corrupted=: ;;
1N/A ,);;
1N/A *)
1N/A if test "x$ac_old_val" != "x$ac_new_val"; then
1N/A { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1N/Aecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1N/A { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1N/Aecho "$as_me: former value: $ac_old_val" >&2;}
1N/A { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1N/Aecho "$as_me: current value: $ac_new_val" >&2;}
1N/A ac_cache_corrupted=:
1N/A fi;;
1N/A esac
1N/A # Pass precious variables to config.status.
1N/A if test "$ac_new_set" = set; then
1N/A case $ac_new_val in
1N/A *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1N/A ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1N/A *) ac_arg=$ac_var=$ac_new_val ;;
1N/A esac
1N/A case " $ac_configure_args " in
1N/A *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1N/A *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1N/A esac
1N/A fi
1N/Adone
1N/Aif $ac_cache_corrupted; then
1N/A { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1N/Aecho "$as_me: error: changes in the environment can compromise the build" >&2;}
1N/A { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1N/Aecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/Aac_ext=c
1N/Aac_cpp='$CPP $CPPFLAGS'
1N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A ac_config_headers="$ac_config_headers config.h"
1N/A
1N/Aam__api_version="1.9"
1N/Aac_aux_dir=
1N/Afor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1N/A if test -f $ac_dir/install-sh; then
1N/A ac_aux_dir=$ac_dir
1N/A ac_install_sh="$ac_aux_dir/install-sh -c"
1N/A break
1N/A elif test -f $ac_dir/install.sh; then
1N/A ac_aux_dir=$ac_dir
1N/A ac_install_sh="$ac_aux_dir/install.sh -c"
1N/A break
1N/A elif test -f $ac_dir/shtool; then
1N/A ac_aux_dir=$ac_dir
1N/A ac_install_sh="$ac_aux_dir/shtool install -c"
1N/A break
1N/A fi
1N/Adone
1N/Aif test -z "$ac_aux_dir"; then
1N/A { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1N/Aecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aac_config_guess="$SHELL $ac_aux_dir/config.guess"
1N/Aac_config_sub="$SHELL $ac_aux_dir/config.sub"
1N/Aac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1N/A
1N/A# Find a good install program. We prefer a C program (faster),
1N/A# so one script is as good as another. But avoid the broken or
1N/A# incompatible versions:
1N/A# SysV /etc/install, /usr/sbin/install
1N/A# SunOS /usr/etc/install
1N/A# IRIX /sbin/install
1N/A# AIX /bin/install
1N/A# AmigaOS /C/install, which installs bootblocks on floppy discs
1N/A# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1N/A# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1N/A# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1N/A# OS/2's system install, which has a completely different semantic
1N/A# ./install, which can be erroneously created by make from ./install.sh.
1N/Aecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1N/Aecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1N/Aif test -z "$INSTALL"; then
1N/Aif test "${ac_cv_path_install+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A # Account for people who put trailing slashes in PATH elements.
1N/Acase $as_dir/ in
1N/A ./ | .// | /cC/* | \
1N/A /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1N/A ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1N/A /usr/ucb/* ) ;;
1N/A *)
1N/A # OSF1 and SCO ODT 3.0 have their own names for install.
1N/A # Don't use installbsd from OSF since it installs stuff as root
1N/A # by default.
1N/A for ac_prog in ginstall scoinst install; do
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1N/A if test $ac_prog = install &&
1N/A grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1N/A # AIX install. It has an incompatible calling convention.
1N/A :
1N/A elif test $ac_prog = install &&
1N/A grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1N/A # program-specific install script used by HP pwplus--don't use.
1N/A :
1N/A else
1N/A ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1N/A break 3
1N/A fi
1N/A fi
1N/A done
1N/A done
1N/A ;;
1N/Aesac
1N/Adone
1N/A
1N/A
1N/Afi
1N/A if test "${ac_cv_path_install+set}" = set; then
1N/A INSTALL=$ac_cv_path_install
1N/A else
1N/A # As a last resort, use the slow shell script. We don't cache a
1N/A # path for INSTALL within a source directory, because that will
1N/A # break other packages using the cache if that directory is
1N/A # removed, or if the path is relative.
1N/A INSTALL=$ac_install_sh
1N/A fi
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $INSTALL" >&5
1N/Aecho "${ECHO_T}$INSTALL" >&6
1N/A
1N/A# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1N/A# It thinks the first close brace ends the variable substitution.
1N/Atest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1N/A
1N/Atest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1N/A
1N/Atest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1N/A
1N/Aecho "$as_me:$LINENO: checking whether build environment is sane" >&5
1N/Aecho $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1N/A# Just in case
1N/Asleep 1
1N/Aecho timestamp > conftest.file
1N/A# Do `set' in a subshell so we don't clobber the current shell's
1N/A# arguments. Must try -L first in case configure is actually a
1N/A# symlink; some systems play weird games with the mod time of symlinks
1N/A# (eg FreeBSD returns the mod time of the symlink's containing
1N/A# directory).
1N/Aif (
1N/A set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1N/A if test "$*" = "X"; then
1N/A # -L didn't work.
1N/A set X `ls -t $srcdir/configure conftest.file`
1N/A fi
1N/A rm -f conftest.file
1N/A if test "$*" != "X $srcdir/configure conftest.file" \
1N/A && test "$*" != "X conftest.file $srcdir/configure"; then
1N/A
1N/A # If neither matched, then we have a broken ls. This can happen
1N/A # if, for instance, CONFIG_SHELL is bash and it inherits a
1N/A # broken ls alias from the environment. This has actually
1N/A # happened. Such a system could not be considered "sane".
1N/A { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1N/Aalias in your environment" >&5
1N/Aecho "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1N/Aalias in your environment" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A fi
1N/A
1N/A test "$2" = conftest.file
1N/A )
1N/Athen
1N/A # Ok.
1N/A :
1N/Aelse
1N/A { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1N/ACheck your system clock" >&5
1N/Aecho "$as_me: error: newly created file is older than distributed files!
1N/ACheck your system clock" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aecho "$as_me:$LINENO: result: yes" >&5
1N/Aecho "${ECHO_T}yes" >&6
1N/Atest "$program_prefix" != NONE &&
1N/A program_transform_name="s,^,$program_prefix,;$program_transform_name"
1N/A# Use a double $ so make ignores it.
1N/Atest "$program_suffix" != NONE &&
1N/A program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1N/A# Double any \ or $. echo might interpret backslashes.
1N/A# By default was `s,x,x', remove it if useless.
1N/Acat <<\_ACEOF >conftest.sed
1N/As/[\\$]/&&/g;s/;s,x,x,$//
1N/A_ACEOF
1N/Aprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1N/Arm conftest.sed
1N/A
1N/A# expand $ac_aux_dir to an absolute path
1N/Aam_aux_dir=`cd $ac_aux_dir && pwd`
1N/A
1N/Atest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1N/A# Use eval to expand $SHELL
1N/Aif eval "$MISSING --run true"; then
1N/A am_missing_run="$MISSING --run "
1N/Aelse
1N/A am_missing_run=
1N/A { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1N/Aecho "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1N/Afi
1N/A
1N/Aif mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1N/A # We used to keeping the `.' as first argument, in order to
1N/A # allow $(mkdir_p) to be used without argument. As in
1N/A # $(mkdir_p) $(somedir)
1N/A # where $(somedir) is conditionally defined. However this is wrong
1N/A # for two reasons:
1N/A # 1. if the package is installed by a user who cannot write `.'
1N/A # make install will fail,
1N/A # 2. the above comment should most certainly read
1N/A # $(mkdir_p) $(DESTDIR)$(somedir)
1N/A # so it does not work when $(somedir) is undefined and
1N/A # $(DESTDIR) is not.
1N/A # To support the latter case, we have to write
1N/A # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1N/A # so the `.' trick is pointless.
1N/A mkdir_p='mkdir -p --'
1N/Aelse
1N/A # On NextStep and OpenStep, the `mkdir' command does not
1N/A # recognize any option. It will interpret all options as
1N/A # directories to create, and then abort because `.' already
1N/A # exists.
1N/A for d in ./-p ./--version;
1N/A do
1N/A test -d $d && rmdir $d
1N/A done
1N/A # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1N/A if test -f "$ac_aux_dir/mkinstalldirs"; then
1N/A mkdir_p='$(mkinstalldirs)'
1N/A else
1N/A mkdir_p='$(install_sh) -d'
1N/A fi
1N/Afi
1N/A
1N/Afor ac_prog in gawk mawk nawk awk
1N/Ado
1N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
1N/Aset dummy $ac_prog; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_AWK+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$AWK"; then
1N/A ac_cv_prog_AWK="$AWK" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_AWK="$ac_prog"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/AAWK=$ac_cv_prog_AWK
1N/Aif test -n "$AWK"; then
1N/A echo "$as_me:$LINENO: result: $AWK" >&5
1N/Aecho "${ECHO_T}$AWK" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/A test -n "$AWK" && break
1N/Adone
1N/A
1N/Aecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1N/Aecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1N/Aset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1N/Aif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.make <<\_ACEOF
1N/Aall:
1N/A @echo 'ac_maketemp="$(MAKE)"'
1N/A_ACEOF
1N/A# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1N/Aeval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1N/Aif test -n "$ac_maketemp"; then
1N/A eval ac_cv_prog_make_${ac_make}_set=yes
1N/Aelse
1N/A eval ac_cv_prog_make_${ac_make}_set=no
1N/Afi
1N/Arm -f conftest.make
1N/Afi
1N/Aif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1N/A echo "$as_me:$LINENO: result: yes" >&5
1N/Aecho "${ECHO_T}yes" >&6
1N/A SET_MAKE=
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/A SET_MAKE="MAKE=${MAKE-make}"
1N/Afi
1N/A
1N/Arm -rf .tst 2>/dev/null
1N/Amkdir .tst 2>/dev/null
1N/Aif test -d .tst; then
1N/A am__leading_dot=.
1N/Aelse
1N/A am__leading_dot=_
1N/Afi
1N/Armdir .tst 2>/dev/null
1N/A
1N/A# test to see if srcdir already configured
1N/Aif test "`cd $srcdir && pwd`" != "`pwd`" &&
1N/A test -f $srcdir/config.status; then
1N/A { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1N/Aecho "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/A# test whether we have cygpath
1N/Aif test -z "$CYGPATH_W"; then
1N/A if (cygpath --version) >/dev/null 2>/dev/null; then
1N/A CYGPATH_W='cygpath -w'
1N/A else
1N/A CYGPATH_W=echo
1N/A fi
1N/Afi
1N/A
1N/A
1N/A# Define the identity of the package.
1N/A PACKAGE='grub'
1N/A VERSION='0.97'
1N/A
1N/A
1N/Acat >>confdefs.h <<_ACEOF
1N/A#define PACKAGE "$PACKAGE"
1N/A_ACEOF
1N/A
1N/A
1N/Acat >>confdefs.h <<_ACEOF
1N/A#define VERSION "$VERSION"
1N/A_ACEOF
1N/A
1N/A# Some tools Automake needs.
1N/A
1N/AACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1N/A
1N/A
1N/AAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1N/A
1N/A
1N/AAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1N/A
1N/A
1N/AAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1N/A
1N/A
1N/AMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1N/A
1N/Ainstall_sh=${install_sh-"$am_aux_dir/install-sh"}
1N/A
1N/A# Installed binaries are usually stripped using `strip' when the user
1N/A# run `make install-strip'. However `strip' might not be the right
1N/A# tool to use in cross-compilation environments, therefore Automake
1N/A# will honor the `STRIP' environment variable to overrule this program.
1N/Aif test "$cross_compiling" != no; then
1N/A if test -n "$ac_tool_prefix"; then
1N/A # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1N/Aset dummy ${ac_tool_prefix}strip; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_STRIP+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$STRIP"; then
1N/A ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/ASTRIP=$ac_cv_prog_STRIP
1N/Aif test -n "$STRIP"; then
1N/A echo "$as_me:$LINENO: result: $STRIP" >&5
1N/Aecho "${ECHO_T}$STRIP" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/Afi
1N/Aif test -z "$ac_cv_prog_STRIP"; then
1N/A ac_ct_STRIP=$STRIP
1N/A # Extract the first word of "strip", so it can be a program name with args.
1N/Aset dummy strip; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$ac_ct_STRIP"; then
1N/A ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_ac_ct_STRIP="strip"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/A test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1N/Afi
1N/Afi
1N/Aac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1N/Aif test -n "$ac_ct_STRIP"; then
1N/A echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1N/Aecho "${ECHO_T}$ac_ct_STRIP" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/A STRIP=$ac_ct_STRIP
1N/Aelse
1N/A STRIP="$ac_cv_prog_STRIP"
1N/Afi
1N/A
1N/Afi
1N/AINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1N/A
1N/A# We need awk for the "check" target. The system "awk" is bad on
1N/A# some platforms.
1N/A# Always define AMTAR for backward compatibility.
1N/A
1N/AAMTAR=${AMTAR-"${am_missing_run}tar"}
1N/A
1N/Aam__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A# Make sure we can run config.sub.
1N/A$ac_config_sub sun4 >/dev/null 2>&1 ||
1N/A { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1N/Aecho "$as_me: error: cannot run $ac_config_sub" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A
1N/Aecho "$as_me:$LINENO: checking build system type" >&5
1N/Aecho $ECHO_N "checking build system type... $ECHO_C" >&6
1N/Aif test "${ac_cv_build+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A ac_cv_build_alias=$build_alias
1N/Atest -z "$ac_cv_build_alias" &&
1N/A ac_cv_build_alias=`$ac_config_guess`
1N/Atest -z "$ac_cv_build_alias" &&
1N/A { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1N/Aecho "$as_me: error: cannot guess build type; you must specify one" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Aac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1N/A { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1N/Aecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $ac_cv_build" >&5
1N/Aecho "${ECHO_T}$ac_cv_build" >&6
1N/Abuild=$ac_cv_build
1N/Abuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1N/Abuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1N/Abuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking host system type" >&5
1N/Aecho $ECHO_N "checking host system type... $ECHO_C" >&6
1N/Aif test "${ac_cv_host+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A ac_cv_host_alias=$host_alias
1N/Atest -z "$ac_cv_host_alias" &&
1N/A ac_cv_host_alias=$ac_cv_build_alias
1N/Aac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1N/A { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1N/Aecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $ac_cv_host" >&5
1N/Aecho "${ECHO_T}$ac_cv_host" >&6
1N/Ahost=$ac_cv_host
1N/Ahost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1N/Ahost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1N/Ahost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1N/A
1N/A
1N/A
1N/Acase "$host_cpu" in
1N/Ai[3456]86) host_cpu=i386 ;;
1N/Ax86_64) host_cpu=x86_64 ;;
1N/A*) { { echo "$as_me:$LINENO: error: unsupported CPU type" >&5
1N/Aecho "$as_me: error: unsupported CPU type" >&2;}
1N/A { (exit 1); exit 1; }; } ;;
1N/Aesac
1N/A
1N/A
1N/A
1N/A
1N/A#
1N/A# Options
1N/A#
1N/A
1N/Aecho "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1N/Aecho $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1N/A # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1N/Aif test "${enable_maintainer_mode+set}" = set; then
1N/A enableval="$enable_maintainer_mode"
1N/A USE_MAINTAINER_MODE=$enableval
1N/Aelse
1N/A USE_MAINTAINER_MODE=no
1N/Afi;
1N/A echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1N/Aecho "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1N/A
1N/A
1N/Aif test $USE_MAINTAINER_MODE = yes; then
1N/A MAINTAINER_MODE_TRUE=
1N/A MAINTAINER_MODE_FALSE='#'
1N/Aelse
1N/A MAINTAINER_MODE_TRUE='#'
1N/A MAINTAINER_MODE_FALSE=
1N/Afi
1N/A
1N/A MAINT=$MAINTAINER_MODE_TRUE
1N/A
1N/A
1N/Aif test "x$enable_maintainer_mode" = xyes; then
1N/A # Extract the first word of "perl", so it can be a program name with args.
1N/Aset dummy perl; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_path_PERL+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A case $PERL in
1N/A [\\/]* | ?:[\\/]*)
1N/A ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
1N/A ;;
1N/A *)
1N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/A ;;
1N/Aesac
1N/Afi
1N/APERL=$ac_cv_path_PERL
1N/A
1N/Aif test -n "$PERL"; then
1N/A echo "$as_me:$LINENO: result: $PERL" >&5
1N/Aecho "${ECHO_T}$PERL" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/A if test -z "$PERL"; then
1N/A { { echo "$as_me:$LINENO: error: perl not found" >&5
1N/Aecho "$as_me: error: perl not found" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A fi
1N/Afi
1N/A
1N/A# This should be checked before AC_PROG_CC
1N/Aif test "x$CFLAGS" = x; then
1N/A default_CFLAGS=yes
1N/Afi
1N/A
1N/Aif test "x$host_cpu" = xx86_64; then
1N/A CFLAGS="-m32 $CFLAGS"
1N/Afi
1N/A
1N/A#
1N/A# Programs
1N/A#
1N/A
1N/Aif test -n "$ac_tool_prefix"; then
1N/A # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1N/Aset dummy ${ac_tool_prefix}gcc; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_CC+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$CC"; then
1N/A ac_cv_prog_CC="$CC" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_CC="${ac_tool_prefix}gcc"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/ACC=$ac_cv_prog_CC
1N/Aif test -n "$CC"; then
1N/A echo "$as_me:$LINENO: result: $CC" >&5
1N/Aecho "${ECHO_T}$CC" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/Afi
1N/Aif test -z "$ac_cv_prog_CC"; then
1N/A ac_ct_CC=$CC
1N/A # Extract the first word of "gcc", so it can be a program name with args.
1N/Aset dummy gcc; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$ac_ct_CC"; then
1N/A ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_ac_ct_CC="gcc"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/Aac_ct_CC=$ac_cv_prog_ac_ct_CC
1N/Aif test -n "$ac_ct_CC"; then
1N/A echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1N/Aecho "${ECHO_T}$ac_ct_CC" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/A CC=$ac_ct_CC
1N/Aelse
1N/A CC="$ac_cv_prog_CC"
1N/Afi
1N/A
1N/Aac_ext=c
1N/Aac_cpp='$CPP $CPPFLAGS'
1N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
1N/Aif test -n "$ac_tool_prefix"; then
1N/A # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1N/Aset dummy ${ac_tool_prefix}gcc; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_CC+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$CC"; then
1N/A ac_cv_prog_CC="$CC" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_CC="${ac_tool_prefix}gcc"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/ACC=$ac_cv_prog_CC
1N/Aif test -n "$CC"; then
1N/A echo "$as_me:$LINENO: result: $CC" >&5
1N/Aecho "${ECHO_T}$CC" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/Afi
1N/Aif test -z "$ac_cv_prog_CC"; then
1N/A ac_ct_CC=$CC
1N/A # Extract the first word of "gcc", so it can be a program name with args.
1N/Aset dummy gcc; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$ac_ct_CC"; then
1N/A ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_ac_ct_CC="gcc"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/Aac_ct_CC=$ac_cv_prog_ac_ct_CC
1N/Aif test -n "$ac_ct_CC"; then
1N/A echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1N/Aecho "${ECHO_T}$ac_ct_CC" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/A CC=$ac_ct_CC
1N/Aelse
1N/A CC="$ac_cv_prog_CC"
1N/Afi
1N/A
1N/Aif test -z "$CC"; then
1N/A if test -n "$ac_tool_prefix"; then
1N/A # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1N/Aset dummy ${ac_tool_prefix}cc; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_CC+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$CC"; then
1N/A ac_cv_prog_CC="$CC" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_CC="${ac_tool_prefix}cc"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/ACC=$ac_cv_prog_CC
1N/Aif test -n "$CC"; then
1N/A echo "$as_me:$LINENO: result: $CC" >&5
1N/Aecho "${ECHO_T}$CC" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/Afi
1N/Aif test -z "$ac_cv_prog_CC"; then
1N/A ac_ct_CC=$CC
1N/A # Extract the first word of "cc", so it can be a program name with args.
1N/Aset dummy cc; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$ac_ct_CC"; then
1N/A ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_ac_ct_CC="cc"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/Aac_ct_CC=$ac_cv_prog_ac_ct_CC
1N/Aif test -n "$ac_ct_CC"; then
1N/A echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1N/Aecho "${ECHO_T}$ac_ct_CC" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/A CC=$ac_ct_CC
1N/Aelse
1N/A CC="$ac_cv_prog_CC"
1N/Afi
1N/A
1N/Afi
1N/Aif test -z "$CC"; then
1N/A # Extract the first word of "cc", so it can be a program name with args.
1N/Aset dummy cc; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_CC+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$CC"; then
1N/A ac_cv_prog_CC="$CC" # Let the user override the test.
1N/Aelse
1N/A ac_prog_rejected=no
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1N/A ac_prog_rejected=yes
1N/A continue
1N/A fi
1N/A ac_cv_prog_CC="cc"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Aif test $ac_prog_rejected = yes; then
1N/A # We found a bogon in the path, so make sure we never use it.
1N/A set dummy $ac_cv_prog_CC
1N/A shift
1N/A if test $# != 0; then
1N/A # We chose a different compiler from the bogus one.
1N/A # However, it has the same basename, so the bogon will be chosen
1N/A # first if we set CC to just the basename; use the full file name.
1N/A shift
1N/A ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1N/A fi
1N/Afi
1N/Afi
1N/Afi
1N/ACC=$ac_cv_prog_CC
1N/Aif test -n "$CC"; then
1N/A echo "$as_me:$LINENO: result: $CC" >&5
1N/Aecho "${ECHO_T}$CC" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/Afi
1N/Aif test -z "$CC"; then
1N/A if test -n "$ac_tool_prefix"; then
1N/A for ac_prog in cl
1N/A do
1N/A # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1N/Aset dummy $ac_tool_prefix$ac_prog; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_CC+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$CC"; then
1N/A ac_cv_prog_CC="$CC" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/ACC=$ac_cv_prog_CC
1N/Aif test -n "$CC"; then
1N/A echo "$as_me:$LINENO: result: $CC" >&5
1N/Aecho "${ECHO_T}$CC" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/A test -n "$CC" && break
1N/A done
1N/Afi
1N/Aif test -z "$CC"; then
1N/A ac_ct_CC=$CC
1N/A for ac_prog in cl
1N/Ado
1N/A # Extract the first word of "$ac_prog", so it can be a program name with args.
1N/Aset dummy $ac_prog; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$ac_ct_CC"; then
1N/A ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_ac_ct_CC="$ac_prog"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/Aac_ct_CC=$ac_cv_prog_ac_ct_CC
1N/Aif test -n "$ac_ct_CC"; then
1N/A echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1N/Aecho "${ECHO_T}$ac_ct_CC" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/A test -n "$ac_ct_CC" && break
1N/Adone
1N/A
1N/A CC=$ac_ct_CC
1N/Afi
1N/A
1N/Afi
1N/A
1N/A
1N/Atest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1N/ASee \`config.log' for more details." >&5
1N/Aecho "$as_me: error: no acceptable C compiler found in \$PATH
1N/ASee \`config.log' for more details." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A
1N/A# Provide some information about the compiler.
1N/Aecho "$as_me:$LINENO:" \
1N/A "checking for C compiler version" >&5
1N/Aac_compiler=`set X $ac_compile; echo $2`
1N/A{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1N/A (eval $ac_compiler --version </dev/null >&5) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }
1N/A{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1N/A (eval $ac_compiler -v </dev/null >&5) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }
1N/A{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1N/A (eval $ac_compiler -V </dev/null >&5) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }
1N/A
1N/Acat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/A
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Aac_clean_files_save=$ac_clean_files
1N/Aac_clean_files="$ac_clean_files a.out a.exe b.out"
1N/A# Try to create an executable without -o first, disregard a.out.
1N/A# It will help us diagnose broken compilers, and finding out an intuition
1N/A# of exeext.
1N/Aecho "$as_me:$LINENO: checking for C compiler default output file name" >&5
1N/Aecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1N/Aac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1N/A (eval $ac_link_default) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; then
1N/A # Find the output, starting from the most likely. This scheme is
1N/A# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1N/A# resort.
1N/A
1N/A# Be careful to initialize this variable, since it used to be cached.
1N/A# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1N/Aac_cv_exeext=
1N/A# b.out is created by i960 compilers.
1N/Afor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1N/Ado
1N/A test -f "$ac_file" || continue
1N/A case $ac_file in
1N/A *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1N/A ;;
1N/A conftest.$ac_ext )
1N/A # This is the source file.
1N/A ;;
1N/A [ab].out )
1N/A # We found the default executable, but exeext='' is most
1N/A # certainly right.
1N/A break;;
1N/A *.* )
1N/A ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1N/A # FIXME: I believe we export ac_cv_exeext for Libtool,
1N/A # but it would be cool to find out if it's true. Does anybody
1N/A # maintain Libtool? --akim.
1N/A export ac_cv_exeext
1N/A break;;
1N/A * )
1N/A break;;
1N/A esac
1N/Adone
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/A{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1N/ASee \`config.log' for more details." >&5
1N/Aecho "$as_me: error: C compiler cannot create executables
1N/ASee \`config.log' for more details." >&2;}
1N/A { (exit 77); exit 77; }; }
1N/Afi
1N/A
1N/Aac_exeext=$ac_cv_exeext
1N/Aecho "$as_me:$LINENO: result: $ac_file" >&5
1N/Aecho "${ECHO_T}$ac_file" >&6
1N/A
1N/A# Check the compiler produces executables we can run. If not, either
1N/A# the compiler is broken, or we cross compile.
1N/Aecho "$as_me:$LINENO: checking whether the C compiler works" >&5
1N/Aecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1N/A# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1N/A# If not cross compiling, check that we can run a simple program.
1N/Aif test "$cross_compiling" != yes; then
1N/A if { ac_try='./$ac_file'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A cross_compiling=no
1N/A else
1N/A if test "$cross_compiling" = maybe; then
1N/A cross_compiling=yes
1N/A else
1N/A { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1N/AIf you meant to cross compile, use \`--host'.
1N/ASee \`config.log' for more details." >&5
1N/Aecho "$as_me: error: cannot run C compiled programs.
1N/AIf you meant to cross compile, use \`--host'.
1N/ASee \`config.log' for more details." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A fi
1N/A fi
1N/Afi
1N/Aecho "$as_me:$LINENO: result: yes" >&5
1N/Aecho "${ECHO_T}yes" >&6
1N/A
1N/Arm -f a.out a.exe conftest$ac_cv_exeext b.out
1N/Aac_clean_files=$ac_clean_files_save
1N/A# Check the compiler produces executables we can run. If not, either
1N/A# the compiler is broken, or we cross compile.
1N/Aecho "$as_me:$LINENO: checking whether we are cross compiling" >&5
1N/Aecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1N/Aecho "$as_me:$LINENO: result: $cross_compiling" >&5
1N/Aecho "${ECHO_T}$cross_compiling" >&6
1N/A
1N/Aecho "$as_me:$LINENO: checking for suffix of executables" >&5
1N/Aecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; then
1N/A # If both `conftest.exe' and `conftest' are `present' (well, observable)
1N/A# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1N/A# work properly (i.e., refer to `conftest.exe'), while it won't with
1N/A# `rm'.
1N/Afor ac_file in conftest.exe conftest conftest.*; do
1N/A test -f "$ac_file" || continue
1N/A case $ac_file in
1N/A *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1N/A *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1N/A export ac_cv_exeext
1N/A break;;
1N/A * ) break;;
1N/A esac
1N/Adone
1N/Aelse
1N/A { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1N/ASee \`config.log' for more details." >&5
1N/Aecho "$as_me: error: cannot compute suffix of executables: cannot compile and link
1N/ASee \`config.log' for more details." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/Arm -f conftest$ac_cv_exeext
1N/Aecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1N/Aecho "${ECHO_T}$ac_cv_exeext" >&6
1N/A
1N/Arm -f conftest.$ac_ext
1N/AEXEEXT=$ac_cv_exeext
1N/Aac_exeext=$EXEEXT
1N/Aecho "$as_me:$LINENO: checking for suffix of object files" >&5
1N/Aecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1N/Aif test "${ac_cv_objext+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/A
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.o conftest.obj
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; then
1N/A for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1N/A case $ac_file in
1N/A *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1N/A *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1N/A break;;
1N/A esac
1N/Adone
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/A{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1N/ASee \`config.log' for more details." >&5
1N/Aecho "$as_me: error: cannot compute suffix of object files: cannot compile
1N/ASee \`config.log' for more details." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/Arm -f conftest.$ac_cv_objext conftest.$ac_ext
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $ac_cv_objext" >&5
1N/Aecho "${ECHO_T}$ac_cv_objext" >&6
1N/AOBJEXT=$ac_cv_objext
1N/Aac_objext=$OBJEXT
1N/Aecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1N/Aecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1N/Aif test "${ac_cv_c_compiler_gnu+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/A#ifndef __GNUC__
1N/A choke me
1N/A#endif
1N/A
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A ac_compiler_gnu=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Aac_compiler_gnu=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/Aac_cv_c_compiler_gnu=$ac_compiler_gnu
1N/A
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1N/Aecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1N/AGCC=`test $ac_compiler_gnu = yes && echo yes`
1N/Aac_test_CFLAGS=${CFLAGS+set}
1N/Aac_save_CFLAGS=$CFLAGS
1N/ACFLAGS="-g"
1N/Aecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1N/Aecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_cc_g+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/A
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A ac_cv_prog_cc_g=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Aac_cv_prog_cc_g=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1N/Aecho "${ECHO_T}$ac_cv_prog_cc_g" >&6
1N/Aif test "$ac_test_CFLAGS" = set; then
1N/A CFLAGS=$ac_save_CFLAGS
1N/Aelif test $ac_cv_prog_cc_g = yes; then
1N/A if test "$GCC" = yes; then
1N/A CFLAGS="-g -O2"
1N/A else
1N/A CFLAGS="-g"
1N/A fi
1N/Aelse
1N/A if test "$GCC" = yes; then
1N/A CFLAGS="-O2"
1N/A else
1N/A CFLAGS=
1N/A fi
1N/Afi
1N/Aecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1N/Aecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_cc_stdc+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A ac_cv_prog_cc_stdc=no
1N/Aac_save_CC=$CC
1N/Acat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A#include <stdarg.h>
1N/A#include <stdio.h>
1N/A#include <sys/types.h>
1N/A#include <sys/stat.h>
1N/A/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1N/Astruct buf { int x; };
1N/AFILE * (*rcsopen) (struct buf *, struct stat *, int);
1N/Astatic char *e (p, i)
1N/A char **p;
1N/A int i;
1N/A{
1N/A return p[i];
1N/A}
1N/Astatic char *f (char * (*g) (char **, int), char **p, ...)
1N/A{
1N/A char *s;
1N/A va_list v;
1N/A va_start (v,p);
1N/A s = g (p, va_arg (v,int));
1N/A va_end (v);
1N/A return s;
1N/A}
1N/A
1N/A/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1N/A function prototypes and stuff, but not '\xHH' hex character constants.
1N/A These don't provoke an error unfortunately, instead are silently treated
1N/A as 'x'. The following induces an error, until -std1 is added to get
1N/A proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1N/A array size at least. It's necessary to write '\x00'==0 to get something
1N/A that's true only with -std1. */
1N/Aint osf4_cc_array ['\x00' == 0 ? 1 : -1];
1N/A
1N/Aint test (int i, double x);
1N/Astruct s1 {int (*f) (int a);};
1N/Astruct s2 {int (*f) (double a);};
1N/Aint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1N/Aint argc;
1N/Achar **argv;
1N/Aint
1N/Amain ()
1N/A{
1N/Areturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/A# Don't try gcc -ansi; that turns off useful extensions and
1N/A# breaks some systems' header files.
1N/A# AIX -qlanglvl=ansi
1N/A# Ultrix and OSF/1 -std1
1N/A# HP-UX 10.20 and later -Ae
1N/A# HP-UX older versions -Aa -D_HPUX_SOURCE
1N/A# SVR4 -Xc -D__EXTENSIONS__
1N/Afor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1N/Ado
1N/A CC="$ac_save_CC $ac_arg"
1N/A rm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A ac_cv_prog_cc_stdc=$ac_arg
1N/Abreak
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext
1N/Adone
1N/Arm -f conftest.$ac_ext conftest.$ac_objext
1N/ACC=$ac_save_CC
1N/A
1N/Afi
1N/A
1N/Acase "x$ac_cv_prog_cc_stdc" in
1N/A x|xno)
1N/A echo "$as_me:$LINENO: result: none needed" >&5
1N/Aecho "${ECHO_T}none needed" >&6 ;;
1N/A *)
1N/A echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1N/Aecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1N/A CC="$CC $ac_cv_prog_cc_stdc" ;;
1N/Aesac
1N/A
1N/A# Some people use a C++ compiler to compile C. Since we use `exit',
1N/A# in C++ we need to declare it. In case someone uses the same compiler
1N/A# for both compiling C and C++ we need to have the C++ compiler decide
1N/A# the declaration of exit, since it's the most demanding environment.
1N/Acat >conftest.$ac_ext <<_ACEOF
1N/A#ifndef __cplusplus
1N/A choke me
1N/A#endif
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A for ac_declaration in \
1N/A '' \
1N/A 'extern "C" void std::exit (int) throw (); using std::exit;' \
1N/A 'extern "C" void std::exit (int); using std::exit;' \
1N/A 'extern "C" void exit (int) throw ();' \
1N/A 'extern "C" void exit (int);' \
1N/A 'void exit (int);'
1N/Ado
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A$ac_declaration
1N/A#include <stdlib.h>
1N/Aint
1N/Amain ()
1N/A{
1N/Aexit (42);
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A :
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Acontinue
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A$ac_declaration
1N/Aint
1N/Amain ()
1N/A{
1N/Aexit (42);
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A break
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/Adone
1N/Arm -f conftest*
1N/Aif test -n "$ac_declaration"; then
1N/A echo '#ifdef __cplusplus' >>confdefs.h
1N/A echo $ac_declaration >>confdefs.h
1N/A echo '#endif' >>confdefs.h
1N/Afi
1N/A
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/Aac_ext=c
1N/Aac_cpp='$CPP $CPPFLAGS'
1N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
1N/ADEPDIR="${am__leading_dot}deps"
1N/A
1N/A ac_config_commands="$ac_config_commands depfiles"
1N/A
1N/A
1N/Aam_make=${MAKE-make}
1N/Acat > confinc << 'END'
1N/Aam__doit:
1N/A @echo done
1N/A.PHONY: am__doit
1N/AEND
1N/A# If we don't find an include directive, just comment out the code.
1N/Aecho "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1N/Aecho $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1N/Aam__include="#"
1N/Aam__quote=
1N/A_am_result=none
1N/A# First try GNU make style include.
1N/Aecho "include confinc" > confmf
1N/A# We grep out `Entering directory' and `Leaving directory'
1N/A# messages which can occur if `w' ends up in MAKEFLAGS.
1N/A# In particular we don't look at `^make:' because GNU make might
1N/A# be invoked under some other name (usually "gmake"), in which
1N/A# case it prints its new name instead of `make'.
1N/Aif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1N/A am__include=include
1N/A am__quote=
1N/A _am_result=GNU
1N/Afi
1N/A# Now try BSD make style include.
1N/Aif test "$am__include" = "#"; then
1N/A echo '.include "confinc"' > confmf
1N/A if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1N/A am__include=.include
1N/A am__quote="\""
1N/A _am_result=BSD
1N/A fi
1N/Afi
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: result: $_am_result" >&5
1N/Aecho "${ECHO_T}$_am_result" >&6
1N/Arm -f confinc confmf
1N/A
1N/A# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1N/Aif test "${enable_dependency_tracking+set}" = set; then
1N/A enableval="$enable_dependency_tracking"
1N/A
1N/Afi;
1N/Aif test "x$enable_dependency_tracking" != xno; then
1N/A am_depcomp="$ac_aux_dir/depcomp"
1N/A AMDEPBACKSLASH='\'
1N/Afi
1N/A
1N/A
1N/Aif test "x$enable_dependency_tracking" != xno; then
1N/A AMDEP_TRUE=
1N/A AMDEP_FALSE='#'
1N/Aelse
1N/A AMDEP_TRUE='#'
1N/A AMDEP_FALSE=
1N/Afi
1N/A
1N/A
1N/A
1N/A
1N/Adepcc="$CC" am_compiler_list=
1N/A
1N/Aecho "$as_me:$LINENO: checking dependency style of $depcc" >&5
1N/Aecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1N/Aif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1N/A # We make a subdir and do the tests there. Otherwise we can end up
1N/A # making bogus files that we don't know about and never remove. For
1N/A # instance it was reported that on HP-UX the gcc test will end up
1N/A # making a dummy file named `D' -- because `-MD' means `put the output
1N/A # in D'.
1N/A mkdir conftest.dir
1N/A # Copy depcomp to subdir because otherwise we won't find it if we're
1N/A # using a relative directory.
1N/A cp "$am_depcomp" conftest.dir
1N/A cd conftest.dir
1N/A # We will build objects and dependencies in a subdirectory because
1N/A # it helps to detect inapplicable dependency modes. For instance
1N/A # both Tru64's cc and ICC support -MD to output dependencies as a
1N/A # side effect of compilation, but ICC will put the dependencies in
1N/A # the current directory while Tru64 will put them in the object
1N/A # directory.
1N/A mkdir sub
1N/A
1N/A am_cv_CC_dependencies_compiler_type=none
1N/A if test "$am_compiler_list" = ""; then
1N/A am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1N/A fi
1N/A for depmode in $am_compiler_list; do
1N/A # Setup a source with many dependencies, because some compilers
1N/A # like to wrap large dependency lists on column 80 (with \), and
1N/A # we should not choose a depcomp mode which is confused by this.
1N/A #
1N/A # We need to recreate these files for each test, as the compiler may
1N/A # overwrite some of them when testing with obscure command lines.
1N/A # This happens at least with the AIX C compiler.
1N/A : > sub/conftest.c
1N/A for i in 1 2 3 4 5 6; do
1N/A echo '#include "conftst'$i'.h"' >> sub/conftest.c
1N/A # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1N/A # Solaris 8's {/usr,}/bin/sh.
1N/A touch sub/conftst$i.h
1N/A done
1N/A echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1N/A
1N/A case $depmode in
1N/A nosideeffect)
1N/A # after this tag, mechanisms are not by side-effect, so they'll
1N/A # only be used when explicitly requested
1N/A if test "x$enable_dependency_tracking" = xyes; then
1N/A continue
1N/A else
1N/A break
1N/A fi
1N/A ;;
1N/A none) break ;;
1N/A esac
1N/A # We check with `-c' and `-o' for the sake of the "dashmstdout"
1N/A # mode. It turns out that the SunPro C++ compiler does not properly
1N/A # handle `-M -o', and we need to detect this.
1N/A if depmode=$depmode \
1N/A source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1N/A depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1N/A $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1N/A >/dev/null 2>conftest.err &&
1N/A grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1N/A grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1N/A ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1N/A # icc doesn't choke on unknown options, it will just issue warnings
1N/A # or remarks (even with -Werror). So we grep stderr for any message
1N/A # that says an option was ignored or not supported.
1N/A # When given -MP, icc 7.0 and 7.1 complain thusly:
1N/A # icc: Command line warning: ignoring option '-M'; no argument required
1N/A # The diagnosis changed in icc 8.0:
1N/A # icc: Command line remark: option '-MP' not supported
1N/A if (grep 'ignoring option' conftest.err ||
1N/A grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1N/A am_cv_CC_dependencies_compiler_type=$depmode
1N/A break
1N/A fi
1N/A fi
1N/A done
1N/A
1N/A cd ..
1N/A rm -rf conftest.dir
1N/Aelse
1N/A am_cv_CC_dependencies_compiler_type=none
1N/Afi
1N/A
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1N/Aecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
1N/ACCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1N/A
1N/A
1N/A
1N/Aif
1N/A test "x$enable_dependency_tracking" != xno \
1N/A && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1N/A am__fastdepCC_TRUE=
1N/A am__fastdepCC_FALSE='#'
1N/Aelse
1N/A am__fastdepCC_TRUE='#'
1N/A am__fastdepCC_FALSE=
1N/Afi
1N/A
1N/A
1N/A# We need this for older versions of Autoconf.
1N/A
1N/Adepcc="$CC" am_compiler_list=
1N/A
1N/Aecho "$as_me:$LINENO: checking dependency style of $depcc" >&5
1N/Aecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
1N/Aif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1N/A # We make a subdir and do the tests there. Otherwise we can end up
1N/A # making bogus files that we don't know about and never remove. For
1N/A # instance it was reported that on HP-UX the gcc test will end up
1N/A # making a dummy file named `D' -- because `-MD' means `put the output
1N/A # in D'.
1N/A mkdir conftest.dir
1N/A # Copy depcomp to subdir because otherwise we won't find it if we're
1N/A # using a relative directory.
1N/A cp "$am_depcomp" conftest.dir
1N/A cd conftest.dir
1N/A # We will build objects and dependencies in a subdirectory because
1N/A # it helps to detect inapplicable dependency modes. For instance
1N/A # both Tru64's cc and ICC support -MD to output dependencies as a
1N/A # side effect of compilation, but ICC will put the dependencies in
1N/A # the current directory while Tru64 will put them in the object
1N/A # directory.
1N/A mkdir sub
1N/A
1N/A am_cv_CC_dependencies_compiler_type=none
1N/A if test "$am_compiler_list" = ""; then
1N/A am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
1N/A fi
1N/A for depmode in $am_compiler_list; do
1N/A # Setup a source with many dependencies, because some compilers
1N/A # like to wrap large dependency lists on column 80 (with \), and
1N/A # we should not choose a depcomp mode which is confused by this.
1N/A #
1N/A # We need to recreate these files for each test, as the compiler may
1N/A # overwrite some of them when testing with obscure command lines.
1N/A # This happens at least with the AIX C compiler.
1N/A : > sub/conftest.c
1N/A for i in 1 2 3 4 5 6; do
1N/A echo '#include "conftst'$i'.h"' >> sub/conftest.c
1N/A # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
1N/A # Solaris 8's {/usr,}/bin/sh.
1N/A touch sub/conftst$i.h
1N/A done
1N/A echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1N/A
1N/A case $depmode in
1N/A nosideeffect)
1N/A # after this tag, mechanisms are not by side-effect, so they'll
1N/A # only be used when explicitly requested
1N/A if test "x$enable_dependency_tracking" = xyes; then
1N/A continue
1N/A else
1N/A break
1N/A fi
1N/A ;;
1N/A none) break ;;
1N/A esac
1N/A # We check with `-c' and `-o' for the sake of the "dashmstdout"
1N/A # mode. It turns out that the SunPro C++ compiler does not properly
1N/A # handle `-M -o', and we need to detect this.
1N/A if depmode=$depmode \
1N/A source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1N/A depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1N/A $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1N/A >/dev/null 2>conftest.err &&
1N/A grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1N/A grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1N/A ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1N/A # icc doesn't choke on unknown options, it will just issue warnings
1N/A # or remarks (even with -Werror). So we grep stderr for any message
1N/A # that says an option was ignored or not supported.
1N/A # When given -MP, icc 7.0 and 7.1 complain thusly:
1N/A # icc: Command line warning: ignoring option '-M'; no argument required
1N/A # The diagnosis changed in icc 8.0:
1N/A # icc: Command line remark: option '-MP' not supported
1N/A if (grep 'ignoring option' conftest.err ||
1N/A grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
1N/A am_cv_CC_dependencies_compiler_type=$depmode
1N/A break
1N/A fi
1N/A fi
1N/A done
1N/A
1N/A cd ..
1N/A rm -rf conftest.dir
1N/Aelse
1N/A am_cv_CC_dependencies_compiler_type=none
1N/Afi
1N/A
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
1N/Aecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
1N/ACCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1N/A
1N/A
1N/A
1N/Aif
1N/A test "x$enable_dependency_tracking" != xno \
1N/A && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
1N/A am__fastdepCC_TRUE=
1N/A am__fastdepCC_FALSE='#'
1N/Aelse
1N/A am__fastdepCC_TRUE='#'
1N/A am__fastdepCC_FALSE=
1N/Afi
1N/A
1N/A
1N/A
1N/ACCAS="$CC"
1N/A
1N/A
1N/A
1N/A# Check whether --with-binutils or --without-binutils was given.
1N/Aif test "${with_binutils+set}" = set; then
1N/A withval="$with_binutils"
1N/A
1N/Afi;
1N/A
1N/Aif test "x$with_binutils" != x; then
1N/A # Extract the first word of "ranlib", so it can be a program name with args.
1N/Aset dummy ranlib; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_path_RANLIB+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A case $RANLIB in
1N/A [\\/]* | ?:[\\/]*)
1N/A ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
1N/A ;;
1N/A *)
1N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Aas_dummy=""$with_binutils:$PATH""
1N/Afor as_dir in $as_dummy
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/A test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB=":"
1N/A ;;
1N/Aesac
1N/Afi
1N/ARANLIB=$ac_cv_path_RANLIB
1N/A
1N/Aif test -n "$RANLIB"; then
1N/A echo "$as_me:$LINENO: result: $RANLIB" >&5
1N/Aecho "${ECHO_T}$RANLIB" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/Aelse
1N/A if test -n "$ac_tool_prefix"; then
1N/A # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1N/Aset dummy ${ac_tool_prefix}ranlib; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_RANLIB+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$RANLIB"; then
1N/A ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/ARANLIB=$ac_cv_prog_RANLIB
1N/Aif test -n "$RANLIB"; then
1N/A echo "$as_me:$LINENO: result: $RANLIB" >&5
1N/Aecho "${ECHO_T}$RANLIB" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/Afi
1N/Aif test -z "$ac_cv_prog_RANLIB"; then
1N/A ac_ct_RANLIB=$RANLIB
1N/A # Extract the first word of "ranlib", so it can be a program name with args.
1N/Aset dummy ranlib; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$ac_ct_RANLIB"; then
1N/A ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_ac_ct_RANLIB="ranlib"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/A test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1N/Afi
1N/Afi
1N/Aac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1N/Aif test -n "$ac_ct_RANLIB"; then
1N/A echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1N/Aecho "${ECHO_T}$ac_ct_RANLIB" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/A RANLIB=$ac_ct_RANLIB
1N/Aelse
1N/A RANLIB="$ac_cv_prog_RANLIB"
1N/Afi
1N/A
1N/Afi
1N/A
1N/A# optimization flags
1N/Aif test "x$ac_cv_c_compiler_gnu" = xyes; then
1N/A if test "x$default_CFLAGS" = xyes; then
1N/A # Autoconf may set CFLAGS to -O2 and/or -g. So eliminate them.
1N/A CFLAGS="`echo $CFLAGS | sed -e 's/-g//g' -e 's/-O[0-9]//g'` -g"
1N/A # If the user specify the directory for binutils, add the option `-B'.
1N/A if test "x$with_binutils" != x; then
1N/A CFLAGS="-B$with_binutils/ $CFLAGS"
1N/A fi
1N/A STAGE1_CFLAGS="-O2"
1N/A GRUB_CFLAGS="-O2"
1N/A
1N/Aecho "$as_me:$LINENO: checking whether optimization for size works" >&5
1N/Aecho $ECHO_N "checking whether optimization for size works... $ECHO_C" >&6
1N/Aif test "${size_flag+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A
1N/A saved_CFLAGS=$CFLAGS
1N/A CFLAGS="-Os -g"
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/A
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A size_flag=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Asize_flag=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/A CFLAGS=$saved_CFLAGS
1N/A
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $size_flag" >&5
1N/Aecho "${ECHO_T}$size_flag" >&6
1N/A if test "x$size_flag" = xyes; then
1N/A STAGE2_CFLAGS="-Os"
1N/A else
1N/A STAGE2_CFLAGS="-O2 -fno-strength-reduce -fno-unroll-loops"
1N/A fi
1N/A # OpenBSD has a GCC extension for protecting applications from
1N/A # stack smashing attacks, but GRUB doesn't want this feature.
1N/A echo "$as_me:$LINENO: checking whether gcc has -fno-stack-protector" >&5
1N/Aecho $ECHO_N "checking whether gcc has -fno-stack-protector... $ECHO_C" >&6
1N/Aif test "${no_stack_protector_flag+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A
1N/A saved_CFLAGS=$CFLAGS
1N/A CFLAGS="-fno-stack-protector"
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/A
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A no_stack_protector_flag=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Ano_stack_protector_flag=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/A CFLAGS=$saved_CFLAGS
1N/A
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $no_stack_protector_flag" >&5
1N/Aecho "${ECHO_T}$no_stack_protector_flag" >&6
1N/A if test "x$no_stack_protector_flag" = xyes; then
1N/A STAGE2_CFLAGS="$STAGE2_CFLAGS -fno-stack-protector"
1N/A fi
1N/A fi
1N/Afi
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A# Enforce coding standards.
1N/ACPPFLAGS="$CPPFLAGS -Wall -Wmissing-prototypes -Wunused -Wshadow"
1N/ACPPFLAGS="$CPPFLAGS -Wpointer-arith"
1N/A
1N/Aecho "$as_me:$LINENO: checking whether -Wundef works" >&5
1N/Aecho $ECHO_N "checking whether -Wundef works... $ECHO_C" >&6
1N/Aif test "${undef_flag+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A
1N/A saved_CPPFLAGS="$CPPFLAGS"
1N/A CPPFLAGS="-Wundef"
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/A
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A undef_flag=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Aundef_flag=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/A CPPFLAGS="$saved_CPPFLAGS"
1N/A
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $undef_flag" >&5
1N/Aecho "${ECHO_T}$undef_flag" >&6
1N/A
1N/A# The options `-falign-*' are supported by gcc 3.0 or later.
1N/A# Probably it is sufficient to only check for -falign-loops.
1N/Aecho "$as_me:$LINENO: checking whether -falign-loops works" >&5
1N/Aecho $ECHO_N "checking whether -falign-loops works... $ECHO_C" >&6
1N/Aif test "${falign_loop_flag+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A
1N/A saved_CPPFLAGS="$CPPFLAGS"
1N/A CPPFLAGS="-falign-loops=1"
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/A
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A falign_loop_flag=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Afalign_loop_flag=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/A CPPFLAGS="$saved_CPPFLAGS"
1N/A
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $falign_loop_flag" >&5
1N/Aecho "${ECHO_T}$falign_loop_flag" >&6
1N/A
1N/A# Force no alignment to save space.
1N/Aif test "x$falign_loop_flag" = xyes; then
1N/A CPPFLAGS="$CPPFLAGS -falign-jumps=1 -falign-loops=1 -falign-functions=1"
1N/Aelse
1N/A CPPFLAGS="$CPPFLAGS -malign-jumps=1 -malign-loops=1 -malign-functions=1"
1N/Afi
1N/A
1N/Aif test "x$undef_flag" = xyes; then
1N/A CPPFLAGS="$CPPFLAGS -Wundef"
1N/Afi
1N/A
1N/Aif test "x$with_binutils" != x; then
1N/A # Extract the first word of "objcopy", so it can be a program name with args.
1N/Aset dummy objcopy; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_path_OBJCOPY+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A case $OBJCOPY in
1N/A [\\/]* | ?:[\\/]*)
1N/A ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path.
1N/A ;;
1N/A *)
1N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Aas_dummy=""$with_binutils:$PATH""
1N/Afor as_dir in $as_dummy
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/A ;;
1N/Aesac
1N/Afi
1N/AOBJCOPY=$ac_cv_path_OBJCOPY
1N/A
1N/Aif test -n "$OBJCOPY"; then
1N/A echo "$as_me:$LINENO: result: $OBJCOPY" >&5
1N/Aecho "${ECHO_T}$OBJCOPY" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/Aelse
1N/A if test -n "$ac_tool_prefix"; then
1N/A # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
1N/Aset dummy ${ac_tool_prefix}objcopy; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_OBJCOPY+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$OBJCOPY"; then
1N/A ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/AOBJCOPY=$ac_cv_prog_OBJCOPY
1N/Aif test -n "$OBJCOPY"; then
1N/A echo "$as_me:$LINENO: result: $OBJCOPY" >&5
1N/Aecho "${ECHO_T}$OBJCOPY" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/Afi
1N/Aif test -z "$ac_cv_prog_OBJCOPY"; then
1N/A ac_ct_OBJCOPY=$OBJCOPY
1N/A # Extract the first word of "objcopy", so it can be a program name with args.
1N/Aset dummy objcopy; ac_word=$2
1N/Aecho "$as_me:$LINENO: checking for $ac_word" >&5
1N/Aecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if test -n "$ac_ct_OBJCOPY"; then
1N/A ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
1N/Aelse
1N/Aas_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for ac_exec_ext in '' $ac_executable_extensions; do
1N/A if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1N/A ac_cv_prog_ac_ct_OBJCOPY="objcopy"
1N/A echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1N/A break 2
1N/A fi
1N/Adone
1N/Adone
1N/A
1N/Afi
1N/Afi
1N/Aac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
1N/Aif test -n "$ac_ct_OBJCOPY"; then
1N/A echo "$as_me:$LINENO: result: $ac_ct_OBJCOPY" >&5
1N/Aecho "${ECHO_T}$ac_ct_OBJCOPY" >&6
1N/Aelse
1N/A echo "$as_me:$LINENO: result: no" >&5
1N/Aecho "${ECHO_T}no" >&6
1N/Afi
1N/A
1N/A OBJCOPY=$ac_ct_OBJCOPY
1N/Aelse
1N/A OBJCOPY="$ac_cv_prog_OBJCOPY"
1N/Afi
1N/A
1N/Afi
1N/A
1N/A# Defined in acinclude.m4.
1N/A
1N/Aecho "$as_me:$LINENO: checking if C symbols get an underscore after compilation" >&5
1N/Aecho $ECHO_N "checking if C symbols get an underscore after compilation... $ECHO_C" >&6
1N/Aif test "${grub_cv_asm_uscore+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat > conftest.c <<\EOF
1N/Aint
1N/Afunc (int *list)
1N/A{
1N/A *list = 0;
1N/A return *list;
1N/A}
1N/AEOF
1N/A
1N/Aif { ac_try='${CC-cc} ${CFLAGS} -S conftest.c'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } && test -s conftest.s; then
1N/A true
1N/Aelse
1N/A { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce assembly code" >&5
1N/Aecho "$as_me: error: ${CC-cc} failed to produce assembly code" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/Aif grep _func conftest.s >/dev/null 2>&1; then
1N/A grub_cv_asm_uscore=yes
1N/Aelse
1N/A grub_cv_asm_uscore=no
1N/Afi
1N/A
1N/Arm -f conftest*
1N/Afi
1N/A
1N/A
1N/Aif test "x$grub_cv_asm_uscore" = xyes; then
1N/A
1N/Acat >>confdefs.h <<_ACEOF
1N/A#define HAVE_ASM_USCORE $grub_cv_asm_uscore
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_asm_uscore" >&5
1N/Aecho "${ECHO_T}$grub_cv_asm_uscore" >&6
1N/A
1N/Aecho "$as_me:$LINENO: checking whether ${OBJCOPY} works for absolute addresses" >&5
1N/Aecho $ECHO_N "checking whether ${OBJCOPY} works for absolute addresses... $ECHO_C" >&6
1N/Aif test "${grub_cv_prog_objcopy_absolute+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat > conftest.c <<\EOF
1N/Avoid
1N/Acmain (void)
1N/A{
1N/A *((int *) 0x1000) = 2;
1N/A}
1N/AEOF
1N/A
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } && test -s conftest.o; then :
1N/Aelse
1N/A { { echo "$as_me:$LINENO: error: ${CC-cc} cannot compile C source code" >&5
1N/Aecho "$as_me: error: ${CC-cc} cannot compile C source code" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Agrub_cv_prog_objcopy_absolute=yes
1N/Afor link_addr in 2000 8000 7C00; do
1N/A if { ac_try='${CC-cc} ${CFLAGS} -nostdlib -Wl,-N -Wl,-Ttext -Wl,$link_addr conftest.o -o conftest.exec'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then :
1N/A else
1N/A { { echo "$as_me:$LINENO: error: ${CC-cc} cannot link at address $link_addr" >&5
1N/Aecho "$as_me: error: ${CC-cc} cannot link at address $link_addr" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A fi
1N/A if { ac_try='${OBJCOPY-objcopy} -O binary conftest.exec conftest'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then :
1N/A else
1N/A { { echo "$as_me:$LINENO: error: ${OBJCOPY-objcopy} cannot create binary files" >&5
1N/Aecho "$as_me: error: ${OBJCOPY-objcopy} cannot create binary files" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A fi
1N/A if test ! -f conftest.old || { ac_try='cmp -s conftest.old conftest'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A mv -f conftest conftest.old
1N/A else
1N/A grub_cv_prog_objcopy_absolute=no
1N/A break
1N/A fi
1N/Adone
1N/Arm -f conftest*
1N/Afi
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_prog_objcopy_absolute" >&5
1N/Aecho "${ECHO_T}$grub_cv_prog_objcopy_absolute" >&6
1N/Aif test "x$grub_cv_prog_objcopy_absolute" != xyes; then
1N/A { { echo "$as_me:$LINENO: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&5
1N/Aecho "$as_me: error: GRUB requires a working absolute objcopy; upgrade your binutils" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking whether addr32 must be in the same line as the instruction" >&5
1N/Aecho $ECHO_N "checking whether addr32 must be in the same line as the instruction... $ECHO_C" >&6
1N/Aif test "${grub_cv_asm_prefix_requirement+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat > conftest.s <<\EOF
1N/A .code16
1N/Al1: addr32 movb %al, l1
1N/AEOF
1N/A
1N/Aif { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } && test -s conftest.o; then
1N/A grub_cv_asm_prefix_requirement=yes
1N/Aelse
1N/A grub_cv_asm_prefix_requirement=no
1N/Afi
1N/A
1N/Arm -f conftest*
1N/Afi
1N/A
1N/A
1N/Aif test "x$grub_cv_asm_prefix_requirement" = xyes; then
1N/A grub_tmp_addr32="addr32"
1N/A grub_tmp_data32="data32"
1N/Aelse
1N/A grub_tmp_addr32="addr32;"
1N/A grub_tmp_data32="data32;"
1N/Afi
1N/A
1N/A
1N/Acat >>confdefs.h <<_ACEOF
1N/A#define ADDR32 $grub_tmp_addr32
1N/A_ACEOF
1N/A
1N/A
1N/Acat >>confdefs.h <<_ACEOF
1N/A#define DATA32 $grub_tmp_data32
1N/A_ACEOF
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_asm_prefix_requirement" >&5
1N/Aecho "${ECHO_T}$grub_cv_asm_prefix_requirement" >&6
1N/A
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking for .code16 addr32 assembler support" >&5
1N/Aecho $ECHO_N "checking for .code16 addr32 assembler support... $ECHO_C" >&6
1N/Aif test "${grub_cv_asm_addr32+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat > conftest.s.in <<\EOF
1N/A .code16
1N/Al1: @ADDR32@ movb %al, l1
1N/AEOF
1N/A
1N/Aif test "x$grub_cv_asm_prefix_requirement" = xyes; then
1N/A sed -e s/@ADDR32@/addr32/ < conftest.s.in > conftest.s
1N/Aelse
1N/A sed -e s/@ADDR32@/addr32\;/ < conftest.s.in > conftest.s
1N/Afi
1N/A
1N/Aif { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } && test -s conftest.o; then
1N/A grub_cv_asm_addr32=yes
1N/Aelse
1N/A grub_cv_asm_addr32=no
1N/Afi
1N/A
1N/Arm -f conftest*
1N/Afi
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_asm_addr32" >&5
1N/Aecho "${ECHO_T}$grub_cv_asm_addr32" >&6
1N/Aif test "x$grub_cv_asm_addr32" != xyes; then
1N/A { { echo "$as_me:$LINENO: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&5
1N/Aecho "$as_me: error: GRUB requires GAS .code16 addr32 support; upgrade your binutils" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking whether an absolute indirect call/jump must not be prefixed with an asterisk" >&5
1N/Aecho $ECHO_N "checking whether an absolute indirect call/jump must not be prefixed with an asterisk... $ECHO_C" >&6
1N/Aif test "${grub_cv_asm_absolute_without_asterisk+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat > conftest.s <<\EOF
1N/A lcall *(offset)
1N/Aoffset:
1N/A .long 0
1N/A .word 0
1N/AEOF
1N/A
1N/Aif { ac_try='${CC-cc} ${CFLAGS} -c conftest.s'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } && test -s conftest.o; then
1N/A grub_cv_asm_absolute_without_asterisk=no
1N/Aelse
1N/A grub_cv_asm_absolute_without_asterisk=yes
1N/Afi
1N/A
1N/Arm -f conftest*
1N/Afi
1N/A
1N/A
1N/Aif test "x$grub_cv_asm_absolute_without_asterisk" = xyes; then
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define ABSOLUTE_WITHOUT_ASTERISK 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_asm_absolute_without_asterisk" >&5
1N/Aecho "${ECHO_T}$grub_cv_asm_absolute_without_asterisk" >&6
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking if start is defined by the compiler" >&5
1N/Aecho $ECHO_N "checking if start is defined by the compiler... $ECHO_C" >&6
1N/Aif test "${grub_cv_check_start_symbol+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/Aasm ("incl start")
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext conftest$ac_exeext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest$ac_exeext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A grub_cv_check_start_symbol=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Agrub_cv_check_start_symbol=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext \
1N/A conftest$ac_exeext conftest.$ac_ext
1N/Afi
1N/A
1N/A
1N/Aif test "x$grub_cv_check_start_symbol" = xyes; then
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define HAVE_START_SYMBOL 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_check_start_symbol" >&5
1N/Aecho "${ECHO_T}$grub_cv_check_start_symbol" >&6
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking if _start is defined by the compiler" >&5
1N/Aecho $ECHO_N "checking if _start is defined by the compiler... $ECHO_C" >&6
1N/Aif test "${grub_cv_check_uscore_start_symbol+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/Aasm ("incl _start")
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext conftest$ac_exeext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest$ac_exeext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A grub_cv_check_uscore_start_symbol=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Agrub_cv_check_uscore_start_symbol=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext \
1N/A conftest$ac_exeext conftest.$ac_ext
1N/Afi
1N/A
1N/A
1N/Aif test "x$grub_cv_check_uscore_start_symbol" = xyes; then
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define HAVE_USCORE_START_SYMBOL 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_check_uscore_start_symbol" >&5
1N/Aecho "${ECHO_T}$grub_cv_check_uscore_start_symbol" >&6
1N/A
1N/Aif test "x$grub_cv_check_start_symbol" != "xyes" \
1N/A -a "x$grub_cv_check_uscore_start_symbol" != "xyes"; then
1N/A { { echo "$as_me:$LINENO: error: Neither start nor _start is defined" >&5
1N/Aecho "$as_me: error: Neither start nor _start is defined" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking if __bss_start is defined by the compiler" >&5
1N/Aecho $ECHO_N "checking if __bss_start is defined by the compiler... $ECHO_C" >&6
1N/Aif test "${grub_cv_check_uscore_uscore_bss_start_symbol+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/Aasm ("incl __bss_start")
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext conftest$ac_exeext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest$ac_exeext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A grub_cv_check_uscore_uscore_bss_start_symbol=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Agrub_cv_check_uscore_uscore_bss_start_symbol=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext \
1N/A conftest$ac_exeext conftest.$ac_ext
1N/Afi
1N/A
1N/A
1N/Aif test "x$grub_cv_check_uscore_uscore_bss_start_symbol" = xyes; then
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define HAVE_USCORE_USCORE_BSS_START_SYMBOL 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_check_uscore_uscore_bss_start_symbol" >&5
1N/Aecho "${ECHO_T}$grub_cv_check_uscore_uscore_bss_start_symbol" >&6
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking if _edata is defined by the compiler" >&5
1N/Aecho $ECHO_N "checking if _edata is defined by the compiler... $ECHO_C" >&6
1N/Aif test "${grub_cv_check_uscore_edata_symbol+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/Aasm ("incl _edata")
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext conftest$ac_exeext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest$ac_exeext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A grub_cv_check_uscore_edata_symbol=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Agrub_cv_check_uscore_edata_symbol=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext \
1N/A conftest$ac_exeext conftest.$ac_ext
1N/Afi
1N/A
1N/A
1N/Aif test "x$grub_cv_check_uscore_edata_symbol" = xyes; then
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define HAVE_USCORE_EDATA_SYMBOL 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_check_uscore_edata_symbol" >&5
1N/Aecho "${ECHO_T}$grub_cv_check_uscore_edata_symbol" >&6
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking if edata is defined by the compiler" >&5
1N/Aecho $ECHO_N "checking if edata is defined by the compiler... $ECHO_C" >&6
1N/Aif test "${grub_cv_check_edata_symbol+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/Aasm ("incl edata")
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext conftest$ac_exeext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest$ac_exeext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A grub_cv_check_edata_symbol=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Agrub_cv_check_edata_symbol=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext \
1N/A conftest$ac_exeext conftest.$ac_ext
1N/Afi
1N/A
1N/A
1N/Aif test "x$grub_cv_check_edata_symbol" = xyes; then
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define HAVE_EDATA_SYMBOL 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_check_edata_symbol" >&5
1N/Aecho "${ECHO_T}$grub_cv_check_edata_symbol" >&6
1N/A
1N/Aif test "x$grub_cv_check_uscore_uscore_bss_start_symbol" != "xyes" \
1N/A -a "x$grub_cv_check_uscore_edata_symbol" != "xyes" \
1N/A -a "x$grub_cv_check_edata_symbol" != "xyes"; then
1N/A { { echo "$as_me:$LINENO: error: None of __bss_start, _edata, edata defined" >&5
1N/Aecho "$as_me: error: None of __bss_start, _edata, edata defined" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking if end is defined by the compiler" >&5
1N/Aecho $ECHO_N "checking if end is defined by the compiler... $ECHO_C" >&6
1N/Aif test "${grub_cv_check_end_symbol+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/Aasm ("incl end")
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext conftest$ac_exeext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest$ac_exeext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A grub_cv_check_end_symbol=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Agrub_cv_check_end_symbol=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext \
1N/A conftest$ac_exeext conftest.$ac_ext
1N/Afi
1N/A
1N/A
1N/Aif test "x$grub_cv_check_end_symbol" = xyes; then
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define HAVE_END_SYMBOL 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_check_end_symbol" >&5
1N/Aecho "${ECHO_T}$grub_cv_check_end_symbol" >&6
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking if _end is defined by the compiler" >&5
1N/Aecho $ECHO_N "checking if _end is defined by the compiler... $ECHO_C" >&6
1N/Aif test "${grub_cv_check_uscore_end_symbol+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/Aasm ("incl _end")
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext conftest$ac_exeext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest$ac_exeext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A grub_cv_check_uscore_end_symbol=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Agrub_cv_check_uscore_end_symbol=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext \
1N/A conftest$ac_exeext conftest.$ac_ext
1N/Afi
1N/A
1N/A
1N/Aif test "x$grub_cv_check_uscore_end_symbol" = xyes; then
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define HAVE_USCORE_END_SYMBOL 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Aecho "$as_me:$LINENO: result: $grub_cv_check_uscore_end_symbol" >&5
1N/Aecho "${ECHO_T}$grub_cv_check_uscore_end_symbol" >&6
1N/A
1N/Aif test "x$grub_cv_check_end_symbol" != "xyes" \
1N/A -a "x$grub_cv_check_uscore_end_symbol" != "xyes"; then
1N/A { { echo "$as_me:$LINENO: error: Neither end nor _end is defined" >&5
1N/Aecho "$as_me: error: Neither end nor _end is defined" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/A# Check for curses libraries.
1N/A
1N/A# Check whether --with-curses or --without-curses was given.
1N/Aif test "${with_curses+set}" = set; then
1N/A withval="$with_curses"
1N/A
1N/Afi;
1N/A
1N/A# Get the filename or the whole disk and open it.
1N/A# Known to work on NetBSD.
1N/Aecho "$as_me:$LINENO: checking for opendisk in -lutil" >&5
1N/Aecho $ECHO_N "checking for opendisk in -lutil... $ECHO_C" >&6
1N/Aif test "${ac_cv_lib_util_opendisk+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A ac_check_lib_save_LIBS=$LIBS
1N/ALIBS="-lutil $LIBS"
1N/Acat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/A/* Override any gcc2 internal prototype to avoid an error. */
1N/A#ifdef __cplusplus
1N/Aextern "C"
1N/A#endif
1N/A/* We use char because int might match the return type of a gcc2
1N/A builtin and then its argument prototype would still apply. */
1N/Achar opendisk ();
1N/Aint
1N/Amain ()
1N/A{
1N/Aopendisk ();
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext conftest$ac_exeext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest$ac_exeext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A ac_cv_lib_util_opendisk=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Aac_cv_lib_util_opendisk=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext \
1N/A conftest$ac_exeext conftest.$ac_ext
1N/ALIBS=$ac_check_lib_save_LIBS
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $ac_cv_lib_util_opendisk" >&5
1N/Aecho "${ECHO_T}$ac_cv_lib_util_opendisk" >&6
1N/Aif test $ac_cv_lib_util_opendisk = yes; then
1N/A GRUB_LIBS="$GRUB_LIBS -lutil"
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define HAVE_OPENDISK 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/A
1N/A# Unless the user specify --without-curses, check for curses.
1N/Aif test "x$with_curses" != "xno"; then
1N/A echo "$as_me:$LINENO: checking for wgetch in -lncurses" >&5
1N/Aecho $ECHO_N "checking for wgetch in -lncurses... $ECHO_C" >&6
1N/Aif test "${ac_cv_lib_ncurses_wgetch+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A ac_check_lib_save_LIBS=$LIBS
1N/ALIBS="-lncurses $LIBS"
1N/Acat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/A/* Override any gcc2 internal prototype to avoid an error. */
1N/A#ifdef __cplusplus
1N/Aextern "C"
1N/A#endif
1N/A/* We use char because int might match the return type of a gcc2
1N/A builtin and then its argument prototype would still apply. */
1N/Achar wgetch ();
1N/Aint
1N/Amain ()
1N/A{
1N/Awgetch ();
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext conftest$ac_exeext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest$ac_exeext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A ac_cv_lib_ncurses_wgetch=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Aac_cv_lib_ncurses_wgetch=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext \
1N/A conftest$ac_exeext conftest.$ac_ext
1N/ALIBS=$ac_check_lib_save_LIBS
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $ac_cv_lib_ncurses_wgetch" >&5
1N/Aecho "${ECHO_T}$ac_cv_lib_ncurses_wgetch" >&6
1N/Aif test $ac_cv_lib_ncurses_wgetch = yes; then
1N/A GRUB_LIBS="$GRUB_LIBS -lncurses"
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define HAVE_LIBCURSES 1
1N/A_ACEOF
1N/A
1N/Aelse
1N/A echo "$as_me:$LINENO: checking for wgetch in -lcurses" >&5
1N/Aecho $ECHO_N "checking for wgetch in -lcurses... $ECHO_C" >&6
1N/Aif test "${ac_cv_lib_curses_wgetch+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A ac_check_lib_save_LIBS=$LIBS
1N/ALIBS="-lcurses $LIBS"
1N/Acat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A
1N/A/* Override any gcc2 internal prototype to avoid an error. */
1N/A#ifdef __cplusplus
1N/Aextern "C"
1N/A#endif
1N/A/* We use char because int might match the return type of a gcc2
1N/A builtin and then its argument prototype would still apply. */
1N/Achar wgetch ();
1N/Aint
1N/Amain ()
1N/A{
1N/Awgetch ();
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext conftest$ac_exeext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest$ac_exeext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A ac_cv_lib_curses_wgetch=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Aac_cv_lib_curses_wgetch=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext \
1N/A conftest$ac_exeext conftest.$ac_ext
1N/ALIBS=$ac_check_lib_save_LIBS
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $ac_cv_lib_curses_wgetch" >&5
1N/Aecho "${ECHO_T}$ac_cv_lib_curses_wgetch" >&6
1N/Aif test $ac_cv_lib_curses_wgetch = yes; then
1N/A GRUB_LIBS="$GRUB_LIBS -lcurses"
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define HAVE_LIBCURSES 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Afi
1N/A
1N/Afi
1N/A
1N/A
1N/A
1N/A# Check for headers.
1N/Aac_ext=c
1N/Aac_cpp='$CPP $CPPFLAGS'
1N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
1N/Aecho "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1N/Aecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1N/A# On Suns, sometimes $CPP names a directory.
1N/Aif test -n "$CPP" && test -d "$CPP"; then
1N/A CPP=
1N/Afi
1N/Aif test -z "$CPP"; then
1N/A if test "${ac_cv_prog_CPP+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A # Double quotes because CPP needs to be expanded
1N/A for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1N/A do
1N/A ac_preproc_ok=false
1N/Afor ac_c_preproc_warn_flag in '' yes
1N/Ado
1N/A # Use a header file that comes with gcc, so configuring glibc
1N/A # with a fresh cross-compiler works.
1N/A # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1N/A # <limits.h> exists even on freestanding compilers.
1N/A # On the NeXT, cc -E runs the code through the compiler's parser,
1N/A # not just through cpp. "Syntax error" is here to catch this case.
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A#ifdef __STDC__
1N/A# include <limits.h>
1N/A#else
1N/A# include <assert.h>
1N/A#endif
1N/A Syntax error
1N/A_ACEOF
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1N/A (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } >/dev/null; then
1N/A if test -s conftest.err; then
1N/A ac_cpp_err=$ac_c_preproc_warn_flag
1N/A ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1N/A else
1N/A ac_cpp_err=
1N/A fi
1N/Aelse
1N/A ac_cpp_err=yes
1N/Afi
1N/Aif test -z "$ac_cpp_err"; then
1N/A :
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/A # Broken: fails on valid input.
1N/Acontinue
1N/Afi
1N/Arm -f conftest.err conftest.$ac_ext
1N/A
1N/A # OK, works on sane cases. Now check whether non-existent headers
1N/A # can be detected and how.
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A#include <ac_nonexistent.h>
1N/A_ACEOF
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1N/A (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } >/dev/null; then
1N/A if test -s conftest.err; then
1N/A ac_cpp_err=$ac_c_preproc_warn_flag
1N/A ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1N/A else
1N/A ac_cpp_err=
1N/A fi
1N/Aelse
1N/A ac_cpp_err=yes
1N/Afi
1N/Aif test -z "$ac_cpp_err"; then
1N/A # Broken: success on invalid input.
1N/Acontinue
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/A # Passes both tests.
1N/Aac_preproc_ok=:
1N/Abreak
1N/Afi
1N/Arm -f conftest.err conftest.$ac_ext
1N/A
1N/Adone
1N/A# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1N/Arm -f conftest.err conftest.$ac_ext
1N/Aif $ac_preproc_ok; then
1N/A break
1N/Afi
1N/A
1N/A done
1N/A ac_cv_prog_CPP=$CPP
1N/A
1N/Afi
1N/A CPP=$ac_cv_prog_CPP
1N/Aelse
1N/A ac_cv_prog_CPP=$CPP
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $CPP" >&5
1N/Aecho "${ECHO_T}$CPP" >&6
1N/Aac_preproc_ok=false
1N/Afor ac_c_preproc_warn_flag in '' yes
1N/Ado
1N/A # Use a header file that comes with gcc, so configuring glibc
1N/A # with a fresh cross-compiler works.
1N/A # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1N/A # <limits.h> exists even on freestanding compilers.
1N/A # On the NeXT, cc -E runs the code through the compiler's parser,
1N/A # not just through cpp. "Syntax error" is here to catch this case.
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A#ifdef __STDC__
1N/A# include <limits.h>
1N/A#else
1N/A# include <assert.h>
1N/A#endif
1N/A Syntax error
1N/A_ACEOF
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1N/A (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } >/dev/null; then
1N/A if test -s conftest.err; then
1N/A ac_cpp_err=$ac_c_preproc_warn_flag
1N/A ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1N/A else
1N/A ac_cpp_err=
1N/A fi
1N/Aelse
1N/A ac_cpp_err=yes
1N/Afi
1N/Aif test -z "$ac_cpp_err"; then
1N/A :
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/A # Broken: fails on valid input.
1N/Acontinue
1N/Afi
1N/Arm -f conftest.err conftest.$ac_ext
1N/A
1N/A # OK, works on sane cases. Now check whether non-existent headers
1N/A # can be detected and how.
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A#include <ac_nonexistent.h>
1N/A_ACEOF
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1N/A (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } >/dev/null; then
1N/A if test -s conftest.err; then
1N/A ac_cpp_err=$ac_c_preproc_warn_flag
1N/A ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1N/A else
1N/A ac_cpp_err=
1N/A fi
1N/Aelse
1N/A ac_cpp_err=yes
1N/Afi
1N/Aif test -z "$ac_cpp_err"; then
1N/A # Broken: success on invalid input.
1N/Acontinue
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/A # Passes both tests.
1N/Aac_preproc_ok=:
1N/Abreak
1N/Afi
1N/Arm -f conftest.err conftest.$ac_ext
1N/A
1N/Adone
1N/A# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1N/Arm -f conftest.err conftest.$ac_ext
1N/Aif $ac_preproc_ok; then
1N/A :
1N/Aelse
1N/A { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
1N/ASee \`config.log' for more details." >&5
1N/Aecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check
1N/ASee \`config.log' for more details." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/Aac_ext=c
1N/Aac_cpp='$CPP $CPPFLAGS'
1N/Aac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1N/Aac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1N/Aac_compiler_gnu=$ac_cv_c_compiler_gnu
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking for egrep" >&5
1N/Aecho $ECHO_N "checking for egrep... $ECHO_C" >&6
1N/Aif test "${ac_cv_prog_egrep+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1N/A then ac_cv_prog_egrep='grep -E'
1N/A else ac_cv_prog_egrep='egrep'
1N/A fi
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1N/Aecho "${ECHO_T}$ac_cv_prog_egrep" >&6
1N/A EGREP=$ac_cv_prog_egrep
1N/A
1N/A
1N/Aecho "$as_me:$LINENO: checking for ANSI C header files" >&5
1N/Aecho $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1N/Aif test "${ac_cv_header_stdc+set}" = set; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A#include <stdlib.h>
1N/A#include <stdarg.h>
1N/A#include <string.h>
1N/A#include <float.h>
1N/A
1N/Aint
1N/Amain ()
1N/A{
1N/A
1N/A ;
1N/A return 0;
1N/A}
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A ac_cv_header_stdc=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Aac_cv_header_stdc=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/A
1N/Aif test $ac_cv_header_stdc = yes; then
1N/A # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A#include <string.h>
1N/A
1N/A_ACEOF
1N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1N/A $EGREP "memchr" >/dev/null 2>&1; then
1N/A :
1N/Aelse
1N/A ac_cv_header_stdc=no
1N/Afi
1N/Arm -f conftest*
1N/A
1N/Afi
1N/A
1N/Aif test $ac_cv_header_stdc = yes; then
1N/A # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A#include <stdlib.h>
1N/A
1N/A_ACEOF
1N/Aif (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1N/A $EGREP "free" >/dev/null 2>&1; then
1N/A :
1N/Aelse
1N/A ac_cv_header_stdc=no
1N/Afi
1N/Arm -f conftest*
1N/A
1N/Afi
1N/A
1N/Aif test $ac_cv_header_stdc = yes; then
1N/A # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1N/A if test "$cross_compiling" = yes; then
1N/A :
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A#include <ctype.h>
1N/A#if ((' ' & 0x0FF) == 0x020)
1N/A# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1N/A# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1N/A#else
1N/A# define ISLOWER(c) \
1N/A (('a' <= (c) && (c) <= 'i') \
1N/A || ('j' <= (c) && (c) <= 'r') \
1N/A || ('s' <= (c) && (c) <= 'z'))
1N/A# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
1N/A#endif
1N/A
1N/A#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1N/Aint
1N/Amain ()
1N/A{
1N/A int i;
1N/A for (i = 0; i < 256; i++)
1N/A if (XOR (islower (i), ISLOWER (i))
1N/A || toupper (i) != TOUPPER (i))
1N/A exit(2);
1N/A exit (0);
1N/A}
1N/A_ACEOF
1N/Arm -f conftest$ac_exeext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1N/A (eval $ac_link) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A :
1N/Aelse
1N/A echo "$as_me: program exited with status $ac_status" >&5
1N/Aecho "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/A( exit $ac_status )
1N/Aac_cv_header_stdc=no
1N/Afi
1N/Arm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1N/Afi
1N/Afi
1N/Afi
1N/Aecho "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
1N/Aecho "${ECHO_T}$ac_cv_header_stdc" >&6
1N/Aif test $ac_cv_header_stdc = yes; then
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define STDC_HEADERS 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/A# On IRIX 5.3, sys/types and inttypes.h are conflicting.
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/Afor ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
1N/A inttypes.h stdint.h unistd.h
1N/Ado
1N/Aas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1N/Aecho "$as_me:$LINENO: checking for $ac_header" >&5
1N/Aecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
1N/Aif eval "test \"\${$as_ac_Header+set}\" = set"; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A cat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A$ac_includes_default
1N/A
1N/A#include <$ac_header>
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A eval "$as_ac_Header=yes"
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Aeval "$as_ac_Header=no"
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/Afi
1N/Aecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1N/Aecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1N/Aif test `eval echo '${'$as_ac_Header'}'` = yes; then
1N/A cat >>confdefs.h <<_ACEOF
1N/A#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Adone
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/Afor ac_header in string.h strings.h ncurses/curses.h ncurses.h curses.h
1N/Ado
1N/Aas_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1N/Aif eval "test \"\${$as_ac_Header+set}\" = set"; then
1N/A echo "$as_me:$LINENO: checking for $ac_header" >&5
1N/Aecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
1N/Aif eval "test \"\${$as_ac_Header+set}\" = set"; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Afi
1N/Aecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1N/Aecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1N/Aelse
1N/A # Is the header compilable?
1N/Aecho "$as_me:$LINENO: checking $ac_header usability" >&5
1N/Aecho $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
1N/Acat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A$ac_includes_default
1N/A#include <$ac_header>
1N/A_ACEOF
1N/Arm -f conftest.$ac_objext
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1N/A (eval $ac_compile) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } &&
1N/A { ac_try='test -z "$ac_c_werror_flag"
1N/A || test ! -s conftest.err'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } &&
1N/A { ac_try='test -s conftest.$ac_objext'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; }; then
1N/A ac_header_compiler=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/Aac_header_compiler=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1N/Aecho "$as_me:$LINENO: result: $ac_header_compiler" >&5
1N/Aecho "${ECHO_T}$ac_header_compiler" >&6
1N/A
1N/A# Is the header present?
1N/Aecho "$as_me:$LINENO: checking $ac_header presence" >&5
1N/Aecho $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
1N/Acat >conftest.$ac_ext <<_ACEOF
1N/A/* confdefs.h. */
1N/A_ACEOF
1N/Acat confdefs.h >>conftest.$ac_ext
1N/Acat >>conftest.$ac_ext <<_ACEOF
1N/A/* end confdefs.h. */
1N/A#include <$ac_header>
1N/A_ACEOF
1N/Aif { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
1N/A (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1N/A ac_status=$?
1N/A grep -v '^ *+' conftest.er1 >conftest.err
1N/A rm -f conftest.er1
1N/A cat conftest.err >&5
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); } >/dev/null; then
1N/A if test -s conftest.err; then
1N/A ac_cpp_err=$ac_c_preproc_warn_flag
1N/A ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
1N/A else
1N/A ac_cpp_err=
1N/A fi
1N/Aelse
1N/A ac_cpp_err=yes
1N/Afi
1N/Aif test -z "$ac_cpp_err"; then
1N/A ac_header_preproc=yes
1N/Aelse
1N/A echo "$as_me: failed program was:" >&5
1N/Ased 's/^/| /' conftest.$ac_ext >&5
1N/A
1N/A ac_header_preproc=no
1N/Afi
1N/Arm -f conftest.err conftest.$ac_ext
1N/Aecho "$as_me:$LINENO: result: $ac_header_preproc" >&5
1N/Aecho "${ECHO_T}$ac_header_preproc" >&6
1N/A
1N/A# So? What about this header?
1N/Acase $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
1N/A yes:no: )
1N/A { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
1N/Aecho "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
1N/A { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
1N/Aecho "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
1N/A ac_header_preproc=yes
1N/A ;;
1N/A no:yes:* )
1N/A { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
1N/Aecho "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
1N/A { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
1N/Aecho "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
1N/A { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
1N/Aecho "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
1N/A { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
1N/Aecho "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
1N/A { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
1N/Aecho "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
1N/A { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
1N/Aecho "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1N/A (
1N/A cat <<\_ASBOX
1N/A## ------------------------------- ##
1N/A## Report this to bug-grub@gnu.org ##
1N/A## ------------------------------- ##
1N/A_ASBOX
1N/A ) |
1N/A sed "s/^/$as_me: WARNING: /" >&2
1N/A ;;
1N/Aesac
1N/Aecho "$as_me:$LINENO: checking for $ac_header" >&5
1N/Aecho $ECHO_N "checking for $ac_header... $ECHO_C" >&6
1N/Aif eval "test \"\${$as_ac_Header+set}\" = set"; then
1N/A echo $ECHO_N "(cached) $ECHO_C" >&6
1N/Aelse
1N/A eval "$as_ac_Header=\$ac_header_preproc"
1N/Afi
1N/Aecho "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
1N/Aecho "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1N/A
1N/Afi
1N/Aif test `eval echo '${'$as_ac_Header'}'` = yes; then
1N/A cat >>confdefs.h <<_ACEOF
1N/A#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/Adone
1N/A
1N/A
1N/A# Check for user options.
1N/A
1N/A# filesystems support.
1N/A# Check whether --enable-ext2fs or --disable-ext2fs was given.
1N/Aif test "${enable_ext2fs+set}" = set; then
1N/A enableval="$enable_ext2fs"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_ext2fs" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_EXT2FS=1"
1N/Afi
1N/A
1N/A# Check whether --enable-fat or --disable-fat was given.
1N/Aif test "${enable_fat+set}" = set; then
1N/A enableval="$enable_fat"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_fat" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FAT=1"
1N/Afi
1N/A
1N/A# Check whether --enable-ffs or --disable-ffs was given.
1N/Aif test "${enable_ffs+set}" = set; then
1N/A enableval="$enable_ffs"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_ffs" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_FFS=1"
1N/Afi
1N/A
1N/A# Check whether --enable-ufs or --disable-ufs was given.
1N/Aif test "${enable_ufs+set}" = set; then
1N/A enableval="$enable_ufs"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_ufs" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_UFS=1"
1N/Afi
1N/A
1N/A# Check whether --enable-ufs2 or --disable-ufs2 was given.
1N/Aif test "${enable_ufs2+set}" = set; then
1N/A enableval="$enable_ufs2"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_ufs2" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_UFS2=1"
1N/Afi
1N/A
1N/A# Check whether --enable-minix or --disable-minix was given.
1N/Aif test "${enable_minix+set}" = set; then
1N/A enableval="$enable_minix"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_minix" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_MINIX=1"
1N/Afi
1N/A
1N/A# Check whether --enable-reiserfs or --disable-reiserfs was given.
1N/Aif test "${enable_reiserfs+set}" = set; then
1N/A enableval="$enable_reiserfs"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_reiserfs" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_REISERFS=1"
1N/Afi
1N/A
1N/A# Check whether --enable-vstafs or --disable-vstafs was given.
1N/Aif test "${enable_vstafs+set}" = set; then
1N/A enableval="$enable_vstafs"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_vstafs" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_VSTAFS=1"
1N/Afi
1N/A
1N/A# Check whether --enable-jfs or --disable-jfs was given.
1N/Aif test "${enable_jfs+set}" = set; then
1N/A enableval="$enable_jfs"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_jfs" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_JFS=1"
1N/Afi
1N/A
1N/A# Check whether --enable-xfs or --disable-xfs was given.
1N/Aif test "${enable_xfs+set}" = set; then
1N/A enableval="$enable_xfs"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_xfs" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_XFS=1"
1N/Afi
1N/A
1N/A# Check whether --enable-zfs or --disable-zfs was given.
1N/Aif test "${enable_zfs+set}" = set; then
1N/A enableval="$enable_zfs"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_zfs" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_ZFS=1"
1N/Afi
1N/A
1N/A# Check whether --enable-iso9660 or --disable-iso9660 was given.
1N/Aif test "${enable_iso9660+set}" = set; then
1N/A enableval="$enable_iso9660"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_iso9660" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_ISO9660=1"
1N/Afi
1N/A
1N/A
1N/A# Check whether --enable-gunzip or --disable-gunzip was given.
1N/Aif test "${enable_gunzip+set}" = set; then
1N/A enableval="$enable_gunzip"
1N/A
1N/Afi;
1N/A
1N/Aif test x"$enable_gunzip" = xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DNO_DECOMPRESSION=1"
1N/Afi
1N/A
1N/A# Check whether --enable-md5-password or --disable-md5-password was given.
1N/Aif test "${enable_md5_password+set}" = set; then
1N/A enableval="$enable_md5_password"
1N/A
1N/Afi;
1N/Aif test "x$enable_md5_password" != xno; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DUSE_MD5_PASSWORDS=1"
1N/Afi
1N/A
1N/A# Check whether --enable-packet-retransmission or --disable-packet-retransmission was given.
1N/Aif test "${enable_packet_retransmission+set}" = set; then
1N/A enableval="$enable_packet_retransmission"
1N/A
1N/Afi;
1N/Aif test "x$enable_packet_retransmission" != xno; then
1N/A NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONGESTED=1 -DCONFIG_PCI"
1N/Afi
1N/A
1N/A# Check whether --enable-pci-direct or --disable-pci-direct was given.
1N/Aif test "${enable_pci_direct+set}" = set; then
1N/A enableval="$enable_pci_direct"
1N/A
1N/Afi;
1N/Aif test "x$enable_pci_direct" = xyes; then
1N/A NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCONFIG_PCI_DIRECT=1"
1N/Afi
1N/A
1N/A# Check whether --enable-3c595 or --disable-3c595 was given.
1N/Aif test "${enable_3c595+set}" = set; then
1N/A enableval="$enable_3c595"
1N/A
1N/Afi;
1N/Aif test "x$enable_3c595" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C595=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c595.o"
1N/Afi
1N/A
1N/A# Check whether --enable-3c90x or --disable-3c90x was given.
1N/Aif test "${enable_3c90x+set}" = set; then
1N/A enableval="$enable_3c90x"
1N/A
1N/Afi;
1N/Aif test "x$enable_3c90x" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_3C90X=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS 3c90x.o"
1N/Afi
1N/A
1N/A# Check whether --enable-davicom or --disable-davicom was given.
1N/Aif test "${enable_davicom+set}" = set; then
1N/A enableval="$enable_davicom"
1N/A
1N/Afi;
1N/Aif test "x$enable_davicom" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_DAVICOM=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS davicom.o"
1N/Afi
1N/A
1N/A# Check whether --enable-e1000 or --disable-e1000 was given.
1N/Aif test "${enable_e1000+set}" = set; then
1N/A enableval="$enable_e1000"
1N/A
1N/Afi;
1N/Aif test "x$enable_e1000" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_E1000=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS e1000.o"
1N/Afi
1N/A
1N/A# Check whether --enable-eepro100 or --disable-eepro100 was given.
1N/Aif test "${enable_eepro100+set}" = set; then
1N/A enableval="$enable_eepro100"
1N/A
1N/Afi;
1N/Aif test "x$enable_eepro100" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EEPRO100=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS eepro100.o"
1N/Afi
1N/A
1N/A# Check whether --enable-epic100 or --disable-epic100 was given.
1N/Aif test "${enable_epic100+set}" = set; then
1N/A enableval="$enable_epic100"
1N/A
1N/Afi;
1N/Aif test "x$enable_epic100" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_EPIC100=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS epic100.o"
1N/Afi
1N/A
1N/A# Check whether --enable-forcedeth or --disable-forcedeth was given.
1N/Aif test "${enable_forcedeth+set}" = set; then
1N/A enableval="$enable_forcedeth"
1N/A
1N/Afi;
1N/Aif test "x$enable_forcedeth" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_FORCEDETH=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS forcedeth.o"
1N/Afi
1N/A
1N/A# Check whether --enable-natsemi or --disable-natsemi was given.
1N/Aif test "${enable_natsemi+set}" = set; then
1N/A enableval="$enable_natsemi"
1N/A
1N/Afi;
1N/Aif test "x$enable_natsemi" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NATSEMI=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS natsemi.o"
1N/Afi
1N/A
1N/A# Check whether --enable-ns83820 or --disable-ns83820 was given.
1N/Aif test "${enable_ns83820+set}" = set; then
1N/A enableval="$enable_ns83820"
1N/A
1N/Afi;
1N/Aif test "x$enable_ns83820" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NS83820=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS ns83820.o"
1N/Afi
1N/A
1N/A# Check whether --enable-ns8390 or --disable-ns8390 was given.
1N/Aif test "${enable_ns8390+set}" = set; then
1N/A enableval="$enable_ns8390"
1N/A
1N/Afi;
1N/Aif test "x$enable_ns8390" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_NS8390=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS ns8390.o"
1N/Afi
1N/A
1N/A# Check whether --enable-pcnet32 or --disable-pcnet32 was given.
1N/Aif test "${enable_pcnet32+set}" = set; then
1N/A enableval="$enable_pcnet32"
1N/A
1N/Afi;
1N/Aif test "x$enable_pcnet32" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_PCNET32=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS pcnet32.o"
1N/Afi
1N/A
1N/A# Check whether --enable-pnic or --disable-pnic was given.
1N/Aif test "${enable_pnic+set}" = set; then
1N/A enableval="$enable_pnic"
1N/A
1N/Afi;
1N/Aif test "x$enable_pnic" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_PNIC=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS pnic.o"
1N/Afi
1N/A
1N/A# Check whether --enable-rtl8139 or --disable-rtl8139 was given.
1N/Aif test "${enable_rtl8139+set}" = set; then
1N/A enableval="$enable_rtl8139"
1N/A
1N/Afi;
1N/Aif test "x$enable_rtl8139" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_RTL8139=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS rtl8139.o"
1N/Afi
1N/A
1N/A# Check whether --enable-r8169 or --disable-r8169 was given.
1N/Aif test "${enable_r8169+set}" = set; then
1N/A enableval="$enable_r8169"
1N/A
1N/Afi;
1N/Aif test "x$enable_r8169" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_R8169=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS r8169.o"
1N/Afi
1N/A
1N/A# Check whether --enable-sis900 or --disable-sis900 was given.
1N/Aif test "${enable_sis900+set}" = set; then
1N/A enableval="$enable_sis900"
1N/A
1N/Afi;
1N/Aif test "x$enable_sis900" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SIS900=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS sis900.o"
1N/Afi
1N/A
1N/A# Check whether --enable-sundance or --disable-sundance was given.
1N/Aif test "${enable_sundance+set}" = set; then
1N/A enableval="$enable_sundance"
1N/A
1N/Afi;
1N/Aif test "x$enable_sundance" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_SUNDANCE=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS sundance.o"
1N/Afi
1N/A
1N/A# Check whether --enable-tg3 or --disable-tg3 was given.
1N/Aif test "${enable_tg3+set}" = set; then
1N/A enableval="$enable_tg3"
1N/A
1N/Afi;
1N/Aif test "x$enable_tg3" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TG3=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS tg3.o"
1N/Afi
1N/A
1N/A# Check whether --enable-tulip or --disable-tulip was given.
1N/Aif test "${enable_tulip+set}" = set; then
1N/A enableval="$enable_tulip"
1N/A
1N/Afi;
1N/Aif test "x$enable_tulip" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TULIP=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS tulip.o"
1N/Afi
1N/A
1N/A# Check whether --enable-tlan or --disable-tlan was given.
1N/Aif test "${enable_tlan+set}" = set; then
1N/A enableval="$enable_tlan"
1N/A
1N/Afi;
1N/Aif test "x$enable_tlan" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_TLAN=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS tlan.o"
1N/Afi
1N/A
1N/A# Check whether --enable-undi or --disable-undi was given.
1N/Aif test "${enable_undi+set}" = set; then
1N/A enableval="$enable_undi"
1N/A
1N/Afi;
1N/Aif test "x$enable_undi" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_UNDI=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS undi.o"
1N/Afi
1N/A
1N/A# Check whether --enable-via-rhine or --disable-via-rhine was given.
1N/Aif test "${enable_via_rhine+set}" = set; then
1N/A enableval="$enable_via_rhine"
1N/A
1N/Afi;
1N/Aif test "x$enable_via_rhine" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_VIA_RHINE=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS via_rhine.o"
1N/Afi
1N/A
1N/A# Check whether --enable-w89c840 or --disable-w89c840 was given.
1N/Aif test "${enable_w89c840+set}" = set; then
1N/A enableval="$enable_w89c840"
1N/A
1N/Afi;
1N/Aif test "x$enable_w89c840" = xyes; then
1N/A NET_CFLAGS="$NET_CFLAGS -DINCLUDE_W89C840=1"
1N/A NETBOOT_DRIVERS="$NETBOOT_DRIVERS w89c840.o"
1N/Afi
1N/A
1N/A
1N/A
1N/Aif test "x$NET_CFLAGS" != x; then
1N/A NETBOOT_SUPPORT_TRUE=
1N/A NETBOOT_SUPPORT_FALSE='#'
1N/Aelse
1N/A NETBOOT_SUPPORT_TRUE='#'
1N/A NETBOOT_SUPPORT_FALSE=
1N/Afi
1N/A
1N/Aif test "x$NET_CFLAGS" != x; then
1N/A FSYS_CFLAGS="$FSYS_CFLAGS -DFSYS_TFTP=1"
1N/Afi
1N/A
1N/A# Check whether --enable-compex-rl2000-fix or --disable-compex-rl2000-fix was given.
1N/Aif test "${enable_compex_rl2000_fix+set}" = set; then
1N/A enableval="$enable_compex_rl2000_fix"
1N/A
1N/Afi;
1N/Aif test "x$enable_compex_rl2000_fix" = xyes; then
1N/A NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DCOMPEX_RL2000_FIX=1"
1N/Afi
1N/A
1N/A# Check whether --enable-ne-scan or --disable-ne-scan was given.
1N/Aif test "${enable_ne_scan+set}" = set; then
1N/A enableval="$enable_ne_scan"
1N/A NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=$enable_ne_scan"
1N/Aelse
1N/A NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DNE_SCAN=0x280,0x300,0x320,0x340"
1N/Afi;
1N/A
1N/A# Check whether --enable-wd-default-mem or --disable-wd-default-mem was given.
1N/Aif test "${enable_wd_default_mem+set}" = set; then
1N/A enableval="$enable_wd_default_mem"
1N/A NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=$enable_wd_default_mem"
1N/Aelse
1N/A NET_EXTRAFLAGS="$NET_EXTRAFLAGS -DWD_DEFAULT_MEM=0xCC000"
1N/Afi;
1N/A
1N/A# Check whether --enable-diskless or --disable-diskless was given.
1N/Aif test "${enable_diskless+set}" = set; then
1N/A enableval="$enable_diskless"
1N/A
1N/Afi;
1N/A
1N/A
1N/Aif test "x$enable_diskless" = xyes; then
1N/A DISKLESS_SUPPORT_TRUE=
1N/A DISKLESS_SUPPORT_FALSE='#'
1N/Aelse
1N/A DISKLESS_SUPPORT_TRUE='#'
1N/A DISKLESS_SUPPORT_FALSE=
1N/Afi
1N/A
1N/A
1N/A# Check whether --enable-graphics or --disable-graphics was given.
1N/Aif test "${enable_graphics+set}" = set; then
1N/A enableval="$enable_graphics"
1N/A
1N/Afi;
1N/A
1N/A
1N/Aif test "x$enable_graphics" != xno; then
1N/A GRAPHICS_SUPPORT_TRUE=
1N/A GRAPHICS_SUPPORT_FALSE='#'
1N/Aelse
1N/A GRAPHICS_SUPPORT_TRUE='#'
1N/A GRAPHICS_SUPPORT_FALSE=
1N/Afi
1N/A
1N/A
1N/A# Check whether --enable-hercules or --disable-hercules was given.
1N/Aif test "${enable_hercules+set}" = set; then
1N/A enableval="$enable_hercules"
1N/A
1N/Afi;
1N/A
1N/A
1N/Aif test "x$enable_hercules" != xno; then
1N/A HERCULES_SUPPORT_TRUE=
1N/A HERCULES_SUPPORT_FALSE='#'
1N/Aelse
1N/A HERCULES_SUPPORT_TRUE='#'
1N/A HERCULES_SUPPORT_FALSE=
1N/Afi
1N/A
1N/A
1N/A# Check whether --enable-serial or --disable-serial was given.
1N/Aif test "${enable_serial+set}" = set; then
1N/A enableval="$enable_serial"
1N/A
1N/Afi;
1N/A
1N/A
1N/Aif test "x$enable_serial" != xno; then
1N/A SERIAL_SUPPORT_TRUE=
1N/A SERIAL_SUPPORT_FALSE='#'
1N/Aelse
1N/A SERIAL_SUPPORT_TRUE='#'
1N/A SERIAL_SUPPORT_FALSE=
1N/Afi
1N/A
1N/A
1N/A# Check whether --enable-serial-speed-simulation or --disable-serial-speed-simulation was given.
1N/Aif test "${enable_serial_speed_simulation+set}" = set; then
1N/A enableval="$enable_serial_speed_simulation"
1N/A
1N/Afi;
1N/A
1N/A
1N/Aif test "x$enable_serial_speed_simulation" = xyes; then
1N/A SERIAL_SPEED_SIMULATION_TRUE=
1N/A SERIAL_SPEED_SIMULATION_FALSE='#'
1N/Aelse
1N/A SERIAL_SPEED_SIMULATION_TRUE='#'
1N/A SERIAL_SPEED_SIMULATION_FALSE=
1N/Afi
1N/A
1N/A
1N/A# Sanity check.
1N/Aif test "x$enable_diskless" = xyes; then
1N/A if test "x$NET_CFLAGS" = x; then
1N/A { { echo "$as_me:$LINENO: error: You must enable at least one network driver" >&5
1N/Aecho "$as_me: error: You must enable at least one network driver" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A fi
1N/Afi
1N/A
1N/A# Check whether --enable-preset-menu or --disable-preset-menu was given.
1N/Aif test "${enable_preset_menu+set}" = set; then
1N/A enableval="$enable_preset_menu"
1N/A
1N/Afi;
1N/Aif test "x$enable_preset_menu" = x; then
1N/A :
1N/Aelse
1N/A if test -r $enable_preset_menu; then
1N/A
1N/A# Because early versions of GNU sed 3.x are too buggy, use a C program
1N/A# instead of shell commands. *sigh*
1N/Acat >conftest.c <<\EOF
1N/A#include <stdio.h>
1N/A
1N/Aint
1N/Amain (void)
1N/A{
1N/A int c;
1N/A
1N/A while ((c = getchar ()) != EOF)
1N/A {
1N/A switch (c)
1N/A {
1N/A case '\n':
1N/A fputs ("\\n", stdout);
1N/A break;
1N/A case '\r':
1N/A fputs ("\\r", stdout);
1N/A break;
1N/A case '\\':
1N/A fputs ("\\\\", stdout);
1N/A break;
1N/A case '"':
1N/A fputs ("\\\"", stdout);
1N/A break;
1N/A default:
1N/A putchar (c);
1N/A }
1N/A }
1N/A
1N/A return 0;
1N/A}
1N/AEOF
1N/A
1N/Aif { ac_try='${CC-cc} ${CFLAGS} conftest.c -o conftest'
1N/A { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1N/A (eval $ac_try) 2>&5
1N/A ac_status=$?
1N/A echo "$as_me:$LINENO: \$? = $ac_status" >&5
1N/A (exit $ac_status); }; } && test -s conftest; then
1N/A grub_tmp_value=`./conftest < "$enable_preset_menu"`
1N/Aelse
1N/A { { echo "$as_me:$LINENO: error: ${CC-cc} failed to produce an executable file" >&5
1N/Aecho "$as_me: error: ${CC-cc} failed to produce an executable file" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/A
1N/Acat >>confdefs.h <<_ACEOF
1N/A#define PRESET_MENU_STRING "$grub_tmp_value"
1N/A_ACEOF
1N/A
1N/Arm -f conftest*
1N/A
1N/A else
1N/A { { echo "$as_me:$LINENO: error: Cannot read the preset menu file $enable_preset_menu" >&5
1N/Aecho "$as_me: error: Cannot read the preset menu file $enable_preset_menu" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A fi
1N/Afi
1N/A
1N/A# Check whether --enable-example-kernel or --disable-example-kernel was given.
1N/Aif test "${enable_example_kernel+set}" = set; then
1N/A enableval="$enable_example_kernel"
1N/A
1N/Afi;
1N/A
1N/A
1N/Aif test "x$enable_example_kernel" = xyes; then
1N/A BUILD_EXAMPLE_KERNEL_TRUE=
1N/A BUILD_EXAMPLE_KERNEL_FALSE='#'
1N/Aelse
1N/A BUILD_EXAMPLE_KERNEL_TRUE='#'
1N/A BUILD_EXAMPLE_KERNEL_FALSE=
1N/Afi
1N/A
1N/A
1N/A# Check whether --enable-auto-linux-mem-opt or --disable-auto-linux-mem-opt was given.
1N/Aif test "${enable_auto_linux_mem_opt+set}" = set; then
1N/A enableval="$enable_auto_linux_mem_opt"
1N/A
1N/Afi;
1N/Aif test "x$enable_auto_linux_mem_opt" = xno; then
1N/A :
1N/Aelse
1N/A
1N/Acat >>confdefs.h <<\_ACEOF
1N/A#define AUTO_LINUX_MEM_OPT 1
1N/A_ACEOF
1N/A
1N/Afi
1N/A
1N/A
1N/A
1N/A
1N/A
1N/A
1N/ACCASFLAGS='$(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)'
1N/A
1N/A
1N/A
1N/A ac_config_files="$ac_config_files Makefile stage1/Makefile stage2/Makefile docs/Makefile lib/Makefile util/Makefile grub/Makefile netboot/Makefile util/grub-image util/grub-install util/grub-md5-crypt util/grub-terminfo util/grub-set-default"
1N/A
1N/Acat >confcache <<\_ACEOF
1N/A# This file is a shell script that caches the results of configure
1N/A# tests run on this system so they can be shared between configure
1N/A# scripts and configure runs, see configure's option --config-cache.
1N/A# It is not useful on other systems. If it contains results you don't
1N/A# want to keep, you may remove or edit it.
1N/A#
1N/A# config.status only pays attention to the cache file if you give it
1N/A# the --recheck option to rerun configure.
1N/A#
1N/A# `ac_cv_env_foo' variables (set or unset) will be overridden when
1N/A# loading this file, other *unset* `ac_cv_foo' will be assigned the
1N/A# following values.
1N/A
1N/A_ACEOF
1N/A
1N/A# The following way of writing the cache mishandles newlines in values,
1N/A# but we know of no workaround that is simple, portable, and efficient.
1N/A# So, don't put newlines in cache variables' values.
1N/A# Ultrix sh set writes to stderr and can't be redirected directly,
1N/A# and sets the high bit in the cache file unless we assign to the vars.
1N/A{
1N/A (set) 2>&1 |
1N/A case `(ac_space=' '; set | grep ac_space) 2>&1` in
1N/A *ac_space=\ *)
1N/A # `set' does not quote correctly, so add quotes (double-quote
1N/A # substitution turns \\\\ into \\, and sed turns \\ into \).
1N/A sed -n \
1N/A "s/'/'\\\\''/g;
1N/A s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1N/A ;;
1N/A *)
1N/A # `set' quotes correctly as required by POSIX, so do not add quotes.
1N/A sed -n \
1N/A "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1N/A ;;
1N/A esac;
1N/A} |
1N/A sed '
1N/A t clear
1N/A : clear
1N/A s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
1N/A t end
1N/A /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
1N/A : end' >>confcache
1N/Aif diff $cache_file confcache >/dev/null 2>&1; then :; else
1N/A if test -w $cache_file; then
1N/A test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
1N/A cat confcache >$cache_file
1N/A else
1N/A echo "not updating unwritable cache $cache_file"
1N/A fi
1N/Afi
1N/Arm -f confcache
1N/A
1N/Atest "x$prefix" = xNONE && prefix=$ac_default_prefix
1N/A# Let make expand exec_prefix.
1N/Atest "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1N/A
1N/A# VPATH may cause trouble with some makes, so we remove $(srcdir),
1N/A# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
1N/A# trailing colons and then remove the whole line if VPATH becomes empty
1N/A# (actually we leave an empty line to preserve line numbers).
1N/Aif test "x$srcdir" = x.; then
1N/A ac_vpsub='/^[ ]*VPATH[ ]*=/{
1N/As/:*\$(srcdir):*/:/;
1N/As/:*\${srcdir}:*/:/;
1N/As/:*@srcdir@:*/:/;
1N/As/^\([^=]*=[ ]*\):*/\1/;
1N/As/:*$//;
1N/As/^[^=]*=[ ]*$//;
1N/A}'
1N/Afi
1N/A
1N/ADEFS=-DHAVE_CONFIG_H
1N/A
1N/Aac_libobjs=
1N/Aac_ltlibobjs=
1N/Afor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1N/A # 1. Remove the extension, and $U if already installed.
1N/A ac_i=`echo "$ac_i" |
1N/A sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
1N/A # 2. Add them.
1N/A ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
1N/A ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
1N/Adone
1N/ALIBOBJS=$ac_libobjs
1N/A
1N/ALTLIBOBJS=$ac_ltlibobjs
1N/A
1N/A
1N/Aif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
1N/A { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&5
1N/Aecho "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1N/A { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&5
1N/Aecho "$as_me: error: conditional \"AMDEP\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1N/A { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&5
1N/Aecho "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1N/A { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&5
1N/Aecho "$as_me: error: conditional \"am__fastdepCC\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aif test -z "${NETBOOT_SUPPORT_TRUE}" && test -z "${NETBOOT_SUPPORT_FALSE}"; then
1N/A { { echo "$as_me:$LINENO: error: conditional \"NETBOOT_SUPPORT\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&5
1N/Aecho "$as_me: error: conditional \"NETBOOT_SUPPORT\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aif test -z "${DISKLESS_SUPPORT_TRUE}" && test -z "${DISKLESS_SUPPORT_FALSE}"; then
1N/A { { echo "$as_me:$LINENO: error: conditional \"DISKLESS_SUPPORT\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&5
1N/Aecho "$as_me: error: conditional \"DISKLESS_SUPPORT\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aif test -z "${GRAPHICS_SUPPORT_TRUE}" && test -z "${GRAPHICS_SUPPORT_FALSE}"; then
1N/A { { echo "$as_me:$LINENO: error: conditional \"GRAPHICS_SUPPORT\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&5
1N/Aecho "$as_me: error: conditional \"GRAPHICS_SUPPORT\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aif test -z "${HERCULES_SUPPORT_TRUE}" && test -z "${HERCULES_SUPPORT_FALSE}"; then
1N/A { { echo "$as_me:$LINENO: error: conditional \"HERCULES_SUPPORT\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&5
1N/Aecho "$as_me: error: conditional \"HERCULES_SUPPORT\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aif test -z "${SERIAL_SUPPORT_TRUE}" && test -z "${SERIAL_SUPPORT_FALSE}"; then
1N/A { { echo "$as_me:$LINENO: error: conditional \"SERIAL_SUPPORT\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&5
1N/Aecho "$as_me: error: conditional \"SERIAL_SUPPORT\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aif test -z "${SERIAL_SPEED_SIMULATION_TRUE}" && test -z "${SERIAL_SPEED_SIMULATION_FALSE}"; then
1N/A { { echo "$as_me:$LINENO: error: conditional \"SERIAL_SPEED_SIMULATION\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&5
1N/Aecho "$as_me: error: conditional \"SERIAL_SPEED_SIMULATION\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/Aif test -z "${BUILD_EXAMPLE_KERNEL_TRUE}" && test -z "${BUILD_EXAMPLE_KERNEL_FALSE}"; then
1N/A { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLE_KERNEL\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&5
1N/Aecho "$as_me: error: conditional \"BUILD_EXAMPLE_KERNEL\" was never defined.
1N/AUsually this means the macro was only invoked conditionally." >&2;}
1N/A { (exit 1); exit 1; }; }
1N/Afi
1N/A
1N/A: ${CONFIG_STATUS=./config.status}
1N/Aac_clean_files_save=$ac_clean_files
1N/Aac_clean_files="$ac_clean_files $CONFIG_STATUS"
1N/A{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
1N/Aecho "$as_me: creating $CONFIG_STATUS" >&6;}
1N/Acat >$CONFIG_STATUS <<_ACEOF
1N/A#! $SHELL
1N/A# Generated by $as_me.
1N/A# Run this file to recreate the current configuration.
1N/A# Compiler output produced by configure, useful for debugging
1N/A# configure, is in config.log if it exists.
1N/A
1N/Adebug=false
1N/Aac_cs_recheck=false
1N/Aac_cs_silent=false
1N/ASHELL=\${CONFIG_SHELL-$SHELL}
1N/A_ACEOF
1N/A
1N/Acat >>$CONFIG_STATUS <<\_ACEOF
1N/A## --------------------- ##
1N/A## M4sh Initialization. ##
1N/A## --------------------- ##
1N/A
1N/A# Be Bourne compatible
1N/Aif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1N/A emulate sh
1N/A NULLCMD=:
1N/A # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
1N/A # is contrary to our usage. Disable this feature.
1N/A alias -g '${1+"$@"}'='"$@"'
1N/Aelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
1N/A set -o posix
1N/Afi
1N/ADUALCASE=1; export DUALCASE # for MKS sh
1N/A
1N/A# Support unset when possible.
1N/Aif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1N/A as_unset=unset
1N/Aelse
1N/A as_unset=false
1N/Afi
1N/A
1N/A
1N/A# Work around bugs in pre-3.0 UWIN ksh.
1N/A$as_unset ENV MAIL MAILPATH
1N/APS1='$ '
1N/APS2='> '
1N/APS4='+ '
1N/A
1N/A# NLS nuisances.
1N/Afor as_var in \
1N/A LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
1N/A LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
1N/A LC_TELEPHONE LC_TIME
1N/Ado
1N/A if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1N/A eval $as_var=C; export $as_var
1N/A else
1N/A $as_unset $as_var
1N/A fi
1N/Adone
1N/A
1N/A# Required to use basename.
1N/Aif expr a : '\(a\)' >/dev/null 2>&1; then
1N/A as_expr=expr
1N/Aelse
1N/A as_expr=false
1N/Afi
1N/A
1N/Aif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
1N/A as_basename=basename
1N/Aelse
1N/A as_basename=false
1N/Afi
1N/A
1N/A
1N/A# Name of the executable.
1N/Aas_me=`$as_basename "$0" ||
1N/A$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
1N/A X"$0" : 'X\(//\)$' \| \
1N/A X"$0" : 'X\(/\)$' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X/"$0" |
1N/A sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
1N/A /^X\/\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\/\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A
1N/A
1N/A# PATH needs CR, and LINENO needs CR and PATH.
1N/A# Avoid depending upon Character Ranges.
1N/Aas_cr_letters='abcdefghijklmnopqrstuvwxyz'
1N/Aas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
1N/Aas_cr_Letters=$as_cr_letters$as_cr_LETTERS
1N/Aas_cr_digits='0123456789'
1N/Aas_cr_alnum=$as_cr_Letters$as_cr_digits
1N/A
1N/A# The user is always right.
1N/Aif test "${PATH_SEPARATOR+set}" != set; then
1N/A echo "#! /bin/sh" >conf$$.sh
1N/A echo "exit 0" >>conf$$.sh
1N/A chmod +x conf$$.sh
1N/A if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
1N/A PATH_SEPARATOR=';'
1N/A else
1N/A PATH_SEPARATOR=:
1N/A fi
1N/A rm -f conf$$.sh
1N/Afi
1N/A
1N/A
1N/A as_lineno_1=$LINENO
1N/A as_lineno_2=$LINENO
1N/A as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1N/A test "x$as_lineno_1" != "x$as_lineno_2" &&
1N/A test "x$as_lineno_3" = "x$as_lineno_2" || {
1N/A # Find who we are. Look in the path if we contain no path at all
1N/A # relative or not.
1N/A case $0 in
1N/A *[\\/]* ) as_myself=$0 ;;
1N/A *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in $PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
1N/Adone
1N/A
1N/A ;;
1N/A esac
1N/A # We did not find ourselves, most probably we were run as `sh COMMAND'
1N/A # in which case we are not to be found in the path.
1N/A if test "x$as_myself" = x; then
1N/A as_myself=$0
1N/A fi
1N/A if test ! -f "$as_myself"; then
1N/A { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
1N/Aecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A fi
1N/A case $CONFIG_SHELL in
1N/A '')
1N/A as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1N/Afor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1N/Ado
1N/A IFS=$as_save_IFS
1N/A test -z "$as_dir" && as_dir=.
1N/A for as_base in sh bash ksh sh5; do
1N/A case $as_dir in
1N/A /*)
1N/A if ("$as_dir/$as_base" -c '
1N/A as_lineno_1=$LINENO
1N/A as_lineno_2=$LINENO
1N/A as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
1N/A test "x$as_lineno_1" != "x$as_lineno_2" &&
1N/A test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
1N/A $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
1N/A $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
1N/A CONFIG_SHELL=$as_dir/$as_base
1N/A export CONFIG_SHELL
1N/A exec "$CONFIG_SHELL" "$0" ${1+"$@"}
1N/A fi;;
1N/A esac
1N/A done
1N/Adone
1N/A;;
1N/A esac
1N/A
1N/A # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
1N/A # uniformly replaced by the line number. The first 'sed' inserts a
1N/A # line-number line before each line; the second 'sed' does the real
1N/A # work. The second script uses 'N' to pair each line-number line
1N/A # with the numbered line, and appends trailing '-' during
1N/A # substitution so that $LINENO is not a special case at line end.
1N/A # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1N/A # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
1N/A sed '=' <$as_myself |
1N/A sed '
1N/A N
1N/A s,$,-,
1N/A : loop
1N/A s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
1N/A t loop
1N/A s,-$,,
1N/A s,^['$as_cr_digits']*\n,,
1N/A ' >$as_me.lineno &&
1N/A chmod +x $as_me.lineno ||
1N/A { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
1N/Aecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A
1N/A # Don't try to exec as it changes $[0], causing all sort of problems
1N/A # (the dirname of $[0] is not the place where we might find the
1N/A # original and so on. Autoconf is especially sensible to this).
1N/A . ./$as_me.lineno
1N/A # Exit status is that of the last command.
1N/A exit
1N/A}
1N/A
1N/A
1N/Acase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1N/A *c*,-n*) ECHO_N= ECHO_C='
1N/A' ECHO_T=' ' ;;
1N/A *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1N/A *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1N/Aesac
1N/A
1N/Aif expr a : '\(a\)' >/dev/null 2>&1; then
1N/A as_expr=expr
1N/Aelse
1N/A as_expr=false
1N/Afi
1N/A
1N/Arm -f conf$$ conf$$.exe conf$$.file
1N/Aecho >conf$$.file
1N/Aif ln -s conf$$.file conf$$ 2>/dev/null; then
1N/A # We could just check for DJGPP; but this test a) works b) is more generic
1N/A # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
1N/A if test -f conf$$.exe; then
1N/A # Don't use ln at all; we don't have any links
1N/A as_ln_s='cp -p'
1N/A else
1N/A as_ln_s='ln -s'
1N/A fi
1N/Aelif ln conf$$.file conf$$ 2>/dev/null; then
1N/A as_ln_s=ln
1N/Aelse
1N/A as_ln_s='cp -p'
1N/Afi
1N/Arm -f conf$$ conf$$.exe conf$$.file
1N/A
1N/Aif mkdir -p . 2>/dev/null; then
1N/A as_mkdir_p=:
1N/Aelse
1N/A test -d ./-p && rmdir ./-p
1N/A as_mkdir_p=false
1N/Afi
1N/A
1N/Aas_executable_p="test -f"
1N/A
1N/A# Sed expression to map a string onto a valid CPP name.
1N/Aas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1N/A
1N/A# Sed expression to map a string onto a valid variable name.
1N/Aas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1N/A
1N/A
1N/A# IFS
1N/A# We need space, tab and new line, in precisely that order.
1N/Aas_nl='
1N/A'
1N/AIFS=" $as_nl"
1N/A
1N/A# CDPATH.
1N/A$as_unset CDPATH
1N/A
1N/Aexec 6>&1
1N/A
1N/A# Open the log real soon, to keep \$[0] and so on meaningful, and to
1N/A# report actual input values of CONFIG_FILES etc. instead of their
1N/A# values after options handling. Logging --version etc. is OK.
1N/Aexec 5>>config.log
1N/A{
1N/A echo
1N/A sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
1N/A## Running $as_me. ##
1N/A_ASBOX
1N/A} >&5
1N/Acat >&5 <<_CSEOF
1N/A
1N/AThis file was extended by GRUB $as_me 0.97, which was
1N/Agenerated by GNU Autoconf 2.59. Invocation command line was
1N/A
1N/A CONFIG_FILES = $CONFIG_FILES
1N/A CONFIG_HEADERS = $CONFIG_HEADERS
1N/A CONFIG_LINKS = $CONFIG_LINKS
1N/A CONFIG_COMMANDS = $CONFIG_COMMANDS
1N/A $ $0 $@
1N/A
1N/A_CSEOF
1N/Aecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
1N/Aecho >&5
1N/A_ACEOF
1N/A
1N/A# Files that config.status was made for.
1N/Aif test -n "$ac_config_files"; then
1N/A echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1N/Afi
1N/A
1N/Aif test -n "$ac_config_headers"; then
1N/A echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1N/Afi
1N/A
1N/Aif test -n "$ac_config_links"; then
1N/A echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1N/Afi
1N/A
1N/Aif test -n "$ac_config_commands"; then
1N/A echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1N/Afi
1N/A
1N/Acat >>$CONFIG_STATUS <<\_ACEOF
1N/A
1N/Aac_cs_usage="\
1N/A\`$as_me' instantiates files from templates according to the
1N/Acurrent configuration.
1N/A
1N/AUsage: $0 [OPTIONS] [FILE]...
1N/A
1N/A -h, --help print this help, then exit
1N/A -V, --version print version number, then exit
1N/A -q, --quiet do not print progress messages
1N/A -d, --debug don't remove temporary files
1N/A --recheck update $as_me by reconfiguring in the same conditions
1N/A --file=FILE[:TEMPLATE]
1N/A instantiate the configuration file FILE
1N/A --header=FILE[:TEMPLATE]
1N/A instantiate the configuration header FILE
1N/A
1N/AConfiguration files:
1N/A$config_files
1N/A
1N/AConfiguration headers:
1N/A$config_headers
1N/A
1N/AConfiguration commands:
1N/A$config_commands
1N/A
1N/AReport bugs to <bug-autoconf@gnu.org>."
1N/A_ACEOF
1N/A
1N/Acat >>$CONFIG_STATUS <<_ACEOF
1N/Aac_cs_version="\\
1N/AGRUB config.status 0.97
1N/Aconfigured by $0, generated by GNU Autoconf 2.59,
1N/A with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
1N/A
1N/ACopyright (C) 2003 Free Software Foundation, Inc.
1N/AThis config.status script is free software; the Free Software Foundation
1N/Agives unlimited permission to copy, distribute and modify it."
1N/Asrcdir=$srcdir
1N/AINSTALL="$INSTALL"
1N/A_ACEOF
1N/A
1N/Acat >>$CONFIG_STATUS <<\_ACEOF
1N/A# If no file are specified by the user, then we need to provide default
1N/A# value. By we need to know if files were specified by the user.
1N/Aac_need_defaults=:
1N/Awhile test $# != 0
1N/Ado
1N/A case $1 in
1N/A --*=*)
1N/A ac_option=`expr "x$1" : 'x\([^=]*\)='`
1N/A ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1N/A ac_shift=:
1N/A ;;
1N/A -*)
1N/A ac_option=$1
1N/A ac_optarg=$2
1N/A ac_shift=shift
1N/A ;;
1N/A *) # This is not an option, so the user has probably given explicit
1N/A # arguments.
1N/A ac_option=$1
1N/A ac_need_defaults=false;;
1N/A esac
1N/A
1N/A case $ac_option in
1N/A # Handling of the options.
1N/A_ACEOF
1N/Acat >>$CONFIG_STATUS <<\_ACEOF
1N/A -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1N/A ac_cs_recheck=: ;;
1N/A --version | --vers* | -V )
1N/A echo "$ac_cs_version"; exit 0 ;;
1N/A --he | --h)
1N/A # Conflict between --help and --header
1N/A { { echo "$as_me:$LINENO: error: ambiguous option: $1
1N/ATry \`$0 --help' for more information." >&5
1N/Aecho "$as_me: error: ambiguous option: $1
1N/ATry \`$0 --help' for more information." >&2;}
1N/A { (exit 1); exit 1; }; };;
1N/A --help | --hel | -h )
1N/A echo "$ac_cs_usage"; exit 0 ;;
1N/A --debug | --d* | -d )
1N/A debug=: ;;
1N/A --file | --fil | --fi | --f )
1N/A $ac_shift
1N/A CONFIG_FILES="$CONFIG_FILES $ac_optarg"
1N/A ac_need_defaults=false;;
1N/A --header | --heade | --head | --hea )
1N/A $ac_shift
1N/A CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
1N/A ac_need_defaults=false;;
1N/A -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1N/A | -silent | --silent | --silen | --sile | --sil | --si | --s)
1N/A ac_cs_silent=: ;;
1N/A
1N/A # This is an error.
1N/A -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
1N/ATry \`$0 --help' for more information." >&5
1N/Aecho "$as_me: error: unrecognized option: $1
1N/ATry \`$0 --help' for more information." >&2;}
1N/A { (exit 1); exit 1; }; } ;;
1N/A
1N/A *) ac_config_targets="$ac_config_targets $1" ;;
1N/A
1N/A esac
1N/A shift
1N/Adone
1N/A
1N/Aac_configure_extra_args=
1N/A
1N/Aif $ac_cs_silent; then
1N/A exec 6>/dev/null
1N/A ac_configure_extra_args="$ac_configure_extra_args --silent"
1N/Afi
1N/A
1N/A_ACEOF
1N/Acat >>$CONFIG_STATUS <<_ACEOF
1N/Aif \$ac_cs_recheck; then
1N/A echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
1N/A exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1N/Afi
1N/A
1N/A_ACEOF
1N/A
1N/Acat >>$CONFIG_STATUS <<_ACEOF
1N/A#
1N/A# INIT-COMMANDS section.
1N/A#
1N/A
1N/AAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1N/A
1N/A_ACEOF
1N/A
1N/A
1N/A
1N/Acat >>$CONFIG_STATUS <<\_ACEOF
1N/Afor ac_config_target in $ac_config_targets
1N/Ado
1N/A case "$ac_config_target" in
1N/A # Handling of arguments.
1N/A "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
1N/A "stage1/Makefile" ) CONFIG_FILES="$CONFIG_FILES stage1/Makefile" ;;
1N/A "stage2/Makefile" ) CONFIG_FILES="$CONFIG_FILES stage2/Makefile" ;;
1N/A "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
1N/A "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
1N/A "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
1N/A "grub/Makefile" ) CONFIG_FILES="$CONFIG_FILES grub/Makefile" ;;
1N/A "netboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES netboot/Makefile" ;;
1N/A "util/grub-image" ) CONFIG_FILES="$CONFIG_FILES util/grub-image" ;;
1N/A "util/grub-install" ) CONFIG_FILES="$CONFIG_FILES util/grub-install" ;;
1N/A "util/grub-md5-crypt" ) CONFIG_FILES="$CONFIG_FILES util/grub-md5-crypt" ;;
1N/A "util/grub-terminfo" ) CONFIG_FILES="$CONFIG_FILES util/grub-terminfo" ;;
1N/A "util/grub-set-default" ) CONFIG_FILES="$CONFIG_FILES util/grub-set-default" ;;
1N/A "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1N/A "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
1N/A *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
1N/Aecho "$as_me: error: invalid argument: $ac_config_target" >&2;}
1N/A { (exit 1); exit 1; }; };;
1N/A esac
1N/Adone
1N/A
1N/A# If the user did not use the arguments to specify the items to instantiate,
1N/A# then the envvar interface is used. Set only those that are not.
1N/A# We use the long form for the default assignment because of an extremely
1N/A# bizarre bug on SunOS 4.1.3.
1N/Aif $ac_need_defaults; then
1N/A test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
1N/A test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
1N/A test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
1N/Afi
1N/A
1N/A# Have a temporary directory for convenience. Make it in the build tree
1N/A# simply because there is no reason to put it here, and in addition,
1N/A# creating and moving files from /tmp can sometimes cause problems.
1N/A# Create a temporary directory, and hook for its removal unless debugging.
1N/A$debug ||
1N/A{
1N/A trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
1N/A trap '{ (exit 1); exit 1; }' 1 2 13 15
1N/A}
1N/A
1N/A# Create a (secure) tmp directory for tmp files.
1N/A
1N/A{
1N/A tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
1N/A test -n "$tmp" && test -d "$tmp"
1N/A} ||
1N/A{
1N/A tmp=./confstat$$-$RANDOM
1N/A (umask 077 && mkdir $tmp)
1N/A} ||
1N/A{
1N/A echo "$me: cannot create a temporary directory in ." >&2
1N/A { (exit 1); exit 1; }
1N/A}
1N/A
1N/A_ACEOF
1N/A
1N/Acat >>$CONFIG_STATUS <<_ACEOF
1N/A
1N/A#
1N/A# CONFIG_FILES section.
1N/A#
1N/A
1N/A# No need to generate the scripts if there are no CONFIG_FILES.
1N/A# This happens for instance when ./config.status config.h
1N/Aif test -n "\$CONFIG_FILES"; then
1N/A # Protect against being on the right side of a sed subst in config.status.
1N/A sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
1N/A s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
1N/As,@SHELL@,$SHELL,;t t
1N/As,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
1N/As,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
1N/As,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
1N/As,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
1N/As,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
1N/As,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
1N/As,@exec_prefix@,$exec_prefix,;t t
1N/As,@prefix@,$prefix,;t t
1N/As,@program_transform_name@,$program_transform_name,;t t
1N/As,@bindir@,$bindir,;t t
1N/As,@sbindir@,$sbindir,;t t
1N/As,@libexecdir@,$libexecdir,;t t
1N/As,@datadir@,$datadir,;t t
1N/As,@sysconfdir@,$sysconfdir,;t t
1N/As,@sharedstatedir@,$sharedstatedir,;t t
1N/As,@localstatedir@,$localstatedir,;t t
1N/As,@libdir@,$libdir,;t t
1N/As,@includedir@,$includedir,;t t
1N/As,@oldincludedir@,$oldincludedir,;t t
1N/As,@infodir@,$infodir,;t t
1N/As,@mandir@,$mandir,;t t
1N/As,@build_alias@,$build_alias,;t t
1N/As,@host_alias@,$host_alias,;t t
1N/As,@target_alias@,$target_alias,;t t
1N/As,@DEFS@,$DEFS,;t t
1N/As,@ECHO_C@,$ECHO_C,;t t
1N/As,@ECHO_N@,$ECHO_N,;t t
1N/As,@ECHO_T@,$ECHO_T,;t t
1N/As,@LIBS@,$LIBS,;t t
1N/As,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
1N/As,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
1N/As,@INSTALL_DATA@,$INSTALL_DATA,;t t
1N/As,@CYGPATH_W@,$CYGPATH_W,;t t
1N/As,@PACKAGE@,$PACKAGE,;t t
1N/As,@VERSION@,$VERSION,;t t
1N/As,@ACLOCAL@,$ACLOCAL,;t t
1N/As,@AUTOCONF@,$AUTOCONF,;t t
1N/As,@AUTOMAKE@,$AUTOMAKE,;t t
1N/As,@AUTOHEADER@,$AUTOHEADER,;t t
1N/As,@MAKEINFO@,$MAKEINFO,;t t
1N/As,@install_sh@,$install_sh,;t t
1N/As,@STRIP@,$STRIP,;t t
1N/As,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
1N/As,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
1N/As,@mkdir_p@,$mkdir_p,;t t
1N/As,@AWK@,$AWK,;t t
1N/As,@SET_MAKE@,$SET_MAKE,;t t
1N/As,@am__leading_dot@,$am__leading_dot,;t t
1N/As,@AMTAR@,$AMTAR,;t t
1N/As,@am__tar@,$am__tar,;t t
1N/As,@am__untar@,$am__untar,;t t
1N/As,@build@,$build,;t t
1N/As,@build_cpu@,$build_cpu,;t t
1N/As,@build_vendor@,$build_vendor,;t t
1N/As,@build_os@,$build_os,;t t
1N/As,@host@,$host,;t t
1N/As,@host_cpu@,$host_cpu,;t t
1N/As,@host_vendor@,$host_vendor,;t t
1N/As,@host_os@,$host_os,;t t
1N/As,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
1N/As,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
1N/As,@MAINT@,$MAINT,;t t
1N/As,@PERL@,$PERL,;t t
1N/As,@CC@,$CC,;t t
1N/As,@ac_ct_CC@,$ac_ct_CC,;t t
1N/As,@CFLAGS@,$CFLAGS,;t t
1N/As,@LDFLAGS@,$LDFLAGS,;t t
1N/As,@CPPFLAGS@,$CPPFLAGS,;t t
1N/As,@EXEEXT@,$EXEEXT,;t t
1N/As,@OBJEXT@,$OBJEXT,;t t
1N/As,@DEPDIR@,$DEPDIR,;t t
1N/As,@am__include@,$am__include,;t t
1N/As,@am__quote@,$am__quote,;t t
1N/As,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
1N/As,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
1N/As,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
1N/As,@CCDEPMODE@,$CCDEPMODE,;t t
1N/As,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
1N/As,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
1N/As,@CCAS@,$CCAS,;t t
1N/As,@RANLIB@,$RANLIB,;t t
1N/As,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1N/As,@STAGE1_CFLAGS@,$STAGE1_CFLAGS,;t t
1N/As,@STAGE2_CFLAGS@,$STAGE2_CFLAGS,;t t
1N/As,@GRUB_CFLAGS@,$GRUB_CFLAGS,;t t
1N/As,@OBJCOPY@,$OBJCOPY,;t t
1N/As,@ac_ct_OBJCOPY@,$ac_ct_OBJCOPY,;t t
1N/As,@GRUB_LIBS@,$GRUB_LIBS,;t t
1N/As,@CPP@,$CPP,;t t
1N/As,@EGREP@,$EGREP,;t t
1N/As,@NETBOOT_SUPPORT_TRUE@,$NETBOOT_SUPPORT_TRUE,;t t
1N/As,@NETBOOT_SUPPORT_FALSE@,$NETBOOT_SUPPORT_FALSE,;t t
1N/As,@DISKLESS_SUPPORT_TRUE@,$DISKLESS_SUPPORT_TRUE,;t t
1N/As,@DISKLESS_SUPPORT_FALSE@,$DISKLESS_SUPPORT_FALSE,;t t
1N/As,@GRAPHICS_SUPPORT_TRUE@,$GRAPHICS_SUPPORT_TRUE,;t t
1N/As,@GRAPHICS_SUPPORT_FALSE@,$GRAPHICS_SUPPORT_FALSE,;t t
1N/As,@HERCULES_SUPPORT_TRUE@,$HERCULES_SUPPORT_TRUE,;t t
1N/As,@HERCULES_SUPPORT_FALSE@,$HERCULES_SUPPORT_FALSE,;t t
1N/As,@SERIAL_SUPPORT_TRUE@,$SERIAL_SUPPORT_TRUE,;t t
1N/As,@SERIAL_SUPPORT_FALSE@,$SERIAL_SUPPORT_FALSE,;t t
1N/As,@SERIAL_SPEED_SIMULATION_TRUE@,$SERIAL_SPEED_SIMULATION_TRUE,;t t
1N/As,@SERIAL_SPEED_SIMULATION_FALSE@,$SERIAL_SPEED_SIMULATION_FALSE,;t t
1N/As,@BUILD_EXAMPLE_KERNEL_TRUE@,$BUILD_EXAMPLE_KERNEL_TRUE,;t t
1N/As,@BUILD_EXAMPLE_KERNEL_FALSE@,$BUILD_EXAMPLE_KERNEL_FALSE,;t t
1N/As,@FSYS_CFLAGS@,$FSYS_CFLAGS,;t t
1N/As,@NET_CFLAGS@,$NET_CFLAGS,;t t
1N/As,@NET_EXTRAFLAGS@,$NET_EXTRAFLAGS,;t t
1N/As,@NETBOOT_DRIVERS@,$NETBOOT_DRIVERS,;t t
1N/As,@CCASFLAGS@,$CCASFLAGS,;t t
1N/As,@LIBOBJS@,$LIBOBJS,;t t
1N/As,@LTLIBOBJS@,$LTLIBOBJS,;t t
1N/ACEOF
1N/A
1N/A_ACEOF
1N/A
1N/A cat >>$CONFIG_STATUS <<\_ACEOF
1N/A # Split the substitutions into bite-sized pieces for seds with
1N/A # small command number limits, like on Digital OSF/1 and HP-UX.
1N/A ac_max_sed_lines=48
1N/A ac_sed_frag=1 # Number of current file.
1N/A ac_beg=1 # First line for current file.
1N/A ac_end=$ac_max_sed_lines # Line after last line for current file.
1N/A ac_more_lines=:
1N/A ac_sed_cmds=
1N/A while $ac_more_lines; do
1N/A if test $ac_beg -gt 1; then
1N/A sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1N/A else
1N/A sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
1N/A fi
1N/A if test ! -s $tmp/subs.frag; then
1N/A ac_more_lines=false
1N/A else
1N/A # The purpose of the label and of the branching condition is to
1N/A # speed up the sed processing (if there are no `@' at all, there
1N/A # is no need to browse any of the substitutions).
1N/A # These are the two extra sed commands mentioned above.
1N/A (echo ':t
1N/A /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
1N/A if test -z "$ac_sed_cmds"; then
1N/A ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
1N/A else
1N/A ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
1N/A fi
1N/A ac_sed_frag=`expr $ac_sed_frag + 1`
1N/A ac_beg=$ac_end
1N/A ac_end=`expr $ac_end + $ac_max_sed_lines`
1N/A fi
1N/A done
1N/A if test -z "$ac_sed_cmds"; then
1N/A ac_sed_cmds=cat
1N/A fi
1N/Afi # test -n "$CONFIG_FILES"
1N/A
1N/A_ACEOF
1N/Acat >>$CONFIG_STATUS <<\_ACEOF
1N/Afor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
1N/A # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1N/A case $ac_file in
1N/A - | *:- | *:-:* ) # input from stdin
1N/A cat >$tmp/stdin
1N/A ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1N/A ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1N/A *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1N/A ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1N/A * ) ac_file_in=$ac_file.in ;;
1N/A esac
1N/A
1N/A # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
1N/A ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1N/A$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1N/A X"$ac_file" : 'X\(//\)[^/]' \| \
1N/A X"$ac_file" : 'X\(//\)$' \| \
1N/A X"$ac_file" : 'X\(/\)' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X"$ac_file" |
1N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1N/A /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1N/A /^X\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A { if $as_mkdir_p; then
1N/A mkdir -p "$ac_dir"
1N/A else
1N/A as_dir="$ac_dir"
1N/A as_dirs=
1N/A while test ! -d "$as_dir"; do
1N/A as_dirs="$as_dir $as_dirs"
1N/A as_dir=`(dirname "$as_dir") 2>/dev/null ||
1N/A$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1N/A X"$as_dir" : 'X\(//\)[^/]' \| \
1N/A X"$as_dir" : 'X\(//\)$' \| \
1N/A X"$as_dir" : 'X\(/\)' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X"$as_dir" |
1N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1N/A /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1N/A /^X\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A done
1N/A test ! -n "$as_dirs" || mkdir $as_dirs
1N/A fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
1N/Aecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1N/A { (exit 1); exit 1; }; }; }
1N/A
1N/A ac_builddir=.
1N/A
1N/Aif test "$ac_dir" != .; then
1N/A ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1N/A # A "../" for each directory in $ac_dir_suffix.
1N/A ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1N/Aelse
1N/A ac_dir_suffix= ac_top_builddir=
1N/Afi
1N/A
1N/Acase $srcdir in
1N/A .) # No --srcdir option. We are building in place.
1N/A ac_srcdir=.
1N/A if test -z "$ac_top_builddir"; then
1N/A ac_top_srcdir=.
1N/A else
1N/A ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1N/A fi ;;
1N/A [\\/]* | ?:[\\/]* ) # Absolute path.
1N/A ac_srcdir=$srcdir$ac_dir_suffix;
1N/A ac_top_srcdir=$srcdir ;;
1N/A *) # Relative path.
1N/A ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1N/A ac_top_srcdir=$ac_top_builddir$srcdir ;;
1N/Aesac
1N/A
1N/A# Do not use `cd foo && pwd` to compute absolute paths, because
1N/A# the directories may not exist.
1N/Acase `pwd` in
1N/A.) ac_abs_builddir="$ac_dir";;
1N/A*)
1N/A case "$ac_dir" in
1N/A .) ac_abs_builddir=`pwd`;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1N/A *) ac_abs_builddir=`pwd`/"$ac_dir";;
1N/A esac;;
1N/Aesac
1N/Acase $ac_abs_builddir in
1N/A.) ac_abs_top_builddir=${ac_top_builddir}.;;
1N/A*)
1N/A case ${ac_top_builddir}. in
1N/A .) ac_abs_top_builddir=$ac_abs_builddir;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1N/A *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1N/A esac;;
1N/Aesac
1N/Acase $ac_abs_builddir in
1N/A.) ac_abs_srcdir=$ac_srcdir;;
1N/A*)
1N/A case $ac_srcdir in
1N/A .) ac_abs_srcdir=$ac_abs_builddir;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1N/A *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1N/A esac;;
1N/Aesac
1N/Acase $ac_abs_builddir in
1N/A.) ac_abs_top_srcdir=$ac_top_srcdir;;
1N/A*)
1N/A case $ac_top_srcdir in
1N/A .) ac_abs_top_srcdir=$ac_abs_builddir;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1N/A *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1N/A esac;;
1N/Aesac
1N/A
1N/A
1N/A case $INSTALL in
1N/A [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
1N/A *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
1N/A esac
1N/A
1N/A if test x"$ac_file" != x-; then
1N/A { echo "$as_me:$LINENO: creating $ac_file" >&5
1N/Aecho "$as_me: creating $ac_file" >&6;}
1N/A rm -f "$ac_file"
1N/A fi
1N/A # Let's still pretend it is `configure' which instantiates (i.e., don't
1N/A # use $as_me), people would be surprised to read:
1N/A # /* config.h. Generated by config.status. */
1N/A if test x"$ac_file" = x-; then
1N/A configure_input=
1N/A else
1N/A configure_input="$ac_file. "
1N/A fi
1N/A configure_input=$configure_input"Generated from `echo $ac_file_in |
1N/A sed 's,.*/,,'` by configure."
1N/A
1N/A # First look for the input files in the build tree, otherwise in the
1N/A # src tree.
1N/A ac_file_inputs=`IFS=:
1N/A for f in $ac_file_in; do
1N/A case $f in
1N/A -) echo $tmp/stdin ;;
1N/A [\\/$]*)
1N/A # Absolute (can't be DOS-style, as IFS=:)
1N/A test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1N/Aecho "$as_me: error: cannot find input file: $f" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A echo "$f";;
1N/A *) # Relative
1N/A if test -f "$f"; then
1N/A # Build tree
1N/A echo "$f"
1N/A elif test -f "$srcdir/$f"; then
1N/A # Source tree
1N/A echo "$srcdir/$f"
1N/A else
1N/A # /dev/null tree
1N/A { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1N/Aecho "$as_me: error: cannot find input file: $f" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A fi;;
1N/A esac
1N/A done` || { (exit 1); exit 1; }
1N/A_ACEOF
1N/Acat >>$CONFIG_STATUS <<_ACEOF
1N/A sed "$ac_vpsub
1N/A$extrasub
1N/A_ACEOF
1N/Acat >>$CONFIG_STATUS <<\_ACEOF
1N/A:t
1N/A/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1N/As,@configure_input@,$configure_input,;t t
1N/As,@srcdir@,$ac_srcdir,;t t
1N/As,@abs_srcdir@,$ac_abs_srcdir,;t t
1N/As,@top_srcdir@,$ac_top_srcdir,;t t
1N/As,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
1N/As,@builddir@,$ac_builddir,;t t
1N/As,@abs_builddir@,$ac_abs_builddir,;t t
1N/As,@top_builddir@,$ac_top_builddir,;t t
1N/As,@abs_top_builddir@,$ac_abs_top_builddir,;t t
1N/As,@INSTALL@,$ac_INSTALL,;t t
1N/A" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
1N/A rm -f $tmp/stdin
1N/A if test x"$ac_file" != x-; then
1N/A mv $tmp/out $ac_file
1N/A else
1N/A cat $tmp/out
1N/A rm -f $tmp/out
1N/A fi
1N/A
1N/Adone
1N/A_ACEOF
1N/Acat >>$CONFIG_STATUS <<\_ACEOF
1N/A
1N/A#
1N/A# CONFIG_HEADER section.
1N/A#
1N/A
1N/A# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1N/A# NAME is the cpp macro being defined and VALUE is the value it is being given.
1N/A#
1N/A# ac_d sets the value in "#define NAME VALUE" lines.
1N/Aac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1N/Aac_dB='[ ].*$,\1#\2'
1N/Aac_dC=' '
1N/Aac_dD=',;t'
1N/A# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1N/Aac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1N/Aac_uB='$,\1#\2define\3'
1N/Aac_uC=' '
1N/Aac_uD=',;t'
1N/A
1N/Afor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
1N/A # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1N/A case $ac_file in
1N/A - | *:- | *:-:* ) # input from stdin
1N/A cat >$tmp/stdin
1N/A ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1N/A ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1N/A *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
1N/A ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
1N/A * ) ac_file_in=$ac_file.in ;;
1N/A esac
1N/A
1N/A test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
1N/Aecho "$as_me: creating $ac_file" >&6;}
1N/A
1N/A # First look for the input files in the build tree, otherwise in the
1N/A # src tree.
1N/A ac_file_inputs=`IFS=:
1N/A for f in $ac_file_in; do
1N/A case $f in
1N/A -) echo $tmp/stdin ;;
1N/A [\\/$]*)
1N/A # Absolute (can't be DOS-style, as IFS=:)
1N/A test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1N/Aecho "$as_me: error: cannot find input file: $f" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A # Do quote $f, to prevent DOS paths from being IFS'd.
1N/A echo "$f";;
1N/A *) # Relative
1N/A if test -f "$f"; then
1N/A # Build tree
1N/A echo "$f"
1N/A elif test -f "$srcdir/$f"; then
1N/A # Source tree
1N/A echo "$srcdir/$f"
1N/A else
1N/A # /dev/null tree
1N/A { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
1N/Aecho "$as_me: error: cannot find input file: $f" >&2;}
1N/A { (exit 1); exit 1; }; }
1N/A fi;;
1N/A esac
1N/A done` || { (exit 1); exit 1; }
1N/A # Remove the trailing spaces.
1N/A sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
1N/A
1N/A_ACEOF
1N/A
1N/A# Transform confdefs.h into two sed scripts, `conftest.defines' and
1N/A# `conftest.undefs', that substitutes the proper values into
1N/A# config.h.in to produce config.h. The first handles `#define'
1N/A# templates, and the second `#undef' templates.
1N/A# And first: Protect against being on the right side of a sed subst in
1N/A# config.status. Protect against being in an unquoted here document
1N/A# in config.status.
1N/Arm -f conftest.defines conftest.undefs
1N/A# Using a here document instead of a string reduces the quoting nightmare.
1N/A# Putting comments in sed scripts is not portable.
1N/A#
1N/A# `end' is used to avoid that the second main sed command (meant for
1N/A# 0-ary CPP macros) applies to n-ary macro definitions.
1N/A# See the Autoconf documentation for `clear'.
1N/Acat >confdef2sed.sed <<\_ACEOF
1N/As/[\\&,]/\\&/g
1N/As,[\\$`],\\&,g
1N/At clear
1N/A: clear
1N/As,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
1N/At end
1N/As,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
1N/A: end
1N/A_ACEOF
1N/A# If some macros were called several times there might be several times
1N/A# the same #defines, which is useless. Nevertheless, we may not want to
1N/A# sort them, since we want the *last* AC-DEFINE to be honored.
1N/Auniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
1N/Ased 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
1N/Arm -f confdef2sed.sed
1N/A
1N/A# This sed command replaces #undef with comments. This is necessary, for
1N/A# example, in the case of _POSIX_SOURCE, which is predefined and required
1N/A# on some systems where configure will not decide to define it.
1N/Acat >>conftest.undefs <<\_ACEOF
1N/As,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
1N/A_ACEOF
1N/A
1N/A# Break up conftest.defines because some shells have a limit on the size
1N/A# of here documents, and old seds have small limits too (100 cmds).
1N/Aecho ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
1N/Aecho ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
1N/Aecho ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
1N/Aecho ' :' >>$CONFIG_STATUS
1N/Arm -f conftest.tail
1N/Awhile grep . conftest.defines >/dev/null
1N/Ado
1N/A # Write a limited-size here document to $tmp/defines.sed.
1N/A echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
1N/A # Speed up: don't consider the non `#define' lines.
1N/A echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
1N/A # Work around the forget-to-reset-the-flag bug.
1N/A echo 't clr' >>$CONFIG_STATUS
1N/A echo ': clr' >>$CONFIG_STATUS
1N/A sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
1N/A echo 'CEOF
1N/A sed -f $tmp/defines.sed $tmp/in >$tmp/out
1N/A rm -f $tmp/in
1N/A mv $tmp/out $tmp/in
1N/A' >>$CONFIG_STATUS
1N/A sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
1N/A rm -f conftest.defines
1N/A mv conftest.tail conftest.defines
1N/Adone
1N/Arm -f conftest.defines
1N/Aecho ' fi # grep' >>$CONFIG_STATUS
1N/Aecho >>$CONFIG_STATUS
1N/A
1N/A# Break up conftest.undefs because some shells have a limit on the size
1N/A# of here documents, and old seds have small limits too (100 cmds).
1N/Aecho ' # Handle all the #undef templates' >>$CONFIG_STATUS
1N/Arm -f conftest.tail
1N/Awhile grep . conftest.undefs >/dev/null
1N/Ado
1N/A # Write a limited-size here document to $tmp/undefs.sed.
1N/A echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
1N/A # Speed up: don't consider the non `#undef'
1N/A echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
1N/A # Work around the forget-to-reset-the-flag bug.
1N/A echo 't clr' >>$CONFIG_STATUS
1N/A echo ': clr' >>$CONFIG_STATUS
1N/A sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
1N/A echo 'CEOF
1N/A sed -f $tmp/undefs.sed $tmp/in >$tmp/out
1N/A rm -f $tmp/in
1N/A mv $tmp/out $tmp/in
1N/A' >>$CONFIG_STATUS
1N/A sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
1N/A rm -f conftest.undefs
1N/A mv conftest.tail conftest.undefs
1N/Adone
1N/Arm -f conftest.undefs
1N/A
1N/Acat >>$CONFIG_STATUS <<\_ACEOF
1N/A # Let's still pretend it is `configure' which instantiates (i.e., don't
1N/A # use $as_me), people would be surprised to read:
1N/A # /* config.h. Generated by config.status. */
1N/A if test x"$ac_file" = x-; then
1N/A echo "/* Generated by configure. */" >$tmp/config.h
1N/A else
1N/A echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
1N/A fi
1N/A cat $tmp/in >>$tmp/config.h
1N/A rm -f $tmp/in
1N/A if test x"$ac_file" != x-; then
1N/A if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
1N/A { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
1N/Aecho "$as_me: $ac_file is unchanged" >&6;}
1N/A else
1N/A ac_dir=`(dirname "$ac_file") 2>/dev/null ||
1N/A$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1N/A X"$ac_file" : 'X\(//\)[^/]' \| \
1N/A X"$ac_file" : 'X\(//\)$' \| \
1N/A X"$ac_file" : 'X\(/\)' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X"$ac_file" |
1N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1N/A /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1N/A /^X\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A { if $as_mkdir_p; then
1N/A mkdir -p "$ac_dir"
1N/A else
1N/A as_dir="$ac_dir"
1N/A as_dirs=
1N/A while test ! -d "$as_dir"; do
1N/A as_dirs="$as_dir $as_dirs"
1N/A as_dir=`(dirname "$as_dir") 2>/dev/null ||
1N/A$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1N/A X"$as_dir" : 'X\(//\)[^/]' \| \
1N/A X"$as_dir" : 'X\(//\)$' \| \
1N/A X"$as_dir" : 'X\(/\)' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X"$as_dir" |
1N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1N/A /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1N/A /^X\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A done
1N/A test ! -n "$as_dirs" || mkdir $as_dirs
1N/A fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
1N/Aecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1N/A { (exit 1); exit 1; }; }; }
1N/A
1N/A rm -f $ac_file
1N/A mv $tmp/config.h $ac_file
1N/A fi
1N/A else
1N/A cat $tmp/config.h
1N/A rm -f $tmp/config.h
1N/A fi
1N/A# Compute $ac_file's index in $config_headers.
1N/A_am_stamp_count=1
1N/Afor _am_header in $config_headers :; do
1N/A case $_am_header in
1N/A $ac_file | $ac_file:* )
1N/A break ;;
1N/A * )
1N/A _am_stamp_count=`expr $_am_stamp_count + 1` ;;
1N/A esac
1N/Adone
1N/Aecho "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
1N/A$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1N/A X$ac_file : 'X\(//\)[^/]' \| \
1N/A X$ac_file : 'X\(//\)$' \| \
1N/A X$ac_file : 'X\(/\)' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X$ac_file |
1N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1N/A /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1N/A /^X\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`/stamp-h$_am_stamp_count
1N/Adone
1N/A_ACEOF
1N/Acat >>$CONFIG_STATUS <<\_ACEOF
1N/A
1N/A#
1N/A# CONFIG_COMMANDS section.
1N/A#
1N/Afor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
1N/A ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
1N/A ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1N/A ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
1N/A$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1N/A X"$ac_dest" : 'X\(//\)[^/]' \| \
1N/A X"$ac_dest" : 'X\(//\)$' \| \
1N/A X"$ac_dest" : 'X\(/\)' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X"$ac_dest" |
1N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1N/A /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1N/A /^X\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A { if $as_mkdir_p; then
1N/A mkdir -p "$ac_dir"
1N/A else
1N/A as_dir="$ac_dir"
1N/A as_dirs=
1N/A while test ! -d "$as_dir"; do
1N/A as_dirs="$as_dir $as_dirs"
1N/A as_dir=`(dirname "$as_dir") 2>/dev/null ||
1N/A$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1N/A X"$as_dir" : 'X\(//\)[^/]' \| \
1N/A X"$as_dir" : 'X\(//\)$' \| \
1N/A X"$as_dir" : 'X\(/\)' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X"$as_dir" |
1N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1N/A /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1N/A /^X\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A done
1N/A test ! -n "$as_dirs" || mkdir $as_dirs
1N/A fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
1N/Aecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
1N/A { (exit 1); exit 1; }; }; }
1N/A
1N/A ac_builddir=.
1N/A
1N/Aif test "$ac_dir" != .; then
1N/A ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1N/A # A "../" for each directory in $ac_dir_suffix.
1N/A ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1N/Aelse
1N/A ac_dir_suffix= ac_top_builddir=
1N/Afi
1N/A
1N/Acase $srcdir in
1N/A .) # No --srcdir option. We are building in place.
1N/A ac_srcdir=.
1N/A if test -z "$ac_top_builddir"; then
1N/A ac_top_srcdir=.
1N/A else
1N/A ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1N/A fi ;;
1N/A [\\/]* | ?:[\\/]* ) # Absolute path.
1N/A ac_srcdir=$srcdir$ac_dir_suffix;
1N/A ac_top_srcdir=$srcdir ;;
1N/A *) # Relative path.
1N/A ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1N/A ac_top_srcdir=$ac_top_builddir$srcdir ;;
1N/Aesac
1N/A
1N/A# Do not use `cd foo && pwd` to compute absolute paths, because
1N/A# the directories may not exist.
1N/Acase `pwd` in
1N/A.) ac_abs_builddir="$ac_dir";;
1N/A*)
1N/A case "$ac_dir" in
1N/A .) ac_abs_builddir=`pwd`;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1N/A *) ac_abs_builddir=`pwd`/"$ac_dir";;
1N/A esac;;
1N/Aesac
1N/Acase $ac_abs_builddir in
1N/A.) ac_abs_top_builddir=${ac_top_builddir}.;;
1N/A*)
1N/A case ${ac_top_builddir}. in
1N/A .) ac_abs_top_builddir=$ac_abs_builddir;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1N/A *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1N/A esac;;
1N/Aesac
1N/Acase $ac_abs_builddir in
1N/A.) ac_abs_srcdir=$ac_srcdir;;
1N/A*)
1N/A case $ac_srcdir in
1N/A .) ac_abs_srcdir=$ac_abs_builddir;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1N/A *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1N/A esac;;
1N/Aesac
1N/Acase $ac_abs_builddir in
1N/A.) ac_abs_top_srcdir=$ac_top_srcdir;;
1N/A*)
1N/A case $ac_top_srcdir in
1N/A .) ac_abs_top_srcdir=$ac_abs_builddir;;
1N/A [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1N/A *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1N/A esac;;
1N/Aesac
1N/A
1N/A
1N/A { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
1N/Aecho "$as_me: executing $ac_dest commands" >&6;}
1N/A case $ac_dest in
1N/A depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
1N/A # Strip MF so we end up with the name of the file.
1N/A mf=`echo "$mf" | sed -e 's/:.*$//'`
1N/A # Check whether this is an Automake generated Makefile or not.
1N/A # We used to match only the files named `Makefile.in', but
1N/A # some people rename them; so instead we look at the file content.
1N/A # Grep'ing the first line is not enough: some people post-process
1N/A # each Makefile.in and add a new line on top of each file to say so.
1N/A # So let's grep whole file.
1N/A if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1N/A dirpart=`(dirname "$mf") 2>/dev/null ||
1N/A$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1N/A X"$mf" : 'X\(//\)[^/]' \| \
1N/A X"$mf" : 'X\(//\)$' \| \
1N/A X"$mf" : 'X\(/\)' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X"$mf" |
1N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1N/A /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1N/A /^X\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A else
1N/A continue
1N/A fi
1N/A # Extract the definition of DEPDIR, am__include, and am__quote
1N/A # from the Makefile without running `make'.
1N/A DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1N/A test -z "$DEPDIR" && continue
1N/A am__include=`sed -n 's/^am__include = //p' < "$mf"`
1N/A test -z "am__include" && continue
1N/A am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
1N/A # When using ansi2knr, U may be empty or an underscore; expand it
1N/A U=`sed -n 's/^U = //p' < "$mf"`
1N/A # Find all dependency output files, they are included files with
1N/A # $(DEPDIR) in their names. We invoke sed twice because it is the
1N/A # simplest approach to changing $(DEPDIR) to its actual value in the
1N/A # expansion.
1N/A for file in `sed -n "
1N/A s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
1N/A sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1N/A # Make sure the directory exists.
1N/A test -f "$dirpart/$file" && continue
1N/A fdir=`(dirname "$file") 2>/dev/null ||
1N/A$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1N/A X"$file" : 'X\(//\)[^/]' \| \
1N/A X"$file" : 'X\(//\)$' \| \
1N/A X"$file" : 'X\(/\)' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X"$file" |
1N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1N/A /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1N/A /^X\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A { if $as_mkdir_p; then
1N/A mkdir -p $dirpart/$fdir
1N/A else
1N/A as_dir=$dirpart/$fdir
1N/A as_dirs=
1N/A while test ! -d "$as_dir"; do
1N/A as_dirs="$as_dir $as_dirs"
1N/A as_dir=`(dirname "$as_dir") 2>/dev/null ||
1N/A$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1N/A X"$as_dir" : 'X\(//\)[^/]' \| \
1N/A X"$as_dir" : 'X\(//\)$' \| \
1N/A X"$as_dir" : 'X\(/\)' \| \
1N/A . : '\(.\)' 2>/dev/null ||
1N/Aecho X"$as_dir" |
1N/A sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1N/A /^X\(\/\/\)[^/].*/{ s//\1/; q; }
1N/A /^X\(\/\/\)$/{ s//\1/; q; }
1N/A /^X\(\/\).*/{ s//\1/; q; }
1N/A s/.*/./; q'`
1N/A done
1N/A test ! -n "$as_dirs" || mkdir $as_dirs
1N/A fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
1N/Aecho "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
1N/A { (exit 1); exit 1; }; }; }
1N/A
1N/A # echo "creating $dirpart/$file"
1N/A echo '# dummy' > "$dirpart/$file"
1N/A done
1N/Adone
1N/A ;;
1N/A esac
1N/Adone
1N/A_ACEOF
1N/A
1N/Acat >>$CONFIG_STATUS <<\_ACEOF
1N/A
1N/A{ (exit 0); exit 0; }
1N/A_ACEOF
1N/Achmod +x $CONFIG_STATUS
1N/Aac_clean_files=$ac_clean_files_save
1N/A
1N/A
1N/A# configure is writing to config.log, and then calls config.status.
1N/A# config.status does its own redirection, appending to config.log.
1N/A# Unfortunately, on DOS this fails, as config.log is still kept open
1N/A# by configure, so config.status won't be able to write to it; its
1N/A# output is simply discarded. So we exec the FD to /dev/null,
1N/A# effectively closing config.log, so it can be properly (re)opened and
1N/A# appended to by config.status. When coming back to configure, we
1N/A# need to make the FD available again.
1N/Aif test "$no_create" != yes; then
1N/A ac_cs_success=:
1N/A ac_config_status_args=
1N/A test "$silent" = yes &&
1N/A ac_config_status_args="$ac_config_status_args --quiet"
1N/A exec 5>/dev/null
1N/A $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1N/A exec 5>>config.log
1N/A # Use ||, not &&, to avoid exiting from the if with $? = 1, which
1N/A # would make configure fail if this is the last instruction.
1N/A $ac_cs_success || { (exit 1); exit 1; }
1N/Afi
1N/A