ignore vars with config subs in their names
authorTom Tromey <tromey@redhat.com>
Wed, 6 Aug 1997 01:24:26 +0000 (01:24 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 6 Aug 1997 01:24:26 +0000 (01:24 +0000)
ChangeLog
automake.in

index 9d6105f..c2355c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 Tue Aug  5 17:49:54 1997  Tom Tromey  <tromey@cygnus.com>
 
+       * 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.
 
index 479f1c5..48793c9 100755 (executable)
@@ -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 =~ /^([^:]*):([^=]*)=(.*)$/)