Open the access to AH_ to users.

* autoheader.m4 (autoheader::AH_DEFUN): New macro.
* tests/tools.m4: New file, in charge of testing the scripts.
All the dependencies adapted.
* tests/actest.m4 (autoheader::AC_TATOOINE): New macro, used while
testing autoheader.
* tests/atspecific.m4: Create config.hin instead of config.h.in.
This commit is contained in:
Akim Demaille 2000-02-08 13:54:48 +00:00
parent 881b4d908f
commit b54d44e0c3
5 changed files with 30 additions and 2 deletions

View File

@ -1,3 +1,14 @@
2000-02-08 Akim Demaille <akim@epita.fr>
Open the access to AH_ to users.
* autoheader.m4 (autoheader::AH_DEFUN): New macro.
* tests/tools.m4: New file, in charge of testing the scripts.
All the dependencies adapted.
* tests/actest.m4 (autoheader::AC_TATOOINE): New macro, used while
testing autoheader.
* tests/atspecific.m4: Create config.hin instead of config.h.in.
2000-02-08 Akim Demaille <akim@epita.fr>
Because of commas and brackets, m4_split must mess with the

View File

@ -66,6 +66,15 @@ define(AH_DEFUN,
defn([$1])
[$2])])
# The definition of `AH_DEFUN' above is used for accumulating the
# definitions before entering the `autoheader' namespace. Once we
# enter the autoheader::, `AH_DEFUN' must be understood as immediatly
# defining. This happens when we read user m4 files.
m4_define([autoheader::AH_DEFUN],
defn([m4_define]))
m4_namespace_register([AH_DEFUN], [autoheader])
# These are alternate definitions of some macros, which produce
# strings in the output marked with "@@@" so we can easily extract

View File

@ -20,7 +20,7 @@
AUTOMAKE_OPTIONS = gnits
SUITE = torture.m4 semantics.m4 syntax.m4 base.m4
SUITE = torture.m4 semantics.m4 syntax.m4 base.m4 tools.m4
# We don't actually distribute the testsuite, since one only
# needs m4 to build it, m4 being required anyway to install Autoconf.

View File

@ -44,3 +44,10 @@ AC_DEFINE_UNQUOTED(AC_DUMMY_VAR($1),
[Define to a long string if your `Autoconf' works
properly.])
AC_SUBST(AC_DUMMY_VAR($1))])
# autoheader::AC_TATOOINE
# -----------------------
# Template a dummy entries for config header.
AH_DEFUN(AC_TATOOINE,
[AH_TEMPLATE(Tatooine, The planet where Luke was raised.)])

View File

@ -17,6 +17,7 @@ EOF
dnl Run the tests from the most selective to the easiest.
AT_INCLUDE(torture.m4)
AT_INCLUDE(base.m4)
AT_INCLUDE(semantics.m4)
AT_INCLUDE(syntax.m4)
AT_INCLUDE(tools.m4)
AT_INCLUDE(base.m4)