Cleanup config.lt in case LT_OUTPUT is in use.
authorCharles Wilson <libtool@cwilson.fastmail.fm>
Tue, 11 Nov 2008 22:34:47 +0000 (23:34 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 12 Nov 2008 05:33:22 +0000 (06:33 +0100)
* lib/am/libtool.am [TOPDIR_P] (distclean-libtool): clean up
config.lt as well as libtool.
* tests/libtoo11.test: New test.
* tests/Makefile.am: Update.
* NEWS: Update.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
NEWS
lib/am/libtool.am
tests/Makefile.am
tests/Makefile.in
tests/libtoo11.test [new file with mode: 0755]

index dd3caa5..8dd1158 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2008-11-11 Charles Wilson  <libtool@cwilson.fastmail.fm>  (tiny change)
+          Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Cleanup config.lt in case LT_OUTPUT is in use.
+       * lib/am/libtool.am [TOPDIR_P] (distclean-libtool): clean up
+       config.lt as well as libtool.
+       * tests/libtoo11.test: New test.
+       * tests/Makefile.am: Update.
+       * NEWS: Update.
+
 2008-11-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * INSTALL, lib/INSTALL, lib/config.guess, lib/config.sub,
diff --git a/NEWS b/NEWS
index 2bcb448..7ccc3e1 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -23,6 +23,9 @@ New in 1.10a:
   - Libtool generic flags are now passed to the install and uninstall
     modes as well.
 
+  - distcheck works with Libtool 2.x even when LT_OUTPUT is used, as
+    config.lt is removed correctly now.
+
 * Languages changes:
 
   - subdir-object mode works now with Fortran (F77, FC, preprocessed
index 103f4d0..d565b69 100644 (file)
@@ -1,6 +1,6 @@
 ## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2003, 2005
-## Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2003, 2005,
+## 2008  Free Software Foundation, Inc.
 
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -26,4 +26,4 @@ clean-libtool:
 
 ?TOPDIR_P?distclean-am: distclean-libtool
 ?TOPDIR_P?distclean-libtool:
-?TOPDIR_P?     -rm -f libtool
+?TOPDIR_P?     -rm -f libtool config.lt
index 52c37c5..023e1f7 100644 (file)
@@ -357,6 +357,7 @@ libtool7.test \
 libtool8.test \
 libtool9.test \
 libtoo10.test \
+libtoo11.test \
 license.test \
 link_c_cxx.test        \
 link_dist.test \
index 04d205c..4207f6c 100644 (file)
@@ -510,6 +510,7 @@ libtool7.test \
 libtool8.test \
 libtool9.test \
 libtoo10.test \
+libtoo11.test \
 license.test \
 link_c_cxx.test        \
 link_dist.test \
diff --git a/tests/libtoo11.test b/tests/libtoo11.test
new file mode 100755 (executable)
index 0000000..030e2d3
--- /dev/null
@@ -0,0 +1,38 @@
+#! /bin/sh
+# Copyright (C) 2008  Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# Make sure config.lt is removed with Libtool 2.2.x's LT_OUTPUT.
+# Report by Charles Wilson.
+
+required=libtoolize
+. ./defs || Exit 1
+set -e
+
+cat >> configure.in << 'END'
+AC_PROG_LIBTOOL
+m4_ifdef([LT_OUTPUT], [LT_OUTPUT])
+AC_OUTPUT
+END
+
+: > Makefile.am
+
+libtoolize
+$ACLOCAL
+$AUTOMAKE --add-missing
+$AUTOCONF
+./configure
+$MAKE distcheck
+: