From: Tom Tromey Date: Mon, 9 Nov 1998 15:13:34 +0000 (+0000) Subject: * automake.in (read_am_file): `conditional_stack' isn't a X-Git-Tag: Release-1-3d~22 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=8a4666e43409215d1d128aade8e11bc7021fa114;p=automake.git * automake.in (read_am_file): `conditional_stack' isn't a function. Correctly add new value to existing value in `+=' case. --- diff --git a/ChangeLog b/ChangeLog index ba8e89fe..b858327a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1998-11-09 Tom Tromey + + * automake.in (read_am_file): `conditional_stack' isn't a + function. Correctly add new value to existing value in `+=' + case. + 1998-10-29 Gary V. Vaughan * automake.in (parse_arguments): Fixed type of -c for copying diff --git a/automake.in b/automake.in index 21fc180a..c68b6a5a 100755 --- a/automake.in +++ b/automake.in @@ -5843,8 +5843,7 @@ sub read_am_file if (@conditional_stack) { local ($found) = 0; - local ($val) = $contents{$last_var_name}; - $val = "e_cond_val ($val); + local ($val); if ($conditional{$last_var_name}) { if ($type eq '+') @@ -5858,11 +5857,12 @@ sub read_am_file { local ($vcond) = shift (@cond_vals); push (@new_vals, $vcond); - if (&conditional_stack ($vcond, $cond_string)) + if (&conditional_same ($vcond, $cond_string)) { $found = 1; - shift (@cond_vals); - push (@new_vals, $val); + $val = (&unquote_cond_val (shift (@cond_vals)) + . ' ' . $value); + push (@new_vals, "e_cond_val ($val)); } else { @@ -5881,17 +5881,19 @@ sub read_am_file &check_ambiguous_conditional ($last_var_name, $cond_string); $conditional{$last_var_name} .= ' '; + $val = $value; } } else { $conditional{$last_var_name} = ''; + $val = $contents{$last_var_name}; } if (! $found) { $conditional{$last_var_name} .= ($cond_string . ' ' - . $val); + . "e_cond_val ($val)); } }