From: Paul Eggert Date: Sat, 3 Dec 2011 20:19:03 +0000 (-0800) Subject: Propagate configure flags to sub-configures. X-Git-Tag: emacs-pretest-24.0.93~232^2~18 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6c269a38ccd8277a1ecc727db013da020d5dec8a;p=emacs.git 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. --- diff --git a/ChangeLog b/ChangeLog index b7deb4e4dde..2d17eedd518 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2011-12-03 Paul Eggert + + 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 * .bzrignore: Add config.cache. diff --git a/Makefile.in b/Makefile.in index c0d108877c1..3ba7c9baae7 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 diff --git a/configure.in b/configure.in index b7dfa8eb39e..20dbf2b509e 100644 --- a/configure.in +++ b/configure.in @@ -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])