From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: About ./configure --cache-file (WAS: CHECK_STRUCTS/dmpstruct.h mechanism is broken.) Date: Sun, 14 Apr 2019 17:08:19 +0300 Message-ID: <83d0lok7cc.fsf@gnu.org> References: <9809d5ce-c1c4-48e9-6dac-489431b34067@cs.ucla.edu> <671ba8dd-894b-5698-d162-8901b1098b9a@cs.ucla.edu> <83k1g04al8.fsf@gnu.org> <93b861b3-41d2-e590-d4b8-46a4bb64bfe8@cs.ucla.edu> <20190412133727.GC4588@ACM> <20190413140646.GE13636@ACM> <20190414094535.GA17803@ACM> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="240421"; mail-complaints-to="usenet@blaine.gmane.org" Cc: eggert@cs.ucla.edu, npostavs@gmail.com, emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 14 16:08:43 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hFfoI-0010SF-R8 for ged-emacs-devel@m.gmane.org; Sun, 14 Apr 2019 16:08:42 +0200 Original-Received: from localhost ([127.0.0.1]:36152 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFfoH-0000Jt-QF for ged-emacs-devel@m.gmane.org; Sun, 14 Apr 2019 10:08:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFfo8-0000Jk-2U for emacs-devel@gnu.org; Sun, 14 Apr 2019 10:08:35 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hFfo7-0007j2-81; Sun, 14 Apr 2019 10:08:31 -0400 Original-Received: from [176.228.60.248] (port=4211 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hFfo6-0001q0-Kf; Sun, 14 Apr 2019 10:08:30 -0400 In-reply-to: <20190414094535.GA17803@ACM> (message from Alan Mackenzie on Sun, 14 Apr 2019 09:45:35 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:235438 Archived-At: > Date: Sun, 14 Apr 2019 09:45:35 +0000 > Cc: Noam Postavsky , Eli Zaretskii , > Emacs developers > From: Alan Mackenzie > > > ... or if you configure with different flags, or if you edit > > configure.ac or if you do a bunch of other things. For the kind of > > work I do, the cache is way more trouble than it's worth. > > Are you sure? I just tried it out. My first run, > ./configure -C --with-gif=no --with-tiff=no --with-gpm=no > , took ~2.3 seconds. I built Emacs, and GPM was indeed not built in. > > Then I did > ./configure -C --with-gif=no --with-tiff=no --with-gpm > , which again took ~2.3s, built Emacs, and GPM was then present and > working. I think you should try building with --with-gpm=no, and after than without this switch, i.e. without an explicit --with-gpm. > So it seems that ./configure -C can cope with at least some flags being > changed between runs. I think you are just being lucky: configure always recomputes variables that are not cached yet.