make flags analysis: be more robust
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 2 May 2013 17:41:24 +0000 (19:41 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 2 May 2013 18:28:53 +0000 (20:28 +0200)
commitb62616b3bc7dfcd1b260b0369ecf0d67eef3d00e
tree7e75342ba4673b05ba32cdfa824a89661aebdd72
parentc93bc3d4e6d12068f0d9b32b67ec63b3ca3313bd
make flags analysis: be more robust

In particular, catering to option-with-argument bundled together
with options-without-arguments, as in:

   # With GNU make 3.82:
   $ make -f- <<<'all:; echo "$$MFLAGS"' -s -k -I none
   -skiI none

   # With development version of GNU make (Git commit b5ea49b):
   $ make -f- <<<'all:; @echo "$$MFLAGS"' -I none
   -skiI none

This fixes some lingering failures in the testsuite; precisely, in
tests 'make-dryrun.tap' and 'make-keepgoing.tap'.

* t/header-vars.am (am__make_running_with_option): Enhance.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/header-vars.am