[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: A[CHUM]
From: |
Akim Demaille |
Subject: |
FYI: A[CHUM] |
Date: |
19 Jan 2001 15:33:10 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake) |
Finally...
I realize we no longer are bound to A?_, so M4sh could have its proper
extension, not AS_ which was based on Autoscript, which it is finally
not. But then, I confess I'm not too fond of MS_ :)
Index: ChangeLog
from Akim Demaille <address@hidden>
Catch only used patterns.
Reported by the whole Autoconf community.
* m4sh.m4 (AS_INIT): New.
* acgeneral.m4 (AC_PLAIN_SCRIPT): Use it.
Forbid only AC, AU, AH and AM.
Index: acgeneral.m4
===================================================================
RCS file: /cvs/autoconf/acgeneral.m4,v
retrieving revision 1.666
diff -u -u -r1.666 acgeneral.m4
--- acgeneral.m4 2001/01/18 15:30:35 1.666
+++ acgeneral.m4 2001/01/19 14:32:19
@@ -1509,13 +1509,12 @@
# generation. This is used by some tests, and let `autoconf' be used to
# generate other scripts than `configure'.
m4_define([AC_PLAIN_SCRIPT],
-[m4_init
+[AS_INIT
# Forbidden tokens and exceptions.
-m4_pattern_forbid([^A]m4_dquote(m4_defn([m4_cr_LETTERS]))[_])
+m4_pattern_forbid([^_?A[CHUM]_])
m4_pattern_forbid([_AC_])
-m4_pattern_allow([^AF_(INET|UNIX)$])
-m4_pattern_allow([^A[RS]_FLAGS$])
+# Actually reserved by M4sh.
+m4_pattern_allow([^AS_FLAGS$])
m4_divert_push([BODY])dnl
m4_wrap([m4_divert_pop([BODY])[]])dnl
Index: m4sh.m4
===================================================================
RCS file: /cvs/autoconf/m4sh.m4,v
retrieving revision 1.25
diff -u -u -r1.25 m4sh.m4
--- m4sh.m4 2001/01/18 13:30:46 1.25
+++ m4sh.m4 2001/01/19 14:32:19
@@ -422,3 +422,19 @@
_ASUNAME
}])
+
+
+
+## ----------------- ##
+## Setting M4sh up. ##
+## ----------------- ##
+
+
+# AS_INIT
+# -------
+m4_define([AS_INIT],
+[m4_init
+
+# Forbidden tokens and exceptions.
+m4_pattern_forbid([^_?AS_])
+])
Index: tests/tools.at
===================================================================
RCS file: /cvs/autoconf/tests/tools.at,v
retrieving revision 1.22
diff -u -u -r1.22 tools.at
--- tests/tools.at 2001/01/18 09:16:08 1.22
+++ tests/tools.at 2001/01/19 14:32:20
@@ -219,6 +219,7 @@
configure.ac:4: error: undefined macro: m4_foo
configure.ac:7: error: undefined macro: B_AC_FOO
configure.ac:8: error: undefined macro: AS_FOO
+configure.ac:9: error: undefined macro: _AS_BAR
]])
AT_CLEANUP(configure err)
@@ -242,7 +243,7 @@
NOT_FORBIDDEN FORBIDDEN FORBIDDEN_NOT
# Test Autoconf's patterns.
-AC_THIS_IS_INVALID and AZ_THIS_IS_INVALID_TOO
+AC_THIS_IS_INVALID and _AC_THIS_IS_INVALID_TOO
BUT_AZ_THIS_IS_NOT ALTHOUGH_AC_THIS_IS
# This is legal, although there is `AC_DEFINE' in there.
BAC_DEFINE
@@ -256,7 +257,7 @@
AT_CHECK([sort <err], 0,
[[configure.ac:10: error: undefined macro: FORBIDDEN
configure.ac:14: error: undefined macro: AC_THIS_IS_INVALID
-configure.ac:14: error: undefined macro: AZ_THIS_IS_INVALID_TOO
+configure.ac:14: error: undefined macro: _AC_THIS_IS_INVALID_TOO
configure.ac:15: error: undefined macro: ALTHOUGH_AC_THIS_IS
configure.ac:7: error: undefined macro: AC_ALLOWED_NOT
configure.ac:7: error: undefined macro: NOT_AC_ALLOWED
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: A[CHUM],
Akim Demaille <=