and AMDEPBACKSLASH.
* tests/distcommon2.test: Use a full configure.in that calls AC_INIT.
* tests/ext.test: Enable dependencies for OBJC.
* tests/libobj.test, tests/libobj6.test, tests/libobj9.test:
Delete. They tests for different flavors of $LIBOBJS assignments
that wont be supported anymore.
* tests/libobj2.test, tests/libobj10.test: Use AC_LIBOBJ.
* tests/obsolete.test: Don't test Automake.
* tests/suffix5.test: Require libtool.
* tests/Makefile.am (TESTS): Remove libobj.test, libobj6.test and
libobj9.test.
+2002-04-12 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * automake.in (scan_autoconf_traces) <AC_SUBST>: Ignore ANSI2KNR
+ and AMDEPBACKSLASH.
+ * tests/distcommon2.test: Use a full configure.in that calls AC_INIT.
+ * tests/ext.test: Enable dependencies for OBJC.
+ * tests/libobj.test, tests/libobj6.test, tests/libobj9.test:
+ Delete. They tests for different flavors of $LIBOBJS assignments
+ that wont be supported anymore.
+ * tests/libobj2.test, tests/libobj10.test: Use AC_LIBOBJ.
+ * tests/obsolete.test: Don't test Automake.
+ * tests/suffix5.test: Require libtool.
+ * tests/Makefile.am (TESTS): Remove libobj.test, libobj6.test and
+ libobj9.test.
+
2002-04-10 Alexandre Duret-Lutz <duret_g@epita.fr>
* configure.in (APIVERSION): Fix definition.
{
$seen_prog_lex = $here;
}
- elsif ($macro eq 'AC_SUBST')
+ elsif ($macro eq 'AC_SUBST'
+ # Explicitly avoid ANSI2KNR -- we AC_SUBST that in
+ # protos.m4, but later define it elsewhere. This is
+ # pretty hacky. We also explicitly avoid AMDEPBACKSLASH:
+ # it might be subst'd by `\', which certainly would not be
+ # appreciated by Make.
+ && ! grep { $_ eq $args[1] } (qw(ANSI2KNR AMDEPBACKSLASH)))
{
# Just check for alphanumeric in AC_SUBST. If you do
# AC_SUBST(5), then too bad.
lex3.test \
lex4.test \
lex5.test \
-libobj.test \
libobj2.test \
libobj3.test \
libobj4.test \
libobj5.test \
-libobj6.test \
libobj7.test \
libobj8.test \
-libobj9.test \
libobj10.test \
libobj11.test \
library.test \
lex3.test \
lex4.test \
lex5.test \
-libobj.test \
libobj2.test \
libobj3.test \
libobj4.test \
libobj5.test \
-libobj6.test \
libobj7.test \
libobj8.test \
-libobj9.test \
libobj10.test \
libobj11.test \
library.test \
. $srcdir/defs || exit 1
-cat > configure.in << 'END'
-AM_INIT_AUTOMAKE(nonesuch, nonesuch)
-PACKAGE=nonesuch
-VERSION=nonesuch
+cat >> configure.in << 'END'
AC_PROG_CC
-AC_OUTPUT(Makefile subdir/Makefile)
+AC_CONFIG_FILES([subdir/Makefile])
+AC_OUTPUT
END
cat > Makefile.am << 'END'
cat >> configure.in << 'END'
AC_PROG_F77
+_AM_DEPENDENCIES(OBJC)
AC_SUBST(OBJC)
END
+++ /dev/null
-#!/bin/sh
-
-# Test for bug reported by Jim Meyering:
-# automake-0.29 didn't handle this line properly.
-# LIBOBJS="$LIBOBJS fsusage.o mountlist.o"
-
-. $srcdir/defs || exit 1
-
-cat > configure.in << 'END'
-AC_INIT
-AM_INIT_AUTOMAKE(nonesuch, nonesuch)
-AC_PROG_CC
-AC_PROG_RANLIB
-LIBOBJS="$LIBOBJS fsusage.o mountlist.o"
-AC_OUTPUT(Makefile)
-END
-
-cat > Makefile.am << 'END'
-noinst_LIBRARIES = libtu.a
-libtu_a_SOURCES =
-libtu_a_LIBADD = @LIBOBJS@
-END
-
-: > fsusage.c
-: > mountlist.c
-
-$ACLOCAL || exit 1
-$AUTOMAKE
. $srcdir/defs || exit 1
-cat > configure.in << 'END'
-AC_INIT
-AM_INIT_AUTOMAKE(nonesuch, nonesuch)
+cat >> configure.in << 'END'
AC_PROG_CC
AC_PROG_RANLIB
-LIBOBJS="$LIBOBJS foo.o"
-AC_OUTPUT(Makefile)
+AC_LIBOBJ([foo])
+AC_OUTPUT
END
cat > Makefile.am << 'END'
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AC_PROG_CC
AC_PROG_RANLIB
-LIBOBJS="$LIBOBJS fsusage.o"
+AC_LIBOBJ([fsusage])
AC_OUTPUT(subdir/Makefile)
END
+++ /dev/null
-#! /bin/sh
-
-# Test for a bug reported by Akim Demaille.
-# LIBOBJS specified in the "wrong order" aren't seen.
-
-. $srcdir/defs || exit 1
-
-cat > configure.in << 'END'
-AC_INIT
-AM_INIT_AUTOMAKE(nonesuch, nonesuch)
-AC_PROG_CC
-AC_PROG_RANLIB
-LIBOBJS="fsusage.o mountlist.o $LIBOBJS"
-AC_OUTPUT(Makefile)
-END
-
-cat > Makefile.am << 'END'
-noinst_LIBRARIES = libtu.a
-libtu_a_SOURCES =
-libtu_a_LIBADD = @LIBOBJS@
-END
-
-: > fsusage.c
-: > mountlist.c
-
-$ACLOCAL || exit 1
-$AUTOMAKE
+++ /dev/null
-#! /bin/sh
-
-# Test for report from Jim Meyering.
-# LIBOBJS must handle $ac_objext.
-
-. $srcdir/defs || exit 1
-
-cat > configure.in << 'END'
-AC_INIT
-AM_INIT_AUTOMAKE(nonesuch, nonesuch)
-AC_PROG_CC
-AC_PROG_RANLIB
-AC_EXEEXT
-LIBOBJS="$LIBOBJS mountlist.$ac_objext"
-AC_OUTPUT(Makefile)
-END
-
-cat > Makefile.am << 'END'
-noinst_LIBRARIES = libtu.a
-libtu_a_SOURCES =
-libtu_a_LIBADD = @LIBOBJS@
-END
-
-: > mountlist.c
-
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
$ACLOCAL 2>stderr && exit 1
grep AC_PROG_INSTALL stderr || exit 1
-$AUTOMAKE 2>stderr && exit 1
-grep AC_PROG_INSTALL stderr || exit 1
-
exit 0
#! /bin/sh
+required=libtool
+
# Test to make sure Automake include libtool objects resulting
# from user-defined implicit rules.
# Based on a report from Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.