+2011-05-25 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ testsuite: require C compiler explicitly in tests needing it
+ The list of the test scripts which needed a C compiler but
+ failed to require it explicitly has been found by running:
+ $ am_explicit_skips=yes CC=false make check
+ and looking for tests that reported FAIL instead of SKIP.
+ After the present change, all those previously failing tests
+ either pass or get correctly skipped.
+ * tests/aclocal4.test ($required): Add `cc'.
+ * tests/ansi.test: Likewise.
+ * tests/ansi10.test: Likewise.
+ * tests/ansi3.test: Likewise.
+ * tests/ansi3b.test: Likewise.
+ * tests/ansi5.test: Likewise.
+ * tests/ansi6.test: Likewise.
+ * tests/ansi7.test: Likewise.
+ * tests/ansi9.test: Likewise.
+ * tests/backcompat6.test: Likewise.
+ * tests/canon7.test: Likewise.
+ * tests/check5.test: Likewise.
+ * tests/check7.test: Likewise.
+ * tests/check8.test: Likewise.
+ * tests/cond4.test: Likewise.
+ * tests/cond11.test: Likewise.
+ * tests/cond16.test: Likewise.
+ * tests/cond18.test: Likewise.
+ * tests/cond19.test: Likewise.
+ * tests/cond22.test: Likewise.
+ * tests/cond30.test: Likewise.
+ * tests/cond31.test: Likewise.
+ * tests/cond32.test: Likewise.
+ * tests/cond34.test: Likewise.
+ * tests/cond35.test: Likewise.
+ * tests/cond39.test: Likewise.
+ * tests/condd.test: Likewise.
+ * tests/cygnus-dependency-tracking.test: Likewise.
+ * tests/depcomp2.test: Likewise.
+ * tests/depcomp6.test: Likewise.
+ * tests/depcomp7.test: Likewise.
+ * tests/depcomp8a.test: Likewise.
+ * tests/depcomp8b.test: Likewise.
+ * tests/depdist.test: Likewise.
+ * tests/depend2.test: Likewise.
+ * tests/depend5.test: Likewise.
+ * tests/distcleancheck.test: Likewise.
+ * tests/distname.test: Likewise.
+ * tests/exeext.test: Likewise.
+ * tests/exeext4.test: Likewise.
+ * tests/extradep.test: Likewise.
+ * tests/extradep2.test: Likewise.
+ * tests/gnits2.test: Likewise.
+ * tests/gnits3.test: Likewise.
+ * tests/instdir-ltlib.test: Likewise.
+ * tests/instdir-prog.test: Likewise.
+ * tests/instfail.test: Likewise.
+ * tests/instfail-libtool.test: Likewise.
+ * tests/lex3.test: Likewise.
+ * tests/lex5.test: Likewise.
+ * tests/lexvpath.test: Likewise.
+ * tests/lex-subobj-nodep.test: Likewise.
+ * tests/lflags.test: Likewise.
+ * tests/libobj-basic.test: Likewise.
+ * tests/libobj2.test: Likewise.
+ * tests/libobj7.test: Likewise.
+ * tests/libobj10.test: Likewise.
+ * tests/libobj16a.test: Likewise.
+ * tests/libobj16b.test: Likewise.
+ * tests/libobj17.test: Likewise.
+ * tests/libobj19.test: Likewise.
+ * tests/libtool2.test: Likewise.
+ * tests/libtool3.test: Likewise.
+ * tests/libtool7.test: Likewise.
+ * tests/libtool9.test: Likewise.
+ * tests/libtoo10.test: Likewise.
+ * tests/libtoo11.test: Likewise.
+ * tests/ltcond.test: Likewise.
+ * tests/ltcond2.test: Likewise.
+ * tests/ltconv.test: Likewise.
+ * tests/ltinit.test: Likewise.
+ * tests/ltlibsrc.test: Likewise.
+ * tests/ltorder.test: Likewise.
+ * tests/nobase.test: Likewise.
+ * tests/nobase-libtool.test: Likewise.
+ * tests/mmodely.test: Likewise.
+ * tests/parallel-tests5.test: Likewise.
+ * tests/parallel-tests-suffix-prog.test: Likewise.
+ * tests/parallel-tests-ext-driver-prog.test: Likewise.
+ * tests/posixsubst-ldadd.test: Likewise.
+ * tests/posixsubst-libraries.test: Likewise.
+ * tests/posixsubst-ltlibraries.test: Likewise.
+ * tests/posixsubst-programs.test: Likewise.
+ * tests/posixsubst-sources.test: Likewise.
+ * tests/pr87.test: Likewise.
+ * tests/pr204.test: Likewise.
+ * tests/pr224.test: Likewise.
+ * tests/pr300-lib.test: Likewise.
+ * tests/pr300-ltlib.test: Likewise.
+ * tests/pr300-prog.test: Likewise.
+ * tests/pr401.test: Likewise.
+ * tests/pr401b.test: Likewise.
+ * tests/pr401c.test: Likewise.
+ * tests/remake-gnulib-add-acsubst.test: Likewise.
+ * tests/remake-gnulib-add-header.test: Likewise.
+ * tests/regex.test: Likewise.
+ * tests/repeated-options.test: Likewise.
+ * tests/silent.test: Likewise.
+ * tests/silent3.test: Likewise.
+ * tests/silent9.test: Likewise.
+ * tests/silent-lex-generic.test: Likewise.
+ * tests/silent-many-generic.test: Likewise.
+ * tests/silent-yacc-generic.test: Likewise.
+ * tests/specflg7.test: Likewise.
+ * tests/specflg9.test: Likewise.
+ * tests/specflg10.test: Likewise.
+ * tests/stdinc.test: Likewise.
+ * tests/strip.test: Likewise.
+ * tests/strip2.test: Likewise.
+ * tests/strip3.test: Likewise.
+ * tests/subdirbuiltsources.test: Likewise.
+ * tests/subobj3.test: Likewise.
+ * tests/subobj6.test: Likewise.
+ * tests/subobj11a.test: Likewise.
+ * tests/subpkg.test: Likewise.
+ * tests/subst2.test: Likewise.
+ * tests/subst3.test: Likewise.
+ * tests/substref.test: Likewise.
+ * tests/substre2.test: Likewise.
+ * tests/suffix5.test: Likewise.
+ * tests/suffix8.test: Likewise.
+ * tests/suffix10.test: Likewise.
+ * tests/suffix11.test: Likewise.
+ * tests/suffix12.test: Likewise.
+ * tests/suffix13.test: Likewise.
+ * tests/target-cflags.test: Likewise.
+ * tests/transform.test: Likewise.
+ * tests/transform2.test: Likewise.
+ * tests/yacc-basic.test: Likewise.
+ * tests/yacc-d-basic.test: Likewise.
+ * tests/yacc-clean.test: Likewise.
+ * tests/yacc-dist-nobuild.test: Likewise.
+ * tests/yacc-nodist.test: Likewise.
+ * tests/yaccvpath.test: Likewise.
+ * tests/yacc-d-vpath.test: Likewise.
+ * tests/yacc4.test: Likewise.
+ * tests/yacc7.test: Likewise.
+ * tests/yacc8.test: Likewise.
+ * tests/yaccdry.test: Likewise.
+ * tests/yflags-cmdline-override.test: Likewise.
+ * tests/yflags-force-override.test: Likewise.
+ * tests/python-virtualenv.test: Likewise. Also, improve skip
+ messages.
+ * tests/subobj5.test ($required): Add `cc'.
+ (Makefile.am): Set `AUTOMAKE_OPTIONS' to `subdir-objects', and
+ add new checking rules `test-build' and `test-distdir'.
+ Extend the test by building and examining the distdir, the
+ program, and the object files.
+ * tests/postproc.test ($required): Add `cc'.
+ Avoid the explicit `|| Exit $?' after call to configure, which
+ is now either redundant (e.g., when `am_explicit_skips' is
+ unset), or counter-productive (e.g., when `am_explicit_skips'
+ is set to "yes").
+ * tests/pr243.test: Likewise.
+ * tests/pr266.test: Likewise.
+ * tests/pr220.test: Simplify so that it doesn't require a
+ C compiler anymore.
+ * tests/subdir5.test: Likewise.
+ * tests/subdir8.test: Likewise.
+ * tests/lflags.test: Likewise.
+ * tests/yflags.test: Likewise.
+ * tests/yflags-force-conditional.test: Likewise.
+ * tests/lflags2.test: Simplify so that it doesn't require a
+ C++ compiler anymore.
+ * tests/yflags2.test: Likewise.
+ * tests/autohdrdry.test (configure.in): Remove unneeded call
+ to `AC_PROG_CC'.
+ * tests/pr287.test: Likewise.
+ * tests/check6.test: Likewise.
+ * tests/cond21.test: Likewise, plus some cosmetic adjustments.
+ * tests/upc.test: Skip if configure fails with status `77'.
+ * tests/upc3.test: Likewise.
+ * tests/vala4.test: Likewise.
+ * tests/nostdinc.test: Likewise. Also, make grepping checks
+ on `Makefile.in'. Update heading comments.
+ * tests/compile5.test: When we must skip, skip explicitly,
+ and with a meaningful message.
+ * tests/instspc-tests.sh: When running in "test-build" or
+ "test-install" mode (as determined by the value of variable
+ `$instspc_action'), require `cc'. Adjust comments.
+ * tests/depmod-tests.sh: Likewise.
+
2011-05-24 Stefano Lattarini <stefano.lattarini@gmail.com>
testsuite: allow user to ask for stricter skip semantics
# Make sure dependencies on aclocal.m4 are set correctly.
# Report from Jim Meyering.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<EOF
# Test for bug where ansi2knr.c is not included in distribution.
# From François Pinard.
+required=cc
. ./defs || Exit 1
cat > Makefile.am << 'END'
# Make sure ansi2knr works with $(LIBOBJS).
-required=native
+required='cc native'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Actual test of ansi2knr functionality.
-required=native
+required='cc native'
. ./defs || Exit 1
cat >> configure.in << 'END'
# of working gcc. Same as ansi3.test, but with AUTOMAKE_OPTIONS
# defined in configure.in.
-required=native
+required='cc native'
. ./defs || Exit 1
cat > configure.in << 'END'
# Test for ansi2knr in another directory.
-required=native
+required='cc native'
. ./defs || Exit 1
cat > configure.in << 'END'
# Check ansi2knr on a source file in subdirectory.
# From Kevin Ryde.
-required=native
+required='cc native'
. ./defs || Exit 1
cat > configure.in << 'END'
# ansi6.test is the same test without subdir-objects.
# From Kevin Ryde.
-required=native
+required='cc native'
. ./defs || Exit 1
cat > configure.in << 'END'
# can still be deansified.
# Report from Paul D. Smith.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<EOF
# Check rebuild rules for AC_CONFIG_HEADERS.
# (This should also work without GNU Make.)
+required=cc
. ./defs || Exit 1
cat >>configure.in <<'EOF'
. ./defs || Exit 1
cat >>configure.in <<'EOF'
-AC_PROG_CC
AC_CONFIG_HEADERS([config.h])
AC_OUTPUT
EOF
# This script can also serve as mild stress-testing for Automake.
# See also the similar test `backcompat5.test'.
+required=cc
. ./defs || Exit 1
# Anyone doing something like this in a real-life package probably
# Stress test on canonicalization.
-required='libtool libtoolize'
+required='cc libtool libtoolize'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check @substituted@ TESTS, some of which are also PROGRAMS.
# See also sister test `check-subst.test'.
-required=native
+required='cc native'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test TESTS = $(check_PROGRAMS)
-required=native
+required='cc native'
. ./defs || Exit 1
cat >> configure.in << 'END'
. ./defs || Exit 1
cat >> configure.in << 'END'
-AC_PROG_CC
AC_OUTPUT
END
# Check EXEEXT extension for XFAIL_TESTS.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check subdir TESTS.
-required=native
+required='cc native'
. ./defs || Exit 1
cat >> configure.in << 'END'
: >Makefile.am
+# This will be sourced, nor executed.
cat >check_host.in << 'END'
-#! /bin/sh
-case @host_os@ in
+case '@host_os@' in
mingw*)
;;
*)
- exit 77
+ skip_ "target OS is not MinGW"
;;
esac
case @build_os@ in
mingw* | cygwin*)
;;
*)
- winepath -w / || exit 77
+ winepath -w / \
+ || skip_ "not on MinGW or Cygwin, and winepath not available"
;;
esac
END
$AUTOCONF
$AUTOMAKE -a
./configure
-./check_host
+. ./check_host
pwd=`pwd`
# This checks that, if LDADD is set from a conditional variable
# and an AC_SUBST, the _DEPENDENCIES variable is set correctly.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# references.
# Report from Richard Boulton
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Regression test for substitution references to conditional variables.
# Report from Richard Boulton
-required=GNUmake
+required='cc GNUmake'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Regression test for substitution references to conditional variables.
# Report from Richard Boulton
-required=GNUmake
+required='cc GNUmake'
. ./defs || Exit 1
cat >> configure.in << 'END'
. ./defs || Exit 1
cat >> configure.in << 'END'
-AC_PROG_CC
-AM_CONDITIONAL(COND1, true)
-AM_CONDITIONAL(COND2, true)
-AM_CONDITIONAL(COND3, true)
+AM_CONDITIONAL([COND1], [true])
+AM_CONDITIONAL([COND2], [true])
+AM_CONDITIONAL([COND3], [true])
AC_OUTPUT
END
BAR += bar3
endif
+.PHONY: test
test:
@echo BAR: $(BAR) :BAR
@echo FOO: $(FOO) :FOO
./configure
$MAKE test | $FGREP 'BAR: bar12 bar bar3 :BAR'
$MAKE test | $FGREP 'FOO: foo foo1 foo2 foo1b :FOO'
+
+:
# Regression test for bug when sources listed in conditional.
# Report from Richard Boulton. PR/326.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# For PR/352: make sure we support bin_PROGRAMS being defined conditionally.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<'EOF'
# Make sure we define conditional _DEPENDENCIES correctly.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<'EOF'
# Make sure the user can override a conditional _DEPENDENCIES.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<'EOF'
# Check for _DEPDENDENCIES definition with conditional _LDADD.
# Report from Elena A. Vengerova
+required=cc
. ./defs || Exit 1
cat >>configure.in <<'EOF'
# Check rules output for parser defined conditionally.
# Report from Roman Fietze.
-required='flex yacc'
+required='cc flex yacc'
. ./defs || Exit 1
cat >>configure.in <<'EOF'
# Build either as CONFIG_FILE or as PROGRAM.
+required=cc
. ./defs || Exit 1
+
mkdir sub
cat >>configure.in <<'END'
# Another sources-in-conditional test. Report from Tim Goodwin.
-required=GNUmake
+required='cc GNUmake'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test for bug in conditionals.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check that cygnus mode disables automatic dependency tracking.
# And check that this *cannot* be overridden.
+required=cc
. ./defs || Exit 1
cat >> configure.in <<'END'
# Test to make sure that depcomp is not used when it's not installed
# From Pavel Roskin.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check dependency generation (non libtool case).
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check dependency generation (libtool case).
-required='libtoolize'
+required='cc libtoolize'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Keep this in sync with sister test `depcomp8b.test', which checks the
# same thing for libtool objects.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Keep this in sync with sister test `depcomp8a.test', which checks the
# same thing for non-libtool objects.
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Make sure depcomp is found for the distribution.
# From Eric Magnien.
+required=cc
. ./defs || Exit 1
rm -f configure.in
# --disable-dependency-tracking.
# Report from Robert Boehne
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check that _AM_OUTPUT_DEPENDENCY_COMMANDS works with eval-style
# quoting in $CONFIG_FILES, done by newer Autoconf.
+required=cc
. ./defs || Exit 1
cat >>configure.in << END
# the errexit flag, since the setup code might not be prepared to deal
# with it. Also pre-set `$me' for `tests/defs', so that different calls
# to `depmod-tests.sh' won't try to use the same temporary directory.
+# The actual tests require a C compiler, so require it for them; but do
+# not require it when generating data, as it's not needed then.
if test x"$action" = x"generate-data"; then
me=depmod-data
else
+ required=cc
me=depcomp-$depmode
fi
set +e
# Make sure the suggested `distcleancheck_listfiles' in the manual works.
# The example Makefile.am we use is from the FAQ entry `distcleancheck'.
+required=cc
. ./defs || Exit 1
cat >>configure.in << 'END'
# Test of names in tar file.
# From Rainer Orth
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Also make sure the old definitions of bin_PROGRAMS and friend
# aren't left around. Report from Jim Meyering.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Make sure $(EXEEXT) is appended to programs and to tests that are
# programs, but not to @substitutions@.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test EXTRA_*_DEPENDENCIES. See extradep2 for libtool variant.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test EXTRA_*_DEPENDENCIES, libtool version; see extradep.test.
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test to ensure std-options checking is correct.
-required=native
+required='cc native'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check that AM_INSTALLCHECK_STD_OPTIONS_EXEMPT works.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# be installed there.
# This test exercises the libtool code paths.
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
cat >>configure.in <<'END'
# nothing should be installed there.
# This test exercises the prog and libs code paths.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<'END'
# This is the libtool sister test of instfail.test
-required='libtool libtoolize'
+required='cc libtool libtoolize'
. ./defs || Exit 1
cat >>configure.in <<END
# This test has a few sister tests, for java, info, libtool.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<END
# the errexit flag, since the setup code might not be prepared to deal
# with it. Also pre-set `$me' for `tests/defs', so that different calls
# to `instspc-tests.sh' won't try to use the same temporary directory.
+# The actual tests require a C compiler, so require it for them; but do
+# not require it when generating data, as it's not needed then.
if test x"$instspc_action" = x"generate-data"; then
me=instspc-data
else
+ required=cc
me=$instspc_action-$instspc_test_name
fi
set +e
# Ensure subdirs for subdir scanners are generated when subdir-objects
# are used, even when dependency tracking is disabled.
-required=flex
+required='cc flex'
. ./defs || Exit 1
cat >>configure.in <<\END
# Test associated with PR 19.
# From Matthew D. Langston.
-required='flex GNUmake'
+required='cc flex GNUmake'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test for subdir lexers.
-required='GNUmake flex'
+required='cc GNUmake flex'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Please keep this in sync with sister test `yaccvapth.test'.
-required=flex
+required='cc flex'
. ./defs || Exit 1
cat > lexoutroot.in << 'END'
# Please keep this in sync with the sister tests lflags2.test, yflags.test
# and yflags2.test
+required=cc
. ./defs || Exit 1
cat >fake-lex <<'END'
unset LEX || :
cat >> configure.in <<'END'
-AC_PROG_CC
+AC_SUBST([CC], [false])
# Simulate presence of Lex using our fake-lex script.
AC_SUBST([LEX], ['$(abs_top_srcdir)'/fake-lex])
AC_SUBST([LEX_OUTPUT_ROOT], [lex.yy])
END
cat > Makefile.am <<'END'
+AUTOMAKE_OPTIONS = no-dependencies
bin_PROGRAMS = foo bar
foo_SOURCES = main.c foo.l
bar_SOURCES = main.c bar.l
grep '\$(LFLAGS).*\$(bar_LFLAGS)' Makefile.in && Exit 1
grep '\$(LFLAGS).*\$(AM_LFLAGS)' Makefile.in && Exit 1
-echo 'int main(void){ return 0; }' > main.c
: > foo.l
: > bar.l
$AUTOCONF
./configure
-env LFLAGS=__user_flags__ $MAKE -e
-
-ls -l
+env LFLAGS=__user_flags__ $MAKE -e foo.c bar-bar.c
cat foo.c
-grep '__am_flags__.*__user_flags__' foo.c
cat bar-bar.c
+
+grep '__am_flags__.*__user_flags__' foo.c
grep '__bar_flags__.*__user_flags__' bar-bar.c
:
unset LEX || :
cat >> configure.in <<'END'
-AC_PROG_CXX
+AC_SUBST([CXX], [false])
# Simulate presence of Lex using our fake-lex script.
AC_SUBST([LEX], ['$(abs_top_srcdir)'/fake-lex])
AC_SUBST([LEX_OUTPUT_ROOT], [lex.yy])
END
cat > Makefile.am <<'END'
+AUTOMAKE_OPTIONS = no-dependencies
bin_PROGRAMS = foo bar
foo_SOURCES = main.cc foo.ll
bar_SOURCES = main.cc bar.l++
grep '\$(LFLAGS).*\$(bar_LFLAGS)' Makefile.in && Exit 1
grep '\$(LFLAGS).*\$(AM_LFLAGS)' Makefile.in && Exit 1
-echo 'int main(void) { return 0; }' > main.cc
: > foo.ll
: > bar.l++
$AUTOCONF
./configure
-env LFLAGS=__user_flags__ $MAKE -e
-
-ls -l
+env LFLAGS=__user_flags__ $MAKE -e foo.cc bar-bar.c++
cat foo.cc
-grep '__am_flags__.*__user_flags__' foo.cc
cat bar-bar.c++
+
+grep '__am_flags__.*__user_flags__' foo.cc
grep '__bar_flags__.*__user_flags__' bar-bar.c++
:
# Make sure AC_LIBSOURCE and AC_LIBSOURCES work.
+required=cc
. ./defs || Exit 1
mv configure.in configure.proto
# Do not complain about the nonexistence of a source for LIBOBJS if
# it's in BUILT_SOURCES. Reported by Erez Zadok.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Make sure AC_LIBOBJ and friends work.
# Please keep this in sync with sister test `libobj16b.test'.
+required=cc
. ./defs || Exit 1
mv configure.in configure.proto
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure AC_LIBOBJ and friends work.
-# Please keep this in sync with sister test `libobj16b.test'.
+# Please keep this in sync with sister test `libobj16a.test'.
+required=cc
. ./defs || Exit 1
mv configure.in configure.proto
# Make sure AC_LIBOBJ accept non-literal arguments.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test support for AC_CONFIG_LIBOBJ_DIR.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test to make sure LIBOBJS works in subdirs.
# Bug from Josh MacDonald.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test for multiple replacement functions.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Make sure .libs directories are removed for _PROGRAMS.
# Report from Guillermo Ontañón.
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
+
cat >> configure.in << 'END'
AC_PROG_LIBTOOL
AC_OUTPUT
# Make sure config.lt is removed with Libtool 2.2.x's LT_OUTPUT.
# Report by Charles Wilson.
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
+
cat >> configure.in << 'END'
AC_PROG_LIBTOOL
m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
$AUTOCONF
./configure
$MAKE distcheck
+
:
# Try to build and package a program linked to a Libtool library.
# Also make sure we do not bloat the Makefile with unneeded rules.
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Make sure we allow Libtool's -dlopen/-dlpreopen
# Also check basic support for AM_LIBTOOLFLAGS/LIBTOOLFLAGS
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Quite similar to libtool7.test, using AM_LDFLAGS in addition to
# xxx_LDFLAGS.
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test for conditional libtool libraries.
# This combines two examples from the manual.
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
cat >>configure.in <<'END'
# Test for bug in conditionals.
-required='native libtoolize'
+required='cc native libtoolize'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test for libtool convenience libraries.
# This example is taken from the manual.
-required='native libtoolize'
+required='cc native libtoolize'
. ./defs || Exit 1
cat >>configure.in <<'END'
# interface (with LT_INIT etc.) is used (this interface has been
# present since libtool 1.9b, circa 2004).
-required='libtoolize'
+required='cc libtoolize'
. ./defs || Exit 1
cat >>configure.in <<'END'
# Test to make sure a sensible default source for libraries is used.
-required=libtool
+required='cc libtool'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test for correct installation order of nobase libtool libraries.
-required='libtoolize'
+required='cc libtoolize'
. ./defs || Exit 1
cat >>configure.in <<'END'
$MAKE uninstall
test `find inst -type f -print | wc -l` -eq 0
+
:
# sources in maintainer mode.
# From Derek R. Price.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# This is just the libtool equivalent of nobase.test, split
# up for greater exposure of nobase.test.
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
cat >> configure.in <<'EOF'
# Make sure nobase_* works.
+required=cc
. ./defs || Exit 1
cat >> configure.in <<'EOF'
# Test to make sure nostdinc option works correctly.
+# We don't require a C compiler explicitly, because the first part of the
+# test (where `Makefile.in' is grepped) does not require one. Insted, we
+# just skip the rest of the test if configure fails to find a working C
+# compiler.
+
. ./defs || Exit 1
cat >> configure.in << 'END'
$ACLOCAL
$AUTOMAKE
-grep '.*-I *\.' Makefile.in && Exit 1
+$EGREP '(-I *\.|-I.*srcdir|am__isrc)' Makefile.in && Exit 1
# We'll test the fully-processed Makefile too.
$AUTOCONF
# Test with $builddir != $srcdir
mkdir build
cd build
-../configure
+../configure || Exit $?
$EGREP '.*-I *(\.|\$.srcdir.)' Makefile && Exit 1
# Test with $builddir = $srcdir
cd ..
-./configure
+./configure || Exit $?
$EGREP '.*-I *(\.|\$.srcdir.)' Makefile && Exit 1
Exit 0
# See also related test 'parallel-tests-ext-driver.test'.
parallel_tests=yes
-required=native
+required='cc native'
. ./defs || Exit 1
cat >> configure.in << 'END'
# See also sister test 'parallel-tests-suffix.test'.
parallel_tests=yes
-required=native
+required='cc native'
. ./defs || Exit 1
cat >> configure.in << 'END'
# It merely serves as demonstration. :-)
parallel_tests=yes
-required='native GNUmake'
+required='cc native GNUmake'
. ./defs || Exit 1
cat >> configure.in << 'END'
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test that POSIX variable expansion `$(var:str=rpl)' works
-# in when used in LDADD.
+# when used in LDADD.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# with the LIBRARIES primary in a "simple" way.
# Keep this in sync with sister test `posixsubst-ltlibraries.test'.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# with the LTLIBRARIES primary in a "simple" way.
# Keep this in sync with sister test `posixsubst-libraries.test'.
-required='libtool libtoolize'
+required='cc libtool libtoolize'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test that POSIX variable expansion `$(var:str=rpl)' works when used
# with the PROGRAMS primary.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test that POSIX variable expansion `$(var:str=rpl)' works when used
# with the SOURCES primary.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check to make sure we recognize a Makefile.in, even if post-processed
# and renamed.
+required=cc
. ./defs || Exit 1
cat >configure.in <<END
echo '# Post-processed by post-processor 3.14.' > myMakefile.in
cat myMakefile.old >> myMakefile.in
-./configure || Exit $?
+./configure
test -f .deps/fred.Po || test -f _deps/fred.Po || Exit 1
# For PR 204.
# Sources derived from nodist_ sources should not be distributed.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
cat >> configure.in <<'EOF'
. ./defs || Exit 1
-cat > main.c << 'EOF'
-int main (void)
-{
- return 0;
-}
-EOF
-
cat > Makefile.am << 'EOF'
if NEVER_TRUE
-NEVER_DEFINED = missingfile.c
+NEVER_DEFINED = foo.txt
endif
-
-bin_PROGRAMS = main
-main_SOURCES = main.c $(NEVER_DEFINED)
+data_DATA = $(NEVER_DEFINED)
EOF
cat >> configure.in << 'EOF'
-AC_PROG_CC
AC_ARG_ENABLE([foo],
[ --enable-foo Enable foo],
[ if test "foo" = "bar" ; then
# `$(top_srcdir)/build', the location of the `.deps' directory
# should be `$(top_builddir)/bar/.deps'.
+required=cc
. ./defs || Exit 1
mkdir foo
# the AM_OUTPUT_DEPENDENCY_COMMANDS macro cannot cope with
# the colon in the CONFIG_FILES variable.
+required=cc
. ./defs || Exit 1
cat > configure.in << END
$ACLOCAL
$AUTOMAKE
$AUTOCONF
-# FIXME: require compiler in $required rather than skipping here
-./configure || Exit $?
+./configure
test -f .deps/fx64.Po
# Test for PR 266.
# Dependency tracking -vs- nonstandard Makefile names
+required=cc
. ./defs || Exit 1
cat > configure.in << END
$ACLOCAL
$AUTOMAKE
$AUTOCONF
-# FIXME: require compiler in $required rather than skipping here
-./configure --enable-dependency-tracking || Exit $?
+./configure --enable-dependency-tracking
test -f .deps/fx64.Po
. ./defs || Exit 1
cat >> configure.in << 'END'
-AC_PROG_CC
AC_OUTPUT
END
# Make sure that installing subdirectory libraries works.
# PR/300
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Make sure that installing subdirectory libtool libraries works.
# PR/300
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Make sure that installing subdirectory programs works.
# PR/300
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# (pr401b.test and pr401c.test do the same for LTLIBOBJS and ALLOCA)
parallel_tests=no
+required=cc
. ./defs || Exit 1
mkdir lib src
# (pr401.test and pr401c.test do the same for LIBOBJS and ALLOCA)
parallel_tests=no
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
mkdir lib src
# (pr401.test and pr401b.test do the same for LIBOBJS and LTLIBOBJS)
parallel_tests=no
+required=cc
. ./defs || Exit 1
mkdir lib src
# Test for PR automake/87.
# "make distcheck" fails when two source dirs exist.
+required=cc
. ./defs || Exit 1
subdirs="foo bar"
# Make sure we can build programs ending in `.la'
+required=cc
. ./defs || Exit 1
cat >>configure.in <<EOF
# Check that python support can work well with virtualenvs.
# This test also works as a mild stress-test on the python support.
-required='python virtualenv'
+required='cc python virtualenv'
. ./defs || Exit 1
# In case the user's config.site defines pythondir or pyexecdir.
CONFIG_SITE=/dev/null; export CONFIG_SITE
# Skip the test if a proper virtualenv cannot be created.
-virtualenv --verbose virtenv \
- || skip_ "virtualenv program not found"
-test -f virtenv/bin/activate \
- || skip_ "creation of python virtual environment failed"
+virtualenv --verbose virtenv && test -f virtenv/bin/activate \
+ || skip_ "coulnd't create python virtual environment"
# Activate the virtualenv.
. ./virtenv/bin/activate
# Make sure AM_WITH_REGEX compiles and runs.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00005.html>
# for more info).
+required=cc
. ./defs || Exit 1
cat >> configure.in <<'END'
# <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00005.html>
# for more info).
+required=cc
. ./defs || Exit 1
cat >> configure.in <<'END'
# <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00005.html>
# for more info).
+required=cc
. ./defs || Exit 1
cat >> configure.in <<'END'
# Check that automake does not complain on repeated options, nor
# generate broken or incorrect makefiles.
-required=bzip2
+required='cc bzip2'
. ./defs || Exit 1
cat >configure.in <<END
# Check silent-rules mode for Lex.
# Keep this in sync with sister test `silent-lex-gcc.test'.
-required='flex'
+required='cc flex'
. ./defs || Exit 1
mkdir sub
# and forces the use of gcc depmode.
# FIXME: generic C++/Fortran compilers should suffice here
-required='g++ gfortran flex yacc'
+required='cc g++ gfortran flex yacc'
. ./defs || Exit 1
# Avoids too much code duplication.
# Check silent-rules mode for Yacc.
# Keep this in sync with sister test `silent-yacc-gcc.test'.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
mkdir sub
# Please keep this file in sync with silent2.test.
+required=cc
. ./defs || Exit 1
mkdir sub
# Please keep this file in sync with silent4.test and silent9.test.
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
mkdir sub
# Please keep this file in sync with silent3.test and silent4.test.
-required="libtoolize"
+required='cc libtoolize'
. ./defs || Exit 1
mkdir sub
# AM_DEFAULT_SOURCE_EXT
-required=g++ #FIXME: a generic C++ compiler should be enough.
+required='cc g++' #FIXME: a generic C++ compiler should be enough.
. ./defs || Exit 1
cat >> configure.in << 'END'
# The true/false example from the manual, plus a check for _SHORTNAME.
-required=native
+required='cc native'
. ./defs || Exit 1
cat >> configure.in << 'END'
# with one extra indirection in the sources (PR/315), and
# use of _CPPFLAGS (PR/337).
-required=native
+required='cc native'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test to make sure the standard include order is stable.
# Report by Kent Boortz.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test for install-strip.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Ensure install-strip works when STRIP consists of more than one word.
# This test needs GNU binutils strip. See sister test strip3.
-required=strip
+required='cc strip'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Ensure install-strip works when STRIP consists of more than one word.
# This test needs GNU binutils strip. Libtool variant.
-required='libtoolize strip'
+required='cc libtoolize strip'
. ./defs || Exit 1
cat >> configure.in << 'END'
. ./defs || Exit 1
cat >> configure.in << 'END'
-AC_PROG_CC
-AM_PROG_CC_C_O
AC_OUTPUT
END
-cat > Makefile.am << 'END'
-bin_PROGRAMS = wish
-wish_SOURCES = a.c
-END
-
-cat > a.c << 'END'
-#include <stdio.h>
-int main ()
-{
- printf ("hi liver!\n");
- return 0;
-}
-END
+: > Makefile.am
$ACLOCAL
$AUTOCONF
-$AUTOMAKE --include-deps --copy --add-missing
+$AUTOMAKE
./configure
$MAKE
. ./defs || Exit 1
cat >> configure.in << 'END'
-AC_PROG_CC
-AM_PROG_CC_C_O
m4_include([confiles.m4])
MORE_DEFS
AC_OUTPUT
mkdir sub
-cat > sub/Makefile.am << 'END'
-bin_PROGRAMS = wish
-wish_SOURCES = a.c
-END
-
-cat > sub/a.c << 'END'
-#include <stdio.h>
-int main ()
-{
- printf ("hi liver!\n");
- return 0;
-}
-END
+: > sub/Makefile.am
mkdir m4
echo 'AC_DEFUN([MORE_DEFS], [])' > m4/moredefs.m4
$ACLOCAL -I m4
$AUTOCONF
-$AUTOMAKE --copy --add-missing
+$AUTOMAKE
./configure
$MAKE
# A bug occurred where subdirs do not have all-recursive or
# all-recursive-am which depended on BUILT_SOURCES.
+required=cc
. ./defs || Exit 1
mkdir lib
# See also sister "grepping" test `subobj11b.test', and related test
# `subobj11c.test'.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test of subdir objects with ansi2knr.
-required=native
+required='cc native'
. ./defs || Exit 1
cat > configure.in << END
# Test of subdir make dist rules.
# From Robert Collins
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
END
cat > Makefile.am << 'END'
+AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = wish
wish_SOURCES = generic/a.c
+
+.PHONY: test-distdir test-build
+test-distdir: distdir
+ ls -l $(distdir) $(distdir)/* ;: For debugging.
+ test ! -r $(distdir)/a.c
+ test -f $(distdir)/generic/a.c
+test-build: all
+ ls -l . generic ;: For debugging.
+ test -f generic/a.$(OBJEXT)
+ test -f wish$(EXEEXT)
+ test ! -r a.$(OBJEXT)
+ test ! -r a$(EXEEXT)
+ test ! -r generic/wish$(EXEEXT)
+ test ! -r generic/a$(EXEEXT)
END
mkdir generic
-: > generic/a.c
: > generic/Makefile.am
+cat > generic/a.c << 'END'
+int main (void)
+{
+ return 0;
+}
+END
+
$ACLOCAL
$AUTOCONF
$AUTOMAKE --include-deps --copy --add-missing
./configure
+$MAKE test-distdir
$MAKE dist
+$MAKE test-build
:
# Test of subdir make distclean rules.
# From Robert Collins
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check subpackage handling.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
mkdir m4
# Make sure a multi-line definition cannot be terminated by an empty
# line (when there are @substitutions@ inside).
+
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test installation with substitutions. This test is based on nobase.test.
+required=cc
. ./defs || Exit 1
cat >> configure.in <<'EOF'
# Test for bug in variable substitution references, where
# undefined variables break later substitutions.
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# pattern is null.
# Report from Richard Boulton
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Make sure that derivations work with .lo too.
# (related to PR/37)
-required='libtoolize yacc'
+required='cc libtoolize yacc'
. ./defs || Exit 1
cat >>configure.in <<EOF
# PR/371 and PR/372: Reported by Duncan Gibson.
# We also check for suffixes containing `-'.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<EOF
# Tests that Automake understands suffix rules with subdir objects.
# Reported by John Ratliff.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<EOF
# and subdir objects.
# Reported by Florian Briegel.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<EOF
# from user-defined implicit rules.
# Based on a report from Arkadiusz Miskiewicz <misiek@pld.ORG.PL>.
-required=libtool
+required='cc libtool'
. ./defs || Exit 1
cat >> configure.in << 'END'
# same suffix.
# From PR/37.
-required=libtoolize
+required='cc libtoolize'
. ./defs || Exit 1
cat >>configure.in <<'END'
# Test to make sure target specific CFLAGS work
# Assar Westerlund <assar@sics.se>
+required=cc
. ./defs || Exit 1
cat >> configure.in << 'END'
# Make sure that --program-transform works.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<'END'
# Make sure that --program-transform works even when multiple files are
# collapsed.
+required=cc
. ./defs || Exit 1
cat >>configure.in <<'END'
# A simple Hello World for UPC.
. ./defs || Exit 1
+
cat >> configure.in << 'END'
AM_PROG_UPC
AC_OUTPUT
$AUTOMAKE
$AUTOCONF
-./configure
+./configure || Exit $?
$MAKE distcheck
+
+:
# Test that C and Unified Parallel C link safely.
. ./defs || Exit 1
+
cat >> configure.in << 'END'
AC_PROG_CC
AM_PROG_UPC
$AUTOMAKE
$AUTOCONF
-./configure
+./configure || Exit $?
$MAKE distcheck
+
+:
$ACLOCAL
$AUTOMAKE -a
$AUTOCONF
-./configure "VALAC=$cwd/valac"
+./configure "VALAC=$cwd/valac" || Exit $?
sed 's/AM_PROG_VALAC.*/AM_PROG_VALAC([9999.9])/' < configure.in >t
mv -f t configure.in
sed 's/AM_PROG_VALAC.*/AM_PROG_VALAC([1.2.3])/' < configure.in >t
mv -f t configure.in
$AUTOCONF --force
-./configure "VALAC=$cwd/valac"
+./configure "VALAC=$cwd/valac" || Exit $?
+
:
# Basic semantic checks on Yacc support.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
cat >> configure.in << 'END'
# are cleaned by "make clean", while .c and .h files derived from
# distributed .y sources are cleaned by "make maintainer-clean".
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Tests on basic Yacc support for when we have -d in YFLAGS, AM_YFLAGS
# or maude_YFLAGS.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
tab=' '
# Please keep this in sync with sister test `yaccvpath.test'.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Check that distributed Yacc-generated parsers are not uselessly
# remade from an unpacked distributed tarball.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Checks for .c and .h files derived from non-distributed .y sources.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Some simple tests of ylwrap functionality.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Also check that the sources of the generated parser are distributed.
# PR/47.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Test for subdir parsers.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
# Removal recovery rules for headers should not remove files with `make -n'.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
cat >> configure.in << 'END'
# Please keep this in sync with sister test `yacc-d-vpath.test'.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
distdir=$me-1.0
# Check that automake can cope with user-redefinition of $(YFLAGS)
# at configure time and/or at make time.
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
unset YFLAGS || :
. ./defs || Exit 1
cat >> configure.in <<'END'
-AC_PROG_CC
+AC_SUBST([CC], [false])
AC_PROG_YACC
AM_CONDITIONAL([COND], [test x"$cond" = x"yes"])
AC_OUTPUT
YACC=fake-yacc; export YACC
cat > Makefile.am <<'END'
+AUTOMAKE_OPTIONS = no-dependencies
bin_PROGRAMS = foo bar
foo_SOURCES = foo.y main.c
bar_SOURCES = $(foo_SOURCES)
endif !COND
END
-cat > main.c <<'END'
-int main (void)
-{
- return 0;
-}
-END
-
: > foo.y
$ACLOCAL
$EGREP '(YFLAGS|yflags|am__append)' Makefile.in # For debugging.
./configure cond=yes
-$MAKE
+$MAKE foo.c bar-foo.c
-ls -l
cat foo.c
cat bar-foo.c
ls -l
./configure cond=no
-$MAKE
+$MAKE foo.c bar-foo.c
-ls -l
cat foo.c
cat bar-foo.c
# in Makefile.am (even if that is extremely bad practice, because that
# variable is user-reserved).
-required=yacc
+required='cc yacc'
. ./defs || Exit 1
cat >> configure.in <<'END'
unset YACC || :
cat >> configure.in <<'END'
-AC_PROG_CC
+AC_SUBST([CC], [false])
# Simulate presence of Yacc using our fake-yacc script.
AC_SUBST([YACC], ['$(abs_top_srcdir)'/fake-yacc])
AC_OUTPUT
END
cat > Makefile.am <<'END'
+AUTOMAKE_OPTIONS = no-dependencies
bin_PROGRAMS = foo bar
foo_SOURCES = main.c foo.y
bar_SOURCES = main.c bar.y
grep '\$(YFLAGS).*\$(bar_YFLAGS)' Makefile.in && Exit 1
grep '\$(YFLAGS).*\$(AM_YFLAGS)' Makefile.in && Exit 1
-echo 'int main(void){ return 0; }' > main.c
: > foo.y
: > bar.y
$AUTOCONF
./configure
-env YFLAGS=__user_flags__ $MAKE -e
-
-ls -l
+env YFLAGS=__user_flags__ $MAKE -e foo.c bar-bar.c
cat foo.c
-grep '__am_flags__.*__user_flags__' foo.c
cat bar-bar.c
+
+grep '__am_flags__.*__user_flags__' foo.c
grep '__bar_flags__.*__user_flags__' bar-bar.c
:
unset YACC || :
cat >> configure.in <<'END'
-AC_PROG_CXX
+AC_SUBST([CXX], [false])
# Simulate presence of Yacc using our fake-yacc script.
AC_SUBST([YACC], ['$(abs_top_srcdir)'/fake-yacc])
AC_OUTPUT
END
cat > Makefile.am <<'END'
+AUTOMAKE_OPTIONS = no-dependencies
bin_PROGRAMS = foo bar
foo_SOURCES = main.cc foo.yy
bar_SOURCES = main.cc bar.y++
grep '\$(YFLAGS).*\$(bar_YFLAGS)' Makefile.in && Exit 1
grep '\$(YFLAGS).*\$(AM_YFLAGS)' Makefile.in && Exit 1
-echo 'int main(void) { return 0; }' > main.cc
: > foo.yy
: > bar.y++
$AUTOCONF
./configure
-env YFLAGS=__user_flags__ $MAKE -e
-
-ls -l
+env YFLAGS=__user_flags__ $MAKE -e foo.cc bar-bar.c++
cat foo.cc
-grep '__am_flags__.*__user_flags__' foo.cc
cat bar-bar.c++
+
+grep '__am_flags__.*__user_flags__' foo.cc
grep '__bar_flags__.*__user_flags__' bar-bar.c++
: