* automake.in (check_libobjs_sources): Re-fixed AMDEP_TRUE
authorTom Tromey <tromey@redhat.com>
Tue, 8 May 2001 18:30:45 +0000 (18:30 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 8 May 2001 18:30:45 +0000 (18:30 +0000)
problem.

* automake.in (file_contents_internal): Prototype now `$$%'.
(register_language): Prototype now `%'.

ChangeLog
automake.in

index c7d115c..9c8737a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2001-05-08  Tom Tromey  <tromey@redhat.com>
 
+       * automake.in (check_libobjs_sources): Re-fixed AMDEP_TRUE
+       problem.
+
+       * automake.in (file_contents_internal): Prototype now `$$%'.
+       (register_language): Prototype now `%'.
+
        Fixes test subobj6.test and PR automake/160:
        * tests/Makefile.am (XFAIL_TESTS): Removed subobj6.test.
        * compile.am (mostlyclean-compile): Added MOSTLYRMS.
index e69e318..ab93948 100755 (executable)
@@ -654,8 +654,8 @@ my $get_object_extension_was_run;
 ## --------------------------------- ##
 ## Forward subroutine declarations.  ##
 ## --------------------------------- ##
-sub register_language ($%);
-sub file_contents_internal ($%);
+sub register_language (%);
+sub file_contents_internal ($$%);
 
 
 # &initialize_per_input ()
@@ -1796,7 +1796,10 @@ sub check_libobjs_sources
            $output_rules .= "\n";
            foreach my $iter (@deplist)
            {
-               $output_rules .= '@AMDEP_TRUE@@_am_include@ ' . $iter . "\n";
+               # The strange concatentation is used to avoid
+               # substitutions from our own configure.
+               $output_rules .= ('@AMDEP' . '_TRUE@@_am_include@ '
+                                 . $iter . "\n");
            }
 
            $output_rules .= &file_contents ('depend');
@@ -5378,9 +5381,9 @@ sub saw_sources_p
 
 # register_language (%ATTRIBUTE)
 # ------------------------------
-# Register a single language.  LANGUAGE is the name of the language.
+# Register a single language.
 # Each %ATTRIBUTE is of the form ATTRIBUTE => VALUE.
-sub register_language ($%)
+sub register_language (%)
 {
     my (%option) = @_;
 
@@ -6946,7 +6949,7 @@ sub make_paragraphs ($%)
 # Return contents of a file from $am_dir, automatically skipping
 # macros or rules which are already known. $IS_AM iff the caller is
 # reading an Automake file (as opposed to the user's Makefile.am).
-sub file_contents_internal ($%)
+sub file_contents_internal ($$%)
 {
     my ($is_am, $file, %transform) = @_;