This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

--enable-maintainer-mode for toplevel

After being bitten by inappropriate timestamps in the top-level
configure file one too many times (and not willing to recommend the
use of gcc's contrib/gcc_update for the src tree), I went ahead and
disabled the timestamp dependencies of the top-level and
configure unless --enable-maintainer-mode (borrowed from automake) is
used.  I'm checking this in mainline.  I considered back-porting this
to 3.3, but the rule to generate is already disabled by
default there, and configure is not generated, so we're ok there.

Index: ChangeLog
from  Alexandre Oliva  <aoliva at redhat dot com>

	* Introduce --enable-maintainer-mode.
	* configure: Rebuilt.
	* Makefile.tpl (, configure): Enable dependencies only
	for maintainer mode.
	* Rebuilt.

RCS file: /cvs/gcc/gcc/,v
retrieving revision 1.220
diff -u -p -r1.220
--- 16 Feb 2003 01:09:27 -0000 1.220
+++ 19 Feb 2003 23:18:16 -0000
@@ -2127,4 +2127,23 @@ AR_FOR_TARGET=${AR_FOR_TARGET}${extra_ar
+AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
+[  --enable-maintainer-mode enable make rules and dependencies not useful
+                          (and sometimes confusing) to the casual installer],
+      USE_MAINTAINER_MODE=$enableval,
+if test "$USE_MAINTAINER_MODE" = yes; then
Index: Makefile.tpl
RCS file: /cvs/gcc/gcc/Makefile.tpl,v
retrieving revision 1.33
diff -u -p -r1.33 Makefile.tpl
--- Makefile.tpl 18 Feb 2003 19:15:17 -0000 1.33
+++ Makefile.tpl 19 Feb 2003 23:18:17 -0000
@@ -1410,7 +1410,7 @@ multilib.out: maybe-all-gcc
 # Rebuilding, using autogen.
 AUTOGEN = autogen
-$(srcdir)/ # $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
+$(srcdir)/ @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
 	cd $(srcdir) && $(AUTOGEN) Makefile.def
 # Rebuilding Makefile.
@@ -1422,7 +1422,7 @@ config.status: configure $(gcc_version_t
 # Rebuilding configure.
 AUTOCONF = autoconf
-$(srcdir)/configure: $(srcdir)/ $(srcdir)/config/acx.m4
+$(srcdir)/configure: @MAINT@ $(srcdir)/ $(srcdir)/config/acx.m4
 	cd $(srcdir) && $(AUTOCONF)
Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                 aoliva at {redhat dot com,}
CS PhD student at IC-Unicamp        oliva at {lsd dot ic dot unicamp dot br,}
Free Software Evangelist                Professional serial bug killer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]