clear.
* m4/init.m4: Likewise.
* m4/sanity.m4: s/conftestfile/conftest.file/.
AMDEP = @AMDEP@
AMTAR = @AMTAR@
AWK = @AWK@
-CC = @CC@
-CXX = @CXX@
DEPDIR = @DEPDIR@
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
+2001-01-26 Akim Demaille <akim@epita.fr>
+
+ * defs (AUTOCONF, has_autoconf, needs_autoconf): New.
+ * ansi3.test, cond9.test, depacl2.test, install2.test, pr19.test,
+ * pr87.test, pr9.test, subobj3.test, target-cflags.test: Use them.
+
2001-01-25 Pavel Roskin <proski@gnu.org>
* makevars.test: Disable shell tracing.
END
# Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 0
# We use gcc and not gcc -traditional as the latter fails on some
# Linux boxes (Red Hat 5.1 in particular).
$ACLOCAL \
- && autoconf \
+ && $AUTOCONF \
&& $AUTOMAKE -a \
&& CC='gcc' ./configure \
&& $MAKE ANSI2KNR=./ansi2knr U=_ \
echo '$(this)'
END
-(autoconf --version) > /dev/null 2>&1 || exit 77
+$needs_autoconf
$ACLOCAL \
- && autoconf \
+ && $AUTOCONF \
&& $AUTOMAKE -a \
&& ./configure \
&& $MAKE echo-something | grep interesting > /dev/null
# User can set MAKE to choose which make to use. Must use GNU make.
test -z "$MAKE" && MAKE=make
+# User can set which tools from Autoconf to use.
+test -z "$AUTOCONF" && AUTOCONF=autoconf
+if ($AUTOCONF --version) >/dev/null 2>&1; then
+ has_autoconf=:
+ needs_autoconf=:
+else
+ has_autoconf=false
+ needs_autoconf='exit 77'
+fi
+
+
echo "=== Running test $0"
# See how Automake should be run. We put --foreign as the default
rm -f install-sh mkinstalldirs missing
# Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
# Likewise for gzip.
(gzip --version) > /dev/null 2>&1 || exit 0
$ACLOCAL || exit 1
-autoconf || exit 1
+$AUTOCONF || exit 1
$AUTOMAKE -a || exit 1
chmod 000 Makefile.am
echo %% > foo.l
# Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 0
(gzip --version) > /dev/null 2>&1 || exit 0
$ACLOCAL || exit 1
-autoconf || exit 1
+$AUTOCONF || exit 1
$AUTOMAKE -a || exit 1
CC=gcc ./configure || exit 1
$MAKE || exit 1
EOF
# Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 0
# We use gcc and not gcc -traditional as the latter fails on some
# Linux boxes (Red Hat 5.1 in particular).
$ACLOCAL \
- && autoconf \
+ && $AUTOCONF \
&& $AUTOMAKE -a \
&& cd build \
&& CC='gcc' ../configure \
mkdir support
# Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
# Likewise for gzip.
(gzip --version) > /dev/null 2>&1 || exit 0
$ACLOCAL || exit 1
-autoconf || exit 1
+$AUTOCONF || exit 1
$AUTOMAKE -a -c || exit 1
./configure || exit 1
$MAKE || exit 1
END
# Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 0
# We use gcc and not gcc -traditional as the latter fails on some
# Linux boxes (Red Hat 5.1 in particular).
$ACLOCAL \
- && autoconf \
+ && $AUTOCONF \
&& $AUTOMAKE -a \
&& CC='gcc' ./configure \
&& $MAKE ANSI2KNR=./ansi2knr U=_ \
END
# Fail gracefully if no autoconf.
-(autoconf --version) > /dev/null 2>&1 || exit 0
+$needs_autoconf
# Likewise for gcc.
(gcc -v) > /dev/null 2>&1 || exit 0
$ACLOCAL \
- && autoconf \
+ && $AUTOCONF \
&& $AUTOMAKE -a \
&& mkdir obj \
&& (cd obj && ../configure && $MAKE && ./foo && ./bar) \