From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Annoyingly cautious make rules Date: Sat, 03 Dec 2011 12:23:57 -0800 Organization: UCLA Computer Science Department Message-ID: <4EDA855D.9050700@cs.ucla.edu> References: <83ehwnc97k.fsf@gnu.org> <4ED917E2.7020807@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1322943853 15917 80.91.229.12 (3 Dec 2011 20:24:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 3 Dec 2011 20:24:13 +0000 (UTC) Cc: Eli Zaretskii , Andreas Schwab , rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 03 21:24:05 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RWw7x-0007GQ-2U for ged-emacs-devel@m.gmane.org; Sat, 03 Dec 2011 21:24:05 +0100 Original-Received: from localhost ([::1]:53336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWw7w-00060I-Cz for ged-emacs-devel@m.gmane.org; Sat, 03 Dec 2011 15:24:04 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:48043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWw7t-00060B-NR for emacs-devel@gnu.org; Sat, 03 Dec 2011 15:24:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RWw7s-0005RF-7h for emacs-devel@gnu.org; Sat, 03 Dec 2011 15:24:01 -0500 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:52288) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RWw7p-0005QN-Vw; Sat, 03 Dec 2011 15:23:58 -0500 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 5620DA60002; Sat, 3 Dec 2011 12:23:57 -0800 (PST) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q6AEnOn4sFi0; Sat, 3 Dec 2011 12:23:56 -0800 (PST) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 8E20A39E8006; Sat, 3 Dec 2011 12:23:56 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:146467 Archived-At: On 12/02/11 12:36, Stefan Monnier wrote: >> > Another part of the problem is that even if I use "configure -C", >> > "make" sometimes invokes "configure" without -C, which is >> > reeeeally slow. > That needs fixing, then. OK, I did that as follows in bzr 106594. Propagate configure flags to sub-configures. * Makefile.in (cache_file, MAINTAINER_MODE_FLAG, 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. === modified file 'Makefile.in' --- Makefile.in 2011-11-22 01:56:49 +0000 +++ Makefile.in 2011-12-03 20:17:56 +0000 @@ -66,6 +66,11 @@ # ==================== 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 @@ 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 @@ if [ -x ./config.status ]; then \ ./config.status; \ else \ - ./configure --enable-maintainer-mode; \ + ./configure $(CONFIGURE_FLAGS); \ fi $(MAKE) $(MFLAGS) info all === modified file 'configure.in' --- configure.in 2011-11-30 16:23:05 +0000 +++ configure.in 2011-12-03 20:17:56 +0000 @@ -182,6 +182,9 @@ 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])