* config.test: New file.
authorTom Tromey <tromey@redhat.com>
Tue, 29 Sep 1998 12:53:54 +0000 (12:53 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 29 Sep 1998 12:53:54 +0000 (12:53 +0000)
* Makefile.am (TESTS): Added config.test.

tests/ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/config.test [new file with mode: 0755]

index 08cec7f..c749ac8 100644 (file)
@@ -1,5 +1,8 @@
 Tue Sep 29 02:09:11 1998  Tom Tromey  <tromey@cygnus.com>
 
+       * config.test: New file.
+       * Makefile.am (TESTS): Added config.test.
+
        * Makefile.am (TESTS): Reference clean.test, not clean.am.
 
 Mon Sep 28 01:46:34 1998  Tom Tromey  <tromey@cygnus.com>
index a27366b..66541c2 100644 (file)
@@ -33,7 +33,7 @@ java.test sinclude.test javaprim.test javasubst.test aclocalii.test \
 lex2.test libobj8.test version3.test instdata.test exdir2.test \
 colon5.test library.test syntax.test cond4.test cond5.test recurs.test \
 ansi3.test cond6.test colon6.test texinfo7.test parse.test else.test \
-clean.test recurs2.test
+clean.test recurs2.test config.test
 
 EXTRA_DIST = defs $(TESTS)
 
index 641c896..9040b55 100644 (file)
@@ -96,7 +96,7 @@ java.test sinclude.test javaprim.test javasubst.test aclocalii.test \
 lex2.test libobj8.test version3.test instdata.test exdir2.test \
 colon5.test library.test syntax.test cond4.test cond5.test recurs.test \
 ansi3.test cond6.test colon6.test texinfo7.test parse.test else.test \
-clean.test recurs2.test
+clean.test recurs2.test config.test
 
 EXTRA_DIST = defs $(TESTS)
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
diff --git a/tests/config.test b/tests/config.test
new file mode 100755 (executable)
index 0000000..cbe6ba7
--- /dev/null
@@ -0,0 +1,25 @@
+#! /bin/sh
+
+# Test to make sure config.h rule made even if it is in a subdir.  The
+# idea is that if config.h is in a subdir, and there is no Makefile in
+# that subdir, then we want to build config.h as the top level.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+AM_CONFIG_HEADER(subdir/config.h)
+PACKAGE=nonesuch
+VERSION=nonesuch
+AC_PROG_CC
+AC_ARG_PROGRAM
+AC_PROG_INSTALL
+AC_OUTPUT(Makefile)
+END
+
+: > Makefile.am
+mkdir subdir
+: > subdir/config.h.in
+
+$AUTOMAKE || exit 1
+
+grep '^subdir/config.h:' Makefile.in