* m4sugar.m4 (m4_fatal): Dump the expansion stack.

* acgeneral.m4 (AC_FATAL): Use m4_fatal.
This commit is contained in:
Akim Demaille 2000-11-01 16:33:18 +00:00
parent 4b19491f44
commit 429b2e9e9d
5 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2000-11-01 Akim Demaille <akim@epita.fr>
* m4sugar.m4 (m4_fatal): Dump the expansion stack.
* acgeneral.m4 (AC_FATAL): Use m4_fatal.
2000-11-01 Akim Demaille <akim@epita.fr>
Move the `defun' handling into M4sugar.

View File

@ -2208,9 +2208,7 @@ define([AC_WARNING],
# AC_FATAL(MESSAGE, [EXIT-STATUS])
# --------------------------------
define([AC_FATAL],
[m4_errprint(m4_location[: $1])
_m4_expansion_stack_dump()
m4exit(m4_default([$2], [1]))])
[m4_fatal($@)])

View File

@ -2208,9 +2208,7 @@ define([AC_WARNING],
# AC_FATAL(MESSAGE, [EXIT-STATUS])
# --------------------------------
define([AC_FATAL],
[m4_errprint(m4_location[: $1])
_m4_expansion_stack_dump()
m4exit(m4_default([$2], [1]))])
[m4_fatal($@)])

View File

@ -110,6 +110,7 @@ define([m4_warning],
# Fatal the user. :)
define([m4_fatal],
[m4_errprint(m4_location[: error: $1])dnl
m4_expansion_stack_dump()dnl
m4exit(ifelse([$2],, 1, [$2]))])

View File

@ -110,6 +110,7 @@ define([m4_warning],
# Fatal the user. :)
define([m4_fatal],
[m4_errprint(m4_location[: error: $1])dnl
m4_expansion_stack_dump()dnl
m4exit(ifelse([$2],, 1, [$2]))])