diff options
| author | Paul Eggert | 2011-12-03 12:19:03 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-12-03 12:19:03 -0800 |
| commit | 6c269a38ccd8277a1ecc727db013da020d5dec8a (patch) | |
| tree | 554d0cfea107ae56b615f4be1ba28f04348ce84e | |
| parent | c052ead41f5a53da9cc32e7697005fac3506a858 (diff) | |
| download | emacs-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-- | ChangeLog | 9 | ||||
| -rw-r--r-- | Makefile.in | 9 | ||||
| -rw-r--r-- | configure.in | 3 |
3 files changed, 19 insertions, 2 deletions
| @@ -1,5 +1,14 @@ | |||
| 1 | 2011-12-03 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-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 | |||
| 10 | 2011-12-03 Paul Eggert <eggert@cs.ucla.edu> | ||
| 11 | |||
| 3 | * .bzrignore: Add config.cache. | 12 | * .bzrignore: Add config.cache. |
| 4 | 13 | ||
| 5 | 2011-11-27 Jan Djärv <jan.h.d@swipnet.se> | 14 | 2011-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 | ||
| 69 | MAINTAINER_MODE_FLAG = --disable-maintainer-mode | ||
| 70 | @MAINT@MAINTAINER_MODE_FLAG = --enable-maintainer-mode | ||
| 71 | cache_file = @cache_file@ | ||
| 72 | CONFIGURE_FLAGS = --cache-file=$(cache_file) $(MAINTAINER_MODE_FLAG) | ||
| 73 | |||
| 69 | CC=@CC@ | 74 | CC=@CC@ |
| 70 | CFLAGS=@CFLAGS@ | 75 | CFLAGS=@CFLAGS@ |
| 71 | LDFLAGS=@LDFLAGS@ | 76 | LDFLAGS=@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 | ||
| 410 | AUTOCONF_INPUTS = @MAINT@ $(srcdir)/configure.in $(srcdir)/aclocal.m4 | 415 | AUTOCONF_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]) | |||
| 182 | dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html | 182 | dnl http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01844.html |
| 183 | OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals]) | 183 | OPTION_DEFAULT_ON([makeinfo],[don't require makeinfo for building manuals]) |
| 184 | 184 | ||
| 185 | ## Makefile.in needs the cache file name. | ||
| 186 | AC_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. |
| 187 | OPTION_DEFAULT_ON([compress-info],[don't compress the installed Info pages]) | 190 | OPTION_DEFAULT_ON([compress-info],[don't compress the installed Info pages]) |