* tests/target-cflags.test: Use $needs_gnu_make.
* tests/exsource.test: Use $needs_gnu_make.
* tests/make.test: Require GNU make.
* tests/defs (needs_gnu_make): Compute.
+2001-05-15 Tom Tromey <tromey@redhat.com>
+
+ Fixes PR automake/175:
+ * tests/target-cflags.test: Use $needs_gnu_make.
+ * tests/exsource.test: Use $needs_gnu_make.
+ * tests/make.test: Require GNU make.
+ * tests/defs (needs_gnu_make): Compute.
+
2001-05-14 Tom Tromey <tromey@redhat.com>
* lib/ylwrap: Fixed quoting on regular expression. Fixes
# User can set MAKE to choose which make to use. Must use GNU make.
test -z "$MAKE" && MAKE=make
+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
if ($AUTOCONF --version) >/dev/null 2>&1; then
. $srcdir/defs || exit 1
-# This test relies on GNU make.
-$MAKE --version > /dev/null 2>&1 || {
- # Nope.
- exit 77
-}
+$needs_gnu_make
cat >> configure.in << 'END'
AC_PROG_CC
: > Makefile.am
$needs_autoconf
+$needs_gnu_make
set -e
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 77
-# Likewise for GNU make.
-($MAKE --version) > /dev/null 2>&1 || exit 77
+$needs_gnu_make
set -e