autoconf-patches
[Top][All Lists]
Advanced

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

[PATCH] Fix autom4te.cfg problem with reconfiguring


From: Paolo Bonzini
Subject: [PATCH] Fix autom4te.cfg problem with reconfiguring
Date: Wed, 15 Jan 2003 14:12:32 +0100
User-agent: KMail/1.4.2

These commands

        ./configure --prefix=/usr/local
        make
        ./configure --prefix=/usr
        make
        make install

produce an unusable autoconf because autom4te.cfg is
not rebuilt.  Yes, one should do a make distclean just to
be sure, but since the cure is as easy as mentioning
Makefile in the dependencies of autom4te.cfg like
bin/Makefile.am does, I propose this patch:

2002-01-15  Paolo Bonzini  <address@hidden>

        * lib/Makefile.am: make autom4te.cfg depend on
        Makefile since it contains substitutions

diff -u lib/Makefile.am-save lib/Makefile.am
--- lib/Makefile.am-save    Wed Jan 15 14:06:06 2003
+++ lib/Makefile.am Wed Jan 15 14:06:26 2003
@@ -35,11 +35,11 @@
        -e 's,@VERSION\@,$(VERSION),g' \
        -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g'

-# All the files below depend on configure.ac so that they are rebuilt
-# when the Autoconf version changes. Unfortunately, suffix rules
+# All the files below depend on Makefile so that they are rebuilt
+# when the prefix, etc. changes. Unfortunately, suffix rules
 # cannot have additional dependencies, so we have to use explicit rules.
 CLEANFILES = autom4te.cfg
-autom4te.cfg: $(top_srcdir)/configure.ac $(srcdir)/autom4te.in
+autom4te.cfg: $(srcdir)/autom4te.in Makefile
        rm -f autom4te.cfg autom4te.tmp
        $(edit) $(srcdir)/autom4te.in >autom4te.tmp
        mv autom4te.tmp autom4te.cfg

Paolo Bonzini




reply via email to

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