]> sourceware.org Git - automake.git/commitdiff
* aclocali1.test: New file - test for circular dependencies for aclocal.m4.
authorPavel Roskin <proski@gnu.org>
Wed, 18 Oct 2000 21:49:37 +0000 (21:49 +0000)
committerPavel Roskin <proski@gnu.org>
Wed, 18 Oct 2000 21:49:37 +0000 (21:49 +0000)
tests/aclocali1.test [new file with mode: 0755]

diff --git a/tests/aclocali1.test b/tests/aclocali1.test
new file mode 100755 (executable)
index 0000000..3c81464
--- /dev/null
@@ -0,0 +1,23 @@
+#! /bin/sh
+
+# Make sure that ACLOCAL_AMFLAGS doesn't cause circular dependencies.
+. $srcdir/defs || exit 1
+
+echo AM_QUUX >> configure.in
+
+cat > quux.m4 << 'END'
+AC_DEFUN([AM_QUUX], [
+])
+END
+
+cat > Makefile.am << 'END'
+ACLOCAL_AMFLAGS = -I .
+END
+
+# We have to run aclocal first to make sure that aclocal.m4 exists.
+# Otherwise automake won't guess that we want to auto-generate it.
+$ACLOCAL -I . || exit 1
+
+$AUTOMAKE || exit 1
+
+grep "\$(ACLOCAL_M4): *configure.in *quux.m4" Makefile.in || exit 1
This page took 0.026776 seconds and 5 git commands to generate.