From 992d1ef0b886c8c4b4f13c56fe90546e37786585 Mon Sep 17 00:00:00 2001 From: Stepan Kasal Date: Wed, 27 Jul 2005 13:46:20 +0000 Subject: [PATCH] fix a doubled pushdef --- ChangeLog | 5 +++++ lib/autotest/general.m4 | 14 ++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 29acbbb9..09fd01ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-07-27 Stepan Kasal + + * lib/autotest/general.m4 (_AT_DECIDE_TRACEABLE): The symbol at_reason + was pushdef'ed twice while popped only once. Push it only once. + 2005-07-26 Stepan Kasal * lib/autoconf/status.m4 (_AC_OUTPUT_SUBDIRS): The message is now diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4 index 29d43412..e8f21aaf 100644 --- a/lib/autotest/general.m4 +++ b/lib/autotest/general.m4 @@ -1334,16 +1334,18 @@ m4_define([AT_CHECK_NOESCAPE], # examine COMMANDS unexpanded. m4_define([_AT_DECIDE_TRACEABLE], [dnl Utility macros. -m4_pushdef([at_reason])[]dnl m4_pushdef([at_lf], [ ])[]dnl dnl dnl Examine COMMANDS for a reason to never trace COMMANDS. -m4_bmatch([$1], - [`.*`], [m4_pushdef([at_reason], [a `...` command substitution])], - [\$(], [m4_pushdef([at_reason], [a $(...) command substitution])], - [\${], [m4_pushdef([at_reason], [a ${...} parameter expansion])], - at_lf, [m4_pushdef([at_reason], [an embedded newline])])[]dnl +m4_pushdef([at_reason], + m4_bmatch([$1], + [`.*`], [[a `...` command substitution]], + [\$(], [[a $(...) command substitution]], + [\${], [[a ${...} parameter expansion]], + at_lf, [[an embedded newline]], + [[]]dnl No reason. +))dnl dnl m4_ifval(m4_defn([at_reason]), [echo 'Not enabling shell tracing (command contains ]m4_defn([at_reason])[)'],