Hello, Derek!
> How about this test (distdir2.test):
Oops, posted to early. Some sanity checks were missing.
> It fails even earlier when it creates an empty archive on "make dist".
> This seems to be another bug.
Never mind. I just forgot to remove "missing".
The new test fails exactly how it should. I'm going to apply it unless you
come with something better.
Regards,
Pavel Roskin
________________________
Index: tests/ChangeLog
--- tests/ChangeLog
+++ tests/ChangeLog
@@ -1 +1,6 @@
+2001-02-07 Pavel Roskin <[EMAIL PROTECTED]>
+
+ * distdir2.test: New test.
+ * Makefile.am (XFAIL_TESTS): Add distdir2.test.
+
2001-02-04 Tom Tromey <[EMAIL PROTECTED]>
Index: tests/Makefile.am
--- tests/Makefile.am
+++ tests/Makefile.am
@@ -2,7 +2,7 @@
AUTOMAKE_OPTIONS = gnits
-XFAIL_TESTS =
+XFAIL_TESTS = distdir2.test
TESTS = \
acinclude.test \
aclocal.test \
Index: tests/distdir2.test
--- /dev/null
+++ tests/distdir2.test
@@ -0,0 +1,44 @@
+#! /bin/sh
+
+# Make sure that the templates of files that appear in configure.in
+# are distributed.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AC_INIT(foo)
+AC_CONFIG_AUX_DIR(.)
+AM_INIT_AUTOMAKE(distdir2, 0)
+AC_OUTPUT([Makefile foo/Makefile foo/bar])
+END
+
+cat > Makefile.am <<'END'
+SUBDIRS = foo
+END
+
+mkdir foo
+
+cat > foo/Makefile.am <<'END'
+noinst_SCRIPTS = bar
+END
+
+touch foo/bar.in
+
+# Fail gracefully if no autoconf.
+$needs_autoconf
+
+# Likewise for gcc.
+(gcc -v) > /dev/null 2>&1 || exit 0
+
+touch README NEWS AUTHORS ChangeLog
+
+# Remove some files installed by defs. These will be reinstalled by
+# automake.
+rm -f install-sh missing mkinstalldirs depcomp
+
+$ACLOCAL || exit 1
+$AUTOCONF || exit 1
+$AUTOMAKE -a || exit 1
+CC=gcc ./configure || exit 1
+$MAKE || exit 1
+$MAKE distcheck || exit 1
________________________