(needs_gnu_make): Don't define anymore.
* tests/cond4.test, tests/cond18.test, tests/cond19.test,
tests/dollar.test, tests/exsource.test, tests/extra6.test,
tests/lex3.test, tests/make.test, tests/pr9.test, tests/pr87.test,
tests/subdir5.test, tests/target-cflags.test, tests/yacc7.test,
tests/yaccvpath.test: Use `required=GNUmake' instead of
`$needs_gnu_make'.
+2002-06-18 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * tests/defs (required): Handle `GNUmake'.
+ (needs_gnu_make): Don't define anymore.
+ * tests/cond4.test, tests/cond18.test, tests/cond19.test,
+ tests/dollar.test, tests/exsource.test, tests/extra6.test,
+ tests/lex3.test, tests/make.test, tests/pr9.test, tests/pr87.test,
+ tests/subdir5.test, tests/target-cflags.test, tests/yacc7.test,
+ tests/yaccvpath.test: Use `required=GNUmake' instead of
+ `$needs_gnu_make'.
+
2002-06-17 Paolo Bonzini <bonzini@gnu.org>
* automake.in (process_option_list): Recognize std-options.
# Regression test for substitution references to conditional variables.
# Report from Richard Boulton
+required=GNUmake
. $srcdir/defs || exit 1
cat > configure.in << 'END'
CFLAGS=
export CFLAGS
-$needs_gnu_make
-
set -e
$ACLOCAL
# Regression test for substitution references to conditional variables.
# Report from Richard Boulton
+required=GNUmake
. $srcdir/defs || exit 1
cat > configure.in << 'END'
CFLAGS=
export CFLAGS
-$needs_gnu_make
-
set -e
$ACLOCAL
# Another sources-in-conditional test. Report from Tim Goodwin.
+required=GNUmake
. $srcdir/defs || exit 1
cat > configure.in << 'END'
CFLAGS=
export CFLAGS
-$needs_gnu_make
-
CC='gcc' CONDITION1=true CONDITION2=true ./configure || exit 1
msgtt=`$MAKE --no-print-directory echo-objects`
CC='gcc' CONDITION1=true CONDITION2=false ./configure || exit 1
exec > /dev/null 2>&1
}
+# User can override various tools used.
+test -z "$PERL" && PERL=perl
+test -z "$MAKE" && MAKE=make
+test -z "$AUTOCONF" && AUTOCONF=autoconf
+test -z "$AUTOHEADER" && AUTOHEADER=autoheader
+
if test -n "$required"
then
for tool in $required
do
- echo "$me: running $tool --version"
- ( $tool --version ) || exit 77
+ # Check that each required tool is present.
+ case $tool in
+ GNUmake)
+ echo "$me: running $MAKE --version"
+ ( $MAKE --version ) || exit 77
+ ;;
+ # Generic case: the tool must support --version.
+ *)
+ echo "$me: running $tool --version"
+ ( $tool --version ) || exit 77
+ ;;
+ esac
done
fi
AC_CONFIG_FILES([Makefile])
END
-# User can set PERL to change the perl interpreter used.
-test -z "$PERL" && PERL=perl
-
-# User can set MAKE to choose which make to use. Must use GNU make.
-test -z "$MAKE" && MAKE=make
-
# Unset some MAKE... variables that may cause $MAKE to act like a
# recursively invoked sub-make. Any $MAKE invocation in a test is
# conceptually an independent invocation, not part of the main
unset MAKELEVEL
unset DESTDIR
-if ($MAKE --version) > /dev/null 2>&1; then
- needs_gnu_make=:
-else
- needs_gnu_make='exit 77'
-fi
-
-# User can set which tools from Autoconf to use.
-test -z "$AUTOCONF" && AUTOCONF=autoconf
-test -z "$AUTOHEADER" && AUTOHEADER=autoheader
-
-
echo "=== Running test $0"
# See how Automake should be run. We put --foreign as the default
# Java people need this.
# PR/317, reported by Eric Siegerman and Philip Fong.
-. $srcdir/defs
-
# Require GNU make for this test. SunOS Make does not support
# `$$' in a target or a dependency (it outputs the empty string instead).
-$needs_gnu_make
+required=GNUmake
+. $srcdir/defs
set -e
# Test to make sure EXTRA_..._SOURCES actually works.
# Bug report from Henrik Frystyk Nielsen.
+required=GNUmake
. $srcdir/defs || exit 1
-$needs_gnu_make
-
cat >> configure.in << 'END'
AC_PROG_CC
END
# Check to make sure EXTRA_DIST can contain a directory or
# a subdirectory, in $(builddir) or $(srcdir).
-. $srcdir/defs || exit 1
-
# 'make distdir' + VPATH does not work with Solaris make.
-$needs_gnu_make
+required=GNUmake
+. $srcdir/defs || exit 1
set -e
# Test associated with PR 19.
# From Matthew D. Langston.
+required=GNUmake
. $srcdir/defs || exit 1
-# Likewise for GNU Make (we need VPATH support for `make distcheck').
-$needs_gnu_make
-
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 77
# Test to make sure `make' check works.
# From Ralf Corsepius.
+required=GNUmake
. $srcdir/defs || exit 1
cat > configure.in << 'END'
: > Makefile.am
-$needs_gnu_make
-
set -e
$ACLOCAL
# Test for PR automake/87.
+# Require GNU make for `make distcheck'
+required=GNUmake
. $srcdir/defs || exit 1
-$needs_gnu_make # for `make distcheck'
-
subdirs="foo bar"
for i in $subdirs; do
# Test for bug in PR 9.
+# `distcheck' requires GNU make.
+required='GNUmake gzip'
. $srcdir/defs || exit 1
cat > configure.in << 'END'
mkdir support
-# Likewise for gzip.
-(gzip --version) > /dev/null 2>&1 || exit 77
-
-# `distcheck' requires GNU make.
-$needs_gnu_make
-
$ACLOCAL || exit 1
$AUTOCONF || exit 1
# Test to make sure that adding a new directory works.
# PR automake/46
-. $srcdir/defs || exit 1
-
# This test assumes that the `make' utility is able to start
# over and reload Makefiles which have been remade (a non-POSIX feature).
-$needs_gnu_make
+required=GNUmake
+. $srcdir/defs || exit 1
cat > configure.in << 'END'
AC_INIT(a.c)
# Test to make sure target specific CFLAGS work
# Assar Westerlund <assar@sics.se>
+required=GNUmake
. $srcdir/defs || exit 1
cat > configure.in << 'END'
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 77
-$needs_gnu_make
-
set -e
$ACLOCAL
# Also check that the sources of the generated parser are distributed.
# PR/47.
+required=GNUmake
. $srcdir/defs || exit 1
-$needs_gnu_make
-
cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_YACC
# `make' and `make distdir' and check whether the version of `parse.c'
# to be distributed is up to date.
+# Require GNU make for `make distdir'
+required=GNUmake
. $srcdir/defs || exit 1
-$needs_gnu_make # for `make distdir'
-
# Likewise for some other tools.
(gcc -v) > /dev/null 2>&1 || exit 77
(bison -V) > /dev/null 2>&1 || exit 77