3 # Test for PR automake/87.
5 . $srcdir/defs || exit 1
7 $needs_gnu_make # for `make distcheck'
14 int main() { return 0; }
16 cat >$i/Makefile.am <<EOF
22 echo "SUBDIRS = $subdirs" > Makefile.am
23 cat >configure.in <<EOF
24 AC_INIT(`echo $subdirs | sed 's|\([a-z][a-z]*\).*|\1/\1.c|'`)
26 AM_INIT_AUTOMAKE(test_am, 1.0)
28 AC_OUTPUT(Makefile `echo $subdirs | sed 's|\([a-z][a-z]*\)|\1/Makefile|g'`)
32 (gcc -v) > /dev/null 2>&1 || exit 77
38 touch README NEWS AUTHORS ChangeLog
42 # We use gcc and not gcc -traditional as the latter fails on some
43 # Linux boxes (Red Hat 5.1 in particular).
46 && $AUTOMAKE -a || exit 1
48 # Regression test for bug where `.c.o:' is followed by blank line.
50 if test "$line" = ".c.o:"; then
52 if test -z "$next"; then
57 done) < foo/Makefile.in || exit 1
60 && CC='gcc' ../configure \
61 && $MAKE distcheck || exit 1