From e832a8a9d157e2e019bc11e5ef23d22c4d399a11 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 2 Jul 2003 22:20:32 +0000 Subject: [PATCH] * automake.in (cond_stack_else): Return FALSE if `if' was not used. (cond_stack_endif): Return TRUE if `if' was not used. Do not display $negate and $cond, they are irrelevant and maybe undefined. --- ChangeLog | 7 +++++++ automake.in | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e63d4badb..159c7db3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-07-03 Alexandre Duret-Lutz + + * automake.in (cond_stack_else): Return FALSE if `if' was not + used. + (cond_stack_endif): Return TRUE if `if' was not used. Do not + display $negate and $cond, they are irrelevant and maybe undefined. + 2003-07-02 Alexandre Duret-Lutz * lib/Automake/Variable.pm (_traverse_variable_recursively_worker): diff --git a/automake.in b/automake.in index c9e25daaf..583fad20b 100755 --- a/automake.in +++ b/automake.in @@ -5435,7 +5435,7 @@ sub cond_stack_else ($$$) if (! @cond_stack) { error $where, "else without if"; - return; + return FALSE; } $cond_stack[$#cond_stack] = @@ -5465,8 +5465,8 @@ sub cond_stack_endif ($$$) if (! @cond_stack) { - error $where, "endif without if: $negate$cond"; - return; + error $where, "endif without if"; + return TRUE; } # If $COND is given, check against it. -- 2.47.2