#! /bin/sh # Regression test for multiple rules being generated for each target when # conditionals are present. # From Richard Boulton . $srcdir/defs || exit 1 cat >> configure.in << 'END' AC_PROG_CC AM_CONDITIONAL(BAR, true) END cat > Makefile.am << 'END' if BAR BAR_SRCS = bar.c endif bin_PROGRAMS = foo foo_CFLAGS = -DFOO foo_SOURCES = foo.c END : > compile $AUTOMAKE || exit 1 uncondval=`fgrep 'foo-foo.o: foo.c' Makefile.in` cat >> Makefile.am << 'END' foo_SOURCES += $(BAR_SRCS) END $AUTOMAKE || exit 1 condval=`fgrep 'foo-foo.o: foo.c' Makefile.in` test "x$uncondval" = "x$condval"