From Nicolas Joly:
[automake.git] / tests / aclocali1.test
blob3c814641a6c1aff8b71fff8e5766a3b0b2c41fa7
1 #! /bin/sh
3 # Make sure that ACLOCAL_AMFLAGS doesn't cause circular dependencies.
4 . $srcdir/defs || exit 1
6 echo AM_QUUX >> configure.in
8 cat > quux.m4 << 'END'
9 AC_DEFUN([AM_QUUX], [
11 END
13 cat > Makefile.am << 'END'
14 ACLOCAL_AMFLAGS = -I .
15 END
17 # We have to run aclocal first to make sure that aclocal.m4 exists.
18 # Otherwise automake won't guess that we want to auto-generate it.
19 $ACLOCAL -I . || exit 1
21 $AUTOMAKE || exit 1
23 grep "\$(ACLOCAL_M4): *configure.in *quux.m4" Makefile.in || exit 1