library dependency bug reported by proven
authorTom Tromey <tromey@redhat.com>
Sun, 5 Apr 1998 21:36:12 +0000 (21:36 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 5 Apr 1998 21:36:12 +0000 (21:36 +0000)
ChangeLog
THANKS
automake.in
tests/ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/library.test [new file with mode: 0755]

index 2eb634f..cddebca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 Sun Apr  5 13:58:24 1998  Tom Tromey  <tromey@cygnus.com>
 
+       * automake.in (handle_ltlibraries): Examine _DEPENDENCIES
+       variable.  Report from Chris Provenzano.  Test library.test.
+       (handle_libraries): Likewise.
+
        * m4/lex.m4: Allow AM_PROG_LEX to be called with no arguments.
 
 Sun Apr  5 13:54:25 1998  Alexandre Oliva <oliva@dcc.unicamp.br>
diff --git a/THANKS b/THANKS
index 2d5b4b0..b249494 100644 (file)
--- a/THANKS
+++ b/THANKS
@@ -10,6 +10,7 @@ Anthony Green         green@cygnus.com
 Assar Westerlund       assar@sics.se
 Bernard Urban          Bernard.Urban@meteo.fr
 Bill Fenner            fenner@parc.xerox.com
+Chris Provenzano       proven@io.proven.org
 David A. Swierczek     swiercze@mr.med.ge.com
 David Zaroski          cz253@cleveland.Freenet.Edu
 Dieter Baron           dillo@stieltjes.smc.univie.ac.at
index 7a7e87a..b4fa524 100755 (executable)
@@ -1735,6 +1735,9 @@ sub handle_libraries
                            . $xlib . "_LDADD'");
        }
 
+       # Make sure we at look at this.
+       &examine_variable ($xlib . '_DEPENDENCIES');
+
        &handle_source_transform ($xlib, $onelib, $obj);
 
        $output_rules .=
@@ -1849,6 +1852,9 @@ sub handle_ltlibraries
                            . $xlib . "_LDADD'");
        }
 
+       # Make sure we at look at this.
+       &examine_variable ($xlib . '_DEPENDENCIES');
+
        local ($linker) = &handle_source_transform ($xlib, $onelib, $obj);
 
        # Determine program to use for link.
index 0810607..f49d630 100644 (file)
@@ -1,5 +1,7 @@
 Sun Apr  5 15:26:42 1998  Tom Tromey  <tromey@cygnus.com>
 
+       * library.test: New file.
+
        * lex2.test: Updated since lex error changed to warning.
 
 Fri Apr  3 13:04:50 1998  Tom Tromey  <tromey@cygnus.com>
index 45f26b4..eadfd75 100644 (file)
@@ -31,7 +31,7 @@ aclocal.test alpha.test whoami.test unused.test condman.test \
 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
+colon5.test library.test
 
 EXTRA_DIST = defs $(TESTS)
 
index 63477ba..e3c733a 100644 (file)
@@ -94,7 +94,7 @@ aclocal.test alpha.test whoami.test unused.test condman.test \
 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
+colon5.test library.test
 
 EXTRA_DIST = defs $(TESTS)
 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
diff --git a/tests/library.test b/tests/library.test
new file mode 100755 (executable)
index 0000000..0dcbcea
--- /dev/null
@@ -0,0 +1,20 @@
+#! /bin/sh
+
+# Test for _DEPENDENCIES with libraries.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_RANLIB
+AM_MAINTAINER_MODE
+AM_EXEEXT
+AC_PROG_CC
+END
+
+cat > Makefile.am << 'END'
+AUTOMAKE_OPTIONS = dejagnu cygnus
+lib_LIBRARIES = libfoo.a
+libfoo_a_DEPENDENCIES = libzot.a
+END
+
+$AUTOMAKE