aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2011-12-03 12:19:03 -0800
committerPaul Eggert2011-12-03 12:19:03 -0800
commit6c269a38ccd8277a1ecc727db013da020d5dec8a (patch)
tree554d0cfea107ae56b615f4be1ba28f04348ce84e
parentc052ead41f5a53da9cc32e7697005fac3506a858 (diff)
downloademacs-6c269a38ccd8277a1ecc727db013da020d5dec8a.tar.gz
emacs-6c269a38ccd8277a1ecc727db013da020d5dec8a.zip
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.
-rw-r--r--ChangeLog9
-rw-r--r--Makefile.in9
-rw-r--r--configure.in3
3 files changed, 19 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b7deb4e4dde..2d17eedd518 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
12011-12-03 Paul Eggert <eggert@cs.ucla.edu> 12011-12-03 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Propagate configure flags to sub-configures.
4 * Makefile.in (cache_file, ENABLE_MAINTAINER_MODE, CONFIGUREFLAGS):
5 New macros.
6 (config.status, bootstrap): Use them to propagate configure flags
7 to sub-configures.
8 * configure.in (cache_file): AC_SUBST this, for Makefile.in.
9
102011-12-03 Paul Eggert <eggert@cs.ucla.edu>
11
3 * .bzrignore: Add config.cache. 12 * .bzrignore: Add config.cache.
4 13
52011-11-27 Jan Djärv <jan.h.d@swipnet.se> 142011-11-27 Jan Djärv <jan.h.d@swipnet.se>
diff --git a/Makefile.in b/Makefile.in
index c0d108877c1..3ba7c9baae7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -66,6 +66,11 @@ CDPATH=
66 66
67# ==================== Things `configure' Might Edit ==================== 67# ==================== Things `configure' Might Edit ====================
68 68
69MAINTAINER_MODE_FLAG = --disable-maintainer-mode
70@MAINT@MAINTAINER_MODE_FLAG = --enable-maintainer-mode
71cache_file = @cache_file@
72CONFIGURE_FLAGS = --cache-file=$(cache_file) $(MAINTAINER_MODE_FLAG)
73
69CC=@CC@ 74CC=@CC@
70CFLAGS=@CFLAGS@ 75CFLAGS=@CFLAGS@
71LDFLAGS=@LDFLAGS@ 76LDFLAGS=@LDFLAGS@
@@ -404,7 +409,7 @@ config.status: ${srcdir}/configure ${srcdir}/lisp/version.el
404 if [ -x ./config.status ]; then \ 409 if [ -x ./config.status ]; then \
405 ./config.status --recheck; \ 410 ./config.status --recheck; \
406 else \ 411 else \
407 ./configure; \ 412 ./configure $(CONFIGURE_FLAGS); \
408 fi 413 fi
409 414
410AUTOCONF_INPUTS = @MAINT@ $(srcdir)/configure.in $(srcdir)/aclocal.m4 415AUTOCONF_INPUTS = @MAINT@ $(srcdir)/configure.in $(srcdir)/aclocal.m4
@@ -936,7 +941,7 @@ bootstrap: bootstrap-clean FRC
936 if [ -x ./config.status ]; then \ 941 if [ -x ./config.status ]; then \
937 ./config.status; \ 942 ./config.status; \
938 else \ 943 else \
939 ./configure --enable-maintainer-mode; \ 944 ./configure $(CONFIGURE_FLAGS); \
940 fi 945 fi
941 $(MAKE) $(MFLAGS) info all 946 $(MAKE) $(MFLAGS) info all
942 947
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])
182dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html 182dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html
183OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals]) 183OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals])
184 184
185## Makefile.in needs the cache file name.
186AC_SUBST(cache_file)
187
185## This is an option because I do not know if all info/man support 188## This is an option because I do not know if all info/man support
186## compressed files, nor how to test if they do so. 189## compressed files, nor how to test if they do so.
187OPTION_DEFAULT_ON([compress-info],[don't compress the installed Info pages]) 190OPTION_DEFAULT_ON([compress-info],[don't compress the installed Info pages])