#! /bin/sh

# It's hard to believe there are so many AC_OUTPUT-related bugs.

. $srcdir/defs || exit 1

cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AC_OUTPUT(tests/Makefile tests/defs)
END

mkdir tests
: > tests/defs.in
: > tests/Makefile.am

$ACLOCAL || exit 1
$AUTOMAKE || exit 1

grep tests/defs.in tests/Makefile.in && exit 1
exit 0
