diff options
author | Tom Tromey <tromey@redhat.com> | 2001-06-15 01:25:11 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2001-06-15 01:25:11 +0000 |
commit | de165743d6aea6d8620b91a40ad5346c09cbc21c (patch) | |
tree | 84e13e4253bb3747331a67c0729193193b5a664d /tests/subobj7.test | |
parent | a7df6fe522cf4038ad4c467a36c17bf578e610c7 (diff) | |
download | automake-de165743d6aea6d8620b91a40ad5346c09cbc21c.tar.gz |
Fix for bug reported by Steve M. Robbins:
* automake.in (handle_single_transform_list): When building a file
from a subdirectory, continue to use `AM_' prefix.
* tests/Makefile.am (TESTS): Added subobj7.test.
* tests/subobj7.test: New file.
Diffstat (limited to 'tests/subobj7.test')
-rwxr-xr-x | tests/subobj7.test | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/subobj7.test b/tests/subobj7.test new file mode 100755 index 000000000..c5388fbd2 --- /dev/null +++ b/tests/subobj7.test @@ -0,0 +1,25 @@ +#! /bin/sh + +# Test to make sure AM_CFLAGS appears in subdir compilation rule. +# Report from Steve M. Robbins. + +. $srcdir/defs || exit 1 + +cat > configure.in << 'END' +AC_INIT(f) +AM_INIT_AUTOMAKE(nonesuch, nonesuch) +AM_PROG_CC_C_O +AC_PROG_CC +AC_OUTPUT(Makefile) +END + +cat > Makefile.am << 'END' +bin_PROGRAMS = wish +wish_SOURCES = foo.c generic/a.c +END + +$ACLOCAL || exit 1 +$AUTOMAKE || exit 1 + +grep wish_CFLAGS Makefile.in && exit 1 +exit 0 |