#! /bin/sh # Test for PR automake/87. . $srcdir/defs || exit 1 $needs_gnu_make # for `make distcheck' subdirs="foo bar" for i in $subdirs; do mkdir $i cat >$i/$i.c <$i/Makefile.am < Makefile.am cat >configure.in < /dev/null 2>&1 || exit 77 # Ignore user CFLAGS. CFLAGS= export CFLAGS touch README NEWS AUTHORS ChangeLog mkdir build # We use gcc and not gcc -traditional as the latter fails on some # Linux boxes (Red Hat 5.1 in particular). $ACLOCAL \ && $AUTOCONF \ && $AUTOMAKE -a || exit 1 # Regression test for bug where `.c.o:' is followed by blank line. (while read line; do if test "$line" = ".c.o:"; then read next if test -z "$next"; then exit 1 fi break fi done) < foo/Makefile.in || exit 1 cd build \ && CC='gcc' ../configure \ && $MAKE distcheck || exit 1