automake: fix regression due to de-ansification support removal
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 1 Sep 2011 09:02:04 +0000 (11:02 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 2 Sep 2011 08:24:19 +0000 (10:24 +0200)
commit199b9086f51927fb99663cac42934337352cce69
tree2fba14772ac8fdf900c4ced764b60c06ee3a3241
parent136b48998f4a5db717e16200fcdf4bb907703646
automake: fix regression due to de-ansification support removal

The last change `v1.11-947-g136b489' removed code that automake
was using to decide whether binary objects were built by the
generated Makefile.in, so that it could avoid to emit unneeded
code when this was not the case.  Re-introduce such code in a
less-obfuscated form, and add a test to ensure we don't regress
again.

* automake.in ($must_handle_compiled_objects): New global
variable, telling whether the generated Makefile has to build
compiled objects.
(initialize_per_input): Reset it.
(handle_programs, handle_libraries, handle_ltlibraries): Set
it to a true value when required.
(handle_compile): Don't generate any code if the variable
`$must_handle_compiled_objects' is not set to a true value.
* tests/no-extra-makefile-code.test: New test.
* tests/Makefile.am (TESTS): Add it.
12 files changed:
ChangeLog
Makefile.in
automake.in
doc/Makefile.in
lib/Automake/Makefile.in
lib/Automake/tests/Makefile.in
lib/Makefile.in
lib/am/Makefile.in
m4/Makefile.in
tests/Makefile.am
tests/Makefile.in
tests/no-extra-makefile-code.test [new file with mode: 0755]