+2001-03-23 Akim Demaille <akim@epita.fr>
+
+ * automake.in (&read_am_file, &file_contents): Avoid name clashes
+ on $cond.
+
2001-03-23 Akim Demaille <akim@epita.fr>
* automake.in (&variable_conditionally_defined): Rename as...
}
elsif (/$IF_PATTERN/o)
{
- my $cond = $1;
- &am_line_error ($., "$cond does not appear in AM_CONDITIONAL")
- if ! $configure_cond{$cond} && $cond !~ /^TRUE|FALSE$/;
+ my $new_cond = $1;
+ &am_line_error ($., "$new_cond does not appear in AM_CONDITIONAL")
+ if ! $configure_cond{$new_cond} && $new_cond !~ /^TRUE|FALSE$/;
push (@conditional_stack,
- ($cond =~ /^TRUE|FALSE$/) ? "$cond" : "${cond}_TRUE");
+ (($new_cond =~ /^TRUE|FALSE$/)
+ ? "$new_cond" : "${new_cond}_TRUE"));
$cond = conditional_string (@conditional_stack);
}
elsif (/$ELSE_PATTERN/o)
# Handling the conditionals.
elsif (/$IF_PATTERN/o)
{
- my $cond = $1;
- &am_line_error ($., "$cond does not appear in AM_CONDITIONAL")
- if ! $configure_cond{$cond} && $cond !~ /^TRUE|FALSE$/;
+ my $new_cond = $1;
+ &am_line_error ($., "$new_cond does not appear in AM_CONDITIONAL")
+ if ! $configure_cond{$new_cond} && $new_cond !~ /^TRUE|FALSE$/;
push (@cond_stack,
- ($cond =~ /^TRUE|FALSE$/) ? "$cond" : "${cond}_TRUE");
+ ($new_cond =~ /^TRUE|FALSE$/) ? "$new_cond" : "${new_cond}_TRUE");
$cond = conditional_string (@cond_stack);
}
elsif (/$ELSE_PATTERN/o)