A couple fixes from Per Cederqvist
authorTom Tromey <tromey@redhat.com>
Wed, 16 Sep 1998 04:23:41 +0000 (04:23 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 16 Sep 1998 04:23:41 +0000 (04:23 +0000)
ChangeLog
THANKS
automake.in
tests/ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/texinfo7.test [new file with mode: 0755]

index 24835c3..a5a6fad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+Mon Sep 14 08:27:38 1998  Per Cederqvist  <ceder@lysator.liu.se>
+
+       * automake.in (handle_texinfo): The logic for when to provide
+       texinfo.tex was broken.  Attempt to fix.
+
+Mon Sep 14 00:55:12 1998  Per Cederqvist  <ceder@lysator.liu.se>
+
+       Fix for Dynix 3.1.1.
+       * automake.in (handle_yacc_lex_cxx): Transform "# " to "#line";
+       some compilers (such as /bin/cc on Dynix 3.1.1) don't accept the
+       output from the preprocessor.
+
 Tue Aug 25 18:40:51 1998  Tom Tromey  <tromey@cygnus.com>
 
        * automake.in (handle_tests): Don't create site.exp target if it
diff --git a/THANKS b/THANKS
index 4da75b5..e532f51 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -61,6 +61,7 @@ Nyul Laszlo           nyul@sol.cc.u-szeged.hu
 Paul D. Smith          psmith@BayNetworks.COM
 Paul Eggert            eggert@twinsun.com
 Per Bothner            bothner@cygnus.com
+Per Cederqvist         ceder@lysator.liu.se
 Peter Mattis           petm@scam.XCF.Berkeley.EDU
 Phil Nelson            phil@cs.wwu.edu
 Ralph Schleicher       rs@purple.UL.BaWue.DE
index dd90e16..7cb9c8b 100755 (executable)
@@ -1035,6 +1035,7 @@ sub handle_yacc_lex_cxx
                              . '`if test -f $(srcdir)/' . $base . '.c'
                              . '; then echo $(srcdir)/' . $base . '.c'
                              . '; else echo ' . $base . '.c; fi` '
+                             . "| sed 's/^# \\([0-9]\\)/#line \\1/' "
                              . '| $(ANSI2KNR) > ' . $base . "_.c\n");
            push (@objects, $base . '_.o');
            push (@objects, $base . '_.lo') if $seen_libtool;
@@ -2150,9 +2151,10 @@ sub handle_texinfo
     {
        &define_variable ('TEXINFO_TEX', $config_aux_dir . '/texinfo.tex');
     }
-    elsif (&variable_defined ('TEXINFO_TEX'))
+    elsif (&variable_defined ('TEXINFO_TEX'))
     {
-       &define_variable ('TEXINFO_TEX', '$(srcdir)/texinfo.tex');
+       # The user defined TEXINFO_TEX so assume he knows what he is
+       # doing.
     }
     else
     {
index 7da2b40..ac17623 100644 (file)
@@ -1,3 +1,7 @@
+Tue Sep 15 22:19:48 1998  Tom Tromey  <tromey@cygnus.com>
+
+       * texinfo7.test: New file.
+
 Sun Aug 16 23:17:38 1998  Tom Tromey  <tromey@cygnus.com>
 
        * colon6.test: New file.
index 18457f9..aa3f33c 100644 (file)
@@ -32,7 +32,7 @@ texinfo5.test aclocali.test texinfo6.test condman2.test colon4.test \
 java.test sinclude.test javaprim.test javasubst.test aclocalii.test \
 lex2.test libobj8.test version3.test instdata.test exdir2.test \
 colon5.test library.test syntax.test cond4.test cond5.test recurs.test \
-ansi3.test cond6.test colon6.test
+ansi3.test cond6.test colon6.test texinfo7.test
 
 EXTRA_DIST = defs $(TESTS)
 
index 50d83be..885d166 100644 (file)
@@ -95,7 +95,7 @@ texinfo5.test aclocali.test texinfo6.test condman2.test colon4.test \
 java.test sinclude.test javaprim.test javasubst.test aclocalii.test \
 lex2.test libobj8.test version3.test instdata.test exdir2.test \
 colon5.test library.test syntax.test cond4.test cond5.test recurs.test \
-ansi3.test cond6.test colon6.test
+ansi3.test cond6.test colon6.test texinfo7.test
 
 EXTRA_DIST = defs $(TESTS)
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
diff --git a/tests/texinfo7.test b/tests/texinfo7.test
new file mode 100755 (executable)
index 0000000..b981213
--- /dev/null
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+# Test to make sure texinfo.tex correctly installed by -a.  Bug report
+# by Per Cederqvist.
+
+. $srcdir/defs || exit 1
+
+cat > Makefile.am << 'END'
+info_TEXINFOS = textutils.texi
+magic:
+       @echo $(DISTFILES)
+END
+
+echo '@setfilename textutils.info' > textutils.texi
+
+$AUTOMAKE -a || exit 1
+
+test -f texinfo.tex