]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* automake.in (handle_texinfo): Prepend $(srcdir) to directory
authorTom Tromey <tromey@redhat.com>
Sun, 10 Jan 1999 17:27:08 +0000 (17:27 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 10 Jan 1999 17:27:08 +0000 (17:27 +0000)
used to find texinfo.tex.  Report from Glenn Amerine.

ChangeLog
automake.in

index 75ef7ea97037d29c5dd74567734a4905ba3ec12a..a467c0506ee8ba1fa359cec629c7153ae2fedca7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-01-10  Tom Tromey  <tromey@cygnus.com>
+
+       * automake.in (handle_texinfo): Prepend $(srcdir) to directory
+       used to find texinfo.tex.  Report from Glenn Amerine.
+
 1999-01-07  Tom Tromey  <tromey@cygnus.com>
 
        Based on report from Marcus G. Daniels.  Fixes include.test.
index d8715563b6b6a010a14d982a7520f988044f1e4f..278ba47c8d227edc97b7aa55435cc4ddfbebfd92 100755 (executable)
@@ -2000,26 +2000,32 @@ sub handle_texinfo
 
     # Handle location of texinfo.tex.
     local ($need_texi_file) = 0;
+    local ($texinfo_tex);
     if ($cygnus_mode)
     {
-       &define_variable ('TEXINFO_TEX',
-                         '$(top_srcdir)/../texinfo/texinfo.tex');
+       $texinfo_tex = '$(top_srcdir)/../texinfo/texinfo.tex';
+       &define_variable ('TEXINFO_TEX', $texinfo_tex);
+
     }
     elsif ($config_aux_dir ne '.' && $config_aux_dir ne '')
     {
-       &define_variable ('TEXINFO_TEX', $config_aux_dir . '/texinfo.tex');
+       $texinfo_tex = $config_aux_dir . '/texinfo.tex';
+       &define_variable ('TEXINFO_TEX', $texinfo_tex);
     }
     elsif (&variable_defined ('TEXINFO_TEX'))
     {
        # The user defined TEXINFO_TEX so assume he knows what he is
        # doing.
+       $texinfo_tex = ('$(srcdir)/'
+                       . &dirname (&variable_value ('TEXINFO_TEX')));
     }
     else
     {
+       $texinfo_tex = '.';
        $need_texi_file = 1;
     }
-    local ($xxform) = &dirname (&variable_value ('TEXINFO_TEX'));
-    $xxform =~ s/(\W)/\\$1/g;
+    local ($xxform);
+    ($xxform = $texinfo_tex) =~ s/(\W)/\\$1/g;
     $xform .= ' s/\@TEXINFODIR\@/' . $xxform . '/g;';
 
     $output_rules .= &file_contents_with_transform ($xform, 'texinfos');