]> sourceware.org Git - automake.git/commitdiff
* automake.in (&handle_source_transform): Use
authorAkim Demaille <akim@epita.fr>
Mon, 9 Apr 2001 09:06:14 +0000 (09:06 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 9 Apr 2001 09:06:14 +0000 (09:06 +0000)
&variable_conditions, don't read $conditional{$var}.
(&variable_conditions_sub): When the call is the top level call,
generate all the permutations of the conditions.

ChangeLog
automake.in

index 8045e581e6d413982ff764e191cf1e712749141b..87e7da9005707b1c476a14df51218b0e50e08790 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-04-09  Akim Demaille  <akim@epita.fr>
+
+       * automake.in (&handle_source_transform):  Use
+       &variable_conditions, don't read $conditional{$var}.
+       (&variable_conditions_sub): When the call is the top level call,
+       generate all the permutations of the conditions.
+
 2001-04-09  Akim Demaille  <akim@epita.fr>
 
        * depend2.am (@AMDEP@%FPFX%DEPMODE): Define it when GENERIC so
@@ -6,7 +13,6 @@
        * tests/vartar.test: s/INSTALL/install/g, automake now complains
        because we defined INSTALL.
 
-       
 2001-04-09  Akim Demaille  <akim@epita.fr>
 
        * automake.in (&generate_makefile) Use macro_define to define
index 4512a7b5cd5c7cb370ad5ceb2a8f54af96605976..b1956c22426b3f2ef3665b076967c4eea9dae8d3 100755 (executable)
@@ -1900,8 +1900,7 @@ sub handle_source_transform
                unless $prefix =~ /EXTRA_/;
            push (@dist_sources, '$(' . $prefix . $one_file . "_SOURCES)")
                unless $prefix =~ /^nodist_/;
-           variable_dump ($var);
-           foreach my $cond (keys %{$conditional{$var}})
+           foreach my $cond (variable_conditions ($var))
              {
                @files = &variable_value_as_list ($var, $cond);
                ($temp, @result) =
@@ -1926,9 +1925,10 @@ sub handle_source_transform
        push (@objects, $unxformed . $obj);
        push (@files, $unxformed . '.c');
 
-       ($temp, @result) = &handle_single_transform_list ($one_file . '_SOURCES',
-                                                         $one_file, $obj,
-                                                         @files);
+       ($temp, @result) =
+         &handle_single_transform_list ($one_file . '_SOURCES',
+                                        $one_file, $obj,
+                                        @files);
        $linker = $temp if $linker eq '';
        &define_pretty_variable ($one_file . "_OBJECTS", '', @result)
     }
@@ -5838,8 +5838,22 @@ sub variable_conditions_sub
     # definitions.
     delete $vars_scanned{$var};
 
-    return @new_conds
-       if ! $parent;
+    # If there are no parents, then this call is the top level call.
+    if (! $parent)
+      {
+       # Now we want to return all permutations of the subvariable
+       # conditions.
+       my %allconds = ();
+       foreach my $item (@new_conds)
+       {
+           foreach (split (' ', $item))
+           {
+               s/^(.*)_(TRUE|FALSE)$/$1_TRUE/;
+               $allconds{$_} = 1;
+           }
+       }
+       return &variable_conditions_permutations (sort keys %allconds);
+      }
 
     # If we are being called on behalf of another variable, we need to
     # return all possible permutations of the conditions.  We have
@@ -6563,7 +6577,6 @@ sub read_main_am_file
          if $done{$var};
        $done{$var} = 1;
 
-       variable_dump ($var);
        # Don't process Automake variables.
        next
          if $var_is_am{$var};
This page took 0.045396 seconds and 5 git commands to generate.