autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

autoscan failure: do not walk subpackages


From: Ralf Wildenhues
Subject: autoscan failure: do not walk subpackages
Date: Mon, 15 Aug 2005 18:21:16 +0200
User-agent: Mutt/1.4.1i

The following reveals an apparent bug in `autoscan', without fixing it.
I'm sorry, after not sending it right away I forgot about it.  The
original bug report was this:
http://lists.gnu.org/archive/html/bug-libtool/2005-04/msg00139.html

Autoscan should not include Makefile's of subpackages in its output's
AC_CONFIG_FILES.

Cheers,
Ralf

        * tests/autoscan.at (autoscan): New file.  Test autoscan
        traversal of subpackages Makefile's.
        Reported against Libtool by Gideon Go <address@hidden>.

--- /dev/null   2005-08-03 12:45:51.659987528 +0200
+++ tests/autoscan.at   2005-04-21 09:52:31.000000000 +0200
@@ -0,0 +1,49 @@
+#                                                      -*- Autotest -*-
+
+AT_BANNER([Autoscan.])
+
+# Copyright (C) 2005 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 2, 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+# 02111-1307, USA.
+
+AT_SETUP([autoscan])
+
+AT_DATA([Makefile.am],
+[[SUBDIRS = subpkg
+]])
+
+AT_DATA([configure.ac],
+[[AC_INIT
+AC_PREREQ(2.59)
+AM_INIT_AUTOMAKE(foreign)
+AC_CONFIG_SUBDIRS(subpkg)
+AC_CONFIG_FILES(Makefile)
+AC_OUTPUT
+]])
+
+mkdir subpkg
+
+AT_DATA([subpkg/Makefile.am], [])
+AT_DATA([subpkg/configure.ac],
+[[AC_INIT
+AM_INIT_AUTOMAKE(foreign)
+AC_CONFIG_FILES(Makefile)
+AC_OUTPUT
+]])
+AT_CHECK([autoscan])
+AT_CHECK([grep subpkg/Makefile configure.scan], [1], [], [ignore])
+
+AT_CLEANUP
Index: tests/Makefile.am
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/Makefile.am,v
retrieving revision 1.96
diff -u -r1.96 Makefile.am
--- tests/Makefile.am   3 Jun 2005 13:47:56 -0000       1.96
+++ tests/Makefile.am   14 Aug 2005 14:41:55 -0000
@@ -91,6 +91,7 @@
        base.at tools.at torture.at \
        compile.at c.at fortran.at \
        semantics.at \
+       autoscan.at \
        foreign.at
 
 TESTSUITE_AT = $(TESTSUITE_GENERATED_AT) $(TESTSUITE_HAND_AT)
Index: tests/suite.at
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/suite.at,v
retrieving revision 1.31
diff -u -r1.31 suite.at
--- tests/suite.at      14 May 2005 07:00:41 -0000      1.31
+++ tests/suite.at      14 Aug 2005 14:41:55 -0000
@@ -72,3 +72,6 @@
 
 # Compatibility with foreign tools.
 m4_include([foreign.at])
+
+# Autoscan test
+m4_include([autoscan.at])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]