autoconf/tests
Akim Demaille 08de8c9f93 Honor properly the `#define' config.h.in templates.
Test it.

* acgeneral.m4 (AC_OUTPUT_HEADERS): Renamed as...
(_AC_OUTPUT_HEADERS): this.  All callers changed.
Don't mess with changequote, just quote properly.
Bug 1.  Because of the `#' in `ac_dA', the quotes <<>> were not
removed, and therefore the sed script contained `<<define>>'
instead of `define'.  Now that the block is properly quoted, there
is no need to quote `define'.
Bug 2.  Once a `#define' substitution performed, we were branching
to the top of the sed script (`t top').  This resulted in an
endless substitution of `#define foo 1' to `#define foo 1'.
Branching is not enough: you also have to fetch the next input
line, i.e., use `t' instead of `t t' in ac_dD, and don't output
`: top' in `config.defines'.
Though it was correct for `#undef' templates, just apply the same
transformation to `ac_uD' and `config.undefs'.
Bug 3.  Don't try to preserve what was behind the value in the
template, since on
	#define NAME "bar baz"
it leads to
	#define NAME 1 baz"
Now `ac_dB' catches everything behind the NAME (making sure there
is at least a space) and `ac_dC' only outputs a space.
* tests/torture.m4: Check that various forms of `#define' header
templates are properly handled.
2000-02-10 10:38:59 +00:00
..
actest.m4 Open the access to AH_ to users. 2000-02-08 13:54:48 +00:00
atconfig.in
atgeneral.m4 * tests/atspecific.m4 (m4_for, m4_foreach): New macros. 2000-02-07 17:02:37 +00:00
base.m4 * tests/base.m4: Really added to the CVS repository. 2000-02-09 08:36:01 +00:00
Makefile.am Open the access to AH_ to users. 2000-02-08 13:54:48 +00:00
semantics.m4 Keep `AC_CHECK_TYPE' backward compatibility and provide a proper 2000-02-10 10:24:10 +00:00
suite.m4 Open the access to AH_ to users. 2000-02-08 13:54:48 +00:00
syntax.m4 Revamp the autoupdate/AC_OBSOLETE chain. All the details are 2000-02-08 13:25:49 +00:00
tools.m4 The AU-glue code for AC_LINK_FILES was not fully compatible: in 2000-02-10 09:45:25 +00:00
torture.m4 Honor properly the `#define' config.h.in templates. 2000-02-10 10:38:59 +00:00