Implement conditional AC_CONFIG_FILES: AM_COND_IF.
commite19a2988bbd78fa046159ded5075ca4358e437b3
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 26 Mar 2008 06:00:44 +0000 (26 07:00 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 26 Mar 2008 06:24:59 +0000 (26 07:24 +0100)
treee4626381f9f1c4c741cfd2c8f77766972a7cd5cb
parentbfb846498ca08e33dc7448a6b618cab360a12921
Implement conditional AC_CONFIG_FILES: AM_COND_IF.

* automake.in (%ac_config_files_condition): New.
(scan_autoconf_config_files): Record condition if any.
(scan_autoconf_traces): Trace _AM_COND_IF, _AM_COND_ELSE,
_AM_COND_ENDIF, updating @cond_stack as appropriate.
(handle_configure): Prefix config.status rule with condition.
Check that m4 quotation is done consistently.
* m4/cond.m4 (AM_CONDITION): Define `_AM_COND_VALUE_name'
with `name' being the name of the condition, to its shell
condition.
* m4/cond-if.m4: New file.
(_AM_COND_IF, _AM_COND_ELSE, _AM_COND_ENDIF): New trace helpers.
(AM_COND_IF): New macro, implements conditionals.
* m4/Makefile.am: Adjust.
* doc/automake.texi (Requirements, Optional, Conditionals):
Document AM_COND_IF.
* NEWS: Update.
* tests/cond39.test, tests/cond40.test, tests/cond41.test,
tests/cond42.test, tests/cond43.test: New tests.
* tests/Makefile.am: Adjust.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15 files changed:
ChangeLog
NEWS
automake.in
doc/automake.texi
m4/Makefile.am
m4/Makefile.in
m4/cond-if.m4 [new file with mode: 0644]
m4/cond.m4
tests/Makefile.am
tests/Makefile.in
tests/cond39.test [new file with mode: 0755]
tests/cond40.test [new file with mode: 0755]
tests/cond41.test [new file with mode: 0755]
tests/cond42.test [new file with mode: 0755]
tests/cond43.test [new file with mode: 0755]