From: Tom Tromey Date: Wed, 6 Aug 1997 01:24:26 +0000 (+0000) Subject: ignore vars with config subs in their names X-Git-Tag: v1.10.2~3078 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1216896a75a4126ed14a6e565e88609bc8e96ec;p=platform%2Fupstream%2Fautomake.git ignore vars with config subs in their names --- diff --git a/ChangeLog b/ChangeLog index 9d6105f..c2355c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Tue Aug 5 17:49:54 1997 Tom Tromey + * automake.in (value_to_list): If variable name contains configure + substitution, then just ignore it. + * automake.in (variable_defined): Mark variable is seen, even if only conditionally seen. diff --git a/automake.in b/automake.in index 479f1c5..48793c9 100755 --- a/automake.in +++ b/automake.in @@ -1809,7 +1809,8 @@ sub check_typos local ($varname, $primary); foreach $varname (keys %contents) { - foreach $primary ('_SOURCES', '_LIBADD', '_LDADD', '_LDFLAGS', '_DEPENDENCIES') + foreach $primary ('_SOURCES', '_LIBADD', '_LDADD', '_LDFLAGS', + '_DEPENDENCIES') { if ($varname =~ /$primary$/ && ! $content_seen{$varname}) { @@ -4694,6 +4695,11 @@ sub value_to_list if (/^\$\{([^}]*)\}$/ || /^\$\(([^)]*)\)$/) { local ($varname) = $1; + + # If the user uses a losing variable name, just ignore it. + # This isn't ideal, but people have requested it. + next if ($varname =~ /\@.*\@/); + local ($from, $to); local (@temp_list); if ($varname =~ /^([^:]*):([^=]*)=(.*)$/)