]> git.eshelyaron.com Git - emacs.git/commitdiff
Propagate configure flags to sub-configures.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 3 Dec 2011 20:19:03 +0000 (12:19 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 3 Dec 2011 20:19:03 +0000 (12:19 -0800)
* Makefile.in (cache_file, ENABLE_MAINTAINER_MODE, CONFIGUREFLAGS):
New macros.
(config.status, bootstrap): Use them to propagate configure flags
to sub-configures.
* configure.in (cache_file): AC_SUBST this, for Makefile.in.

ChangeLog
Makefile.in
configure.in

index b7deb4e4ddea2a2c9edba042850437bce552cbf5..2d17eedd51827e4c0e3d51c95222d67f23d38e5a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-12-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Propagate configure flags to sub-configures.
+       * Makefile.in (cache_file, ENABLE_MAINTAINER_MODE, CONFIGUREFLAGS):
+       New macros.
+       (config.status, bootstrap): Use them to propagate configure flags
+       to sub-configures.
+       * configure.in (cache_file): AC_SUBST this, for Makefile.in.
+
 2011-12-03  Paul Eggert  <eggert@cs.ucla.edu>
 
        * .bzrignore: Add config.cache.
index c0d108877c11ba7d85e6cafc61ebca91069f27be..3ba7c9baae7aabb30c5bc8feb022048fe3fd09be 100644 (file)
@@ -66,6 +66,11 @@ CDPATH=
 
 # ==================== Things `configure' Might Edit ====================
 
+MAINTAINER_MODE_FLAG = --disable-maintainer-mode
+@MAINT@MAINTAINER_MODE_FLAG = --enable-maintainer-mode
+cache_file = @cache_file@
+CONFIGURE_FLAGS = --cache-file=$(cache_file) $(MAINTAINER_MODE_FLAG)
+
 CC=@CC@
 CFLAGS=@CFLAGS@
 LDFLAGS=@LDFLAGS@
@@ -404,7 +409,7 @@ config.status: ${srcdir}/configure ${srcdir}/lisp/version.el
        if [ -x ./config.status ]; then \
            ./config.status --recheck;  \
        else                            \
-           ./configure;                \
+           ./configure $(CONFIGURE_FLAGS); \
        fi
 
 AUTOCONF_INPUTS = @MAINT@ $(srcdir)/configure.in $(srcdir)/aclocal.m4
@@ -936,7 +941,7 @@ bootstrap: bootstrap-clean FRC
        if [ -x ./config.status ]; then           \
            ./config.status;                      \
        else                                      \
-           ./configure --enable-maintainer-mode; \
+           ./configure $(CONFIGURE_FLAGS);       \
        fi
        $(MAKE) $(MFLAGS) info all
 
index b7dfa8eb39e5203e5dbe28ffbc14e481cd6d6dd1..20dbf2b509e869431855fb20fed1ece7231244d3 100644 (file)
@@ -182,6 +182,9 @@ OPTION_DEFAULT_ON([gnutls],[don't use -lgnutls for SSL/TLS support])
 dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html
 OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals])
 
+## Makefile.in needs the cache file name.
+AC_SUBST(cache_file)
+
 ## This is an option because I do not know if all info/man support
 ## compressed files, nor how to test if they do so.
 OPTION_DEFAULT_ON([compress-info],[don't compress the installed Info pages])