]> sourceware.org Git - automake.git/commitdiff
* automake.in (&variable_conditions_sub)
authorAkim Demaille <akim@epita.fr>
Mon, 9 Apr 2001 08:59:49 +0000 (08:59 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 9 Apr 2001 08:59:49 +0000 (08:59 +0000)
(&variable_value_as_list_worker): Remove dead code which used to
handle the cases where not all variables were in %conditional.

ChangeLog
automake.in

index 0df15b8b409325962ca001d7c33629ab80271ddc..bda0ffcb47025ca64d966340ec3ab47aa5014151 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-04-09  Akim Demaille  <akim@epita.fr>
+
+       * automake.in (&variable_conditions_sub)
+       (&variable_value_as_list_worker): Remove dead code which used to
+       handle the cases where not all variables were in %conditional.
+
 2001-04-09  Akim Demaille  <akim@epita.fr>
 
        * automake.in (&handle_source_transform, &read_main_am_file):
index 2b17d2096a210e04b09cf7986e5e540c8fcd3458..7241cd88679767f22a57f8e483ff93c70a2e3655 100755 (executable)
@@ -5794,40 +5794,6 @@ sub variable_conditions_sub
     }
     $vars_scanned{$var} = 1;
 
-    if (! $variable_conditionally_defined{$var})
-    {
-       foreach (split (' ', $conditional{$var}{'TRUE'}))
-       {
-           # If a comment seen, just leave.
-           last if /^#/;
-
-           # Handle variable substitutions.
-           if (/^\$\{(.*)\}$/ || /^\$\((.*)\)$/)
-           {
-               push (@new_conds,
-                     &variable_conditions_sub ($1, $var, @parent_conds));
-           }
-       }
-
-       # Now we want to return all permutations of the subvariable
-       # conditions.
-       my %allconds = ();
-       foreach my $item (@new_conds)
-       {
-           foreach (split (' ', $item))
-           {
-               s/_(TRUE|FALSE)$//;
-               $allconds{$_ . '_TRUE'} = 1;
-           }
-       }
-
-       # Unset our entry in vars_scanned.  We only care about recursive
-       # definitions.
-       delete $vars_scanned{$var};
-
-       return &variable_conditions_permutations (sort keys %allconds);
-    }
-
     my @this_conds = ();
     foreach my $vcond (keys %{$conditional{$var}})
     {
@@ -6102,7 +6068,7 @@ sub variable_value_as_list_worker
        # variables we've already examined.
        &am_line_error ($parent, "variable `$var' recursively defined");
     }
-    elsif ($cond eq 'all' && $conditional{$var})
+    elsif ($cond eq 'all')
     {
        $vars_scanned{$var} = 1;
        foreach my $vcond (keys %{$conditional{$var}})
@@ -6111,8 +6077,9 @@ sub variable_value_as_list_worker
            push (@result, &value_to_list ($var, $val, $cond));
        }
     }
-    elsif ($cond && $conditional{$var})
+    else
     {
+        $cond ||= 'TRUE';
        $vars_scanned{$var} = 1;
        my $onceflag;
        foreach my $vcond (keys %{$conditional{$var}})
@@ -6129,13 +6096,6 @@ sub variable_value_as_list_worker
            }
        }
     }
-    else
-    {
-       $vars_scanned{$var} = 1;
-       &check_variable_defined_unconditionally ($var, $parent);
-       $content_seen{$var} = 1;
-       push (@result, &value_to_list ($var, $conditional{$var}{'TRUE'}, $cond));
-    }
 
     # Unset our entry in vars_scanned.  We only care about recursive
     # definitions.
This page took 0.034506 seconds and 5 git commands to generate.