1999-04-10 Alexandre Oliva <oliva@dcc.unicamp.br>
+ * suffix.test: New file.
+ * Makefile.am: Added suffix.test.
+
* Makefile.am (XFAIL_TESTS): Added cond8.test.
* cond3.test: Refer to am_targ_OBJECTS.
remake2.test req.test rulepat.test scripts.test seenc.test \
sinclude.test spell.test spell2.test spell3.test spelling.test \
stamph.test stdlib.test subdir.test subdir2.test subdir3.test \
-subst.test symlink.test syntax.test tags.test tagsub.test target.test \
-texinfo.test texinfo2.test texinfo3.test texinfo4.test texinfo5.test \
-texinfo6.test texinfo7.test texinfo8.test unused.test version.test \
-version2.test version3.test vpath.test vtexi.test vtexi2.test \
-whoami.test xsource.test yacc.test yacc2.test yacc3.test yaccpp.test
+subst.test suffix.test symlink.test syntax.test tags.test
+tagsub.test target.test texinfo.test texinfo2.test texinfo3.test \
+texinfo4.test texinfo5.test texinfo6.test texinfo7.test \
+texinfo8.test unused.test version.test version2.test version3.test \
+vpath.test vtexi.test vtexi2.test whoami.test xsource.test yacc.test \
+yacc2.test yacc3.test yaccpp.test
EXTRA_DIST = defs $(TESTS)
--- /dev/null
+#! /bin/sh
+
+# Make sure a suffix rule for C compilation is produced.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+END
+
+cat > Makefile.am << 'END'
+noinst_PROGRAMS = foo
+END
+
+$AUTOMAKE -i || exit 1
+
+grep '^\.c\.o' Makefile.in > /dev/null || exit 1
+
+$AUTOMAKE || exit 1
+grep '%\.o: %\.c' Makefile.in > /dev/null || exit 1