blob: 7ac7fc30edb477adb494f80e162762ad3291a601 [file]
#! /bin/sh
# Check SUBDIRS set based on conditionals.
. $srcdir/defs || exit 1
cat > configure.in << 'END'
AC_INIT
AM_INIT_AUTOMAKE(nonesuch, nonesuch)
AM_CONDITIONAL(TEST, true)
AC_OUTPUT(Makefile)
END
cat > Makefile.am << 'END'
if TEST
DIR = dir1
else
DIR = dir2
endif
SUBDIRS = $(DIR)
END
mkdir dir1
$ACLOCAL || exit 1
$AUTOMAKE && exit 1
exit 0