diff options
Diffstat (limited to 't/acloca22.sh')
-rwxr-xr-x | t/acloca22.sh | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/t/acloca22.sh b/t/acloca22.sh index 159fbcdb5..1faf21228 100755 --- a/t/acloca22.sh +++ b/t/acloca22.sh @@ -18,27 +18,30 @@ # dependencies. See also related the tests 'remake-deleted-m4-file.sh' # and 'remake-renamed-m4-macro-and-file.sh'. -. ./defs || exit 1 +. test-init.sh cat >>configure.ac <<EOF +AC_CONFIG_MACRO_DIR([.]) FOO AC_OUTPUT EOF + cat >foo.m4 <<EOF AC_DEFUN([FOO], [AC_SUBST([GREPFOO])]) EOF + cat >bar.m4 <<EOF AC_DEFUN([BAR], [AC_SUBST([GREPBAR])]) EOF -cat >Makefile.am <<EOF -ACLOCAL_AMFLAGS = -I . -EOF -$ACLOCAL -I . +: >Makefile.am + +$ACLOCAL $AUTOMAKE $AUTOCONF ./configure + $MAKE grep GREPFOO Makefile grep GREPBAR Makefile && exit 1 @@ -46,6 +49,7 @@ grep GREPBAR Makefile && exit 1 sed 's/FOO/BAR/' < configure.ac > t mv -f t configure.ac rm -f foo.m4 + $MAKE grep GREPFOO Makefile && exit 1 grep GREPBAR Makefile |