From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: nt/msysconfig.sh Date: Wed, 06 Nov 2013 16:03:57 -0500 Message-ID: <8sy55144zm.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1383771838 15876 80.91.229.3 (6 Nov 2013 21:03:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Nov 2013 21:03:58 +0000 (UTC) Cc: Eli Zaretskii , Emacs development discussions To: Dani Moncayo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 06 22:04:04 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VeAGh-0006Le-R7 for ged-emacs-devel@m.gmane.org; Wed, 06 Nov 2013 22:04:03 +0100 Original-Received: from localhost ([::1]:36062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeAGh-00007Q-EQ for ged-emacs-devel@m.gmane.org; Wed, 06 Nov 2013 16:04:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeAGe-000075-AQ for emacs-devel@gnu.org; Wed, 06 Nov 2013 16:04:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VeAGd-0004MM-4u for emacs-devel@gnu.org; Wed, 06 Nov 2013 16:04:00 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VeAGd-0004MI-1l for emacs-devel@gnu.org; Wed, 06 Nov 2013 16:03:59 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VeAGb-00065V-9h; Wed, 06 Nov 2013 16:03:57 -0500 X-Spook: cracking ANZUS morse David John Oates bluebird X-Ran: mhWdt6QrY\5:/[$- X-Hue: magenta X-Attribution: GM In-Reply-To: (Dani Moncayo's message of "Tue, 5 Nov 2013 22:34:59 +0100") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:165013 Archived-At: Dani Moncayo wrote: > I've noticed that the configure script for MS-Windows, i.e., the file > `nt/msysconfig.sh' is just a call to the main configure script, but > setting a special value to the `CONFIG_SITE' environment variable. > > So, I wonder if that setting could be done inside the main configure > script (conditioned to the MSYS environment, obviously), so that we > could get rid of `nt/msysconfig.sh' and thereby make the procedure for > building Emacs on MS-Windows more similar to the GNU/Linux case. Sounds like it would be better, if it works. CONFIG_SITE needs to be set before configure runs, so you can't just set it in configure.ac. Looks like what you would have to do is take the contents of nt/mingw-cfg.site and insert them in configure.ac just after the AC_INIT statement. But it needs to be behind a test for mingw. You can't use $opsys, because it isn't defined till later. Maybe that test "$MSYSTEM" = "MINGW32" thing will work, though I don't know what MSYSTEM is... If you find something that looks like it should work, test it out with and without configuring caching turned on, and see if work for you.