From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: MinGW "pwd -W" configure.ac correction Date: Thu, 24 Oct 2013 19:25:52 +0300 Message-ID: <8338nqiqjz.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382632035 29775 80.91.229.3 (24 Oct 2013 16:27:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Oct 2013 16:27:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 24 18:27:20 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 1VZNkj-00078S-SV for ged-emacs-devel@m.gmane.org; Thu, 24 Oct 2013 18:27:18 +0200 Original-Received: from localhost ([::1]:55295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZNkj-0004bc-EN for ged-emacs-devel@m.gmane.org; Thu, 24 Oct 2013 12:27:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZNjf-0003OL-QZ for emacs-devel@gnu.org; Thu, 24 Oct 2013 12:26:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZNja-0004qs-K8 for emacs-devel@gnu.org; Thu, 24 Oct 2013 12:26:11 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:52790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZNja-0004qA-7d; Thu, 24 Oct 2013 12:26:06 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MV600E00LFLS900@a-mtaout23.012.net.il>; Thu, 24 Oct 2013 19:26:04 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MV600EFHLNGN290@a-mtaout23.012.net.il>; Thu, 24 Oct 2013 19:26:04 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 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:164516 Archived-At: > From: Glenn Morris > cc: emacs-devel@gnu.org > Date: Wed, 23 Oct 2013 19:12:44 -0400 > > > I think that (thanks to me) there's an issue with the > > test "$MSYSTEM" = "MINGW32" && abs_srcdir=`(cd "$abs_srcdir"; pwd -W | sed -e 's,^\([[A-Za-z]]\):,/\1,')` > > stuff in configure. > > Unlike $srcdir (which this used to use), it seems that $abs_srcdir it > not set at this stage in configure. Instead it only gets set by > config.status (IIUC). > > Does this `pwd -W' correction only matter for epaths.h? > If so, could it be moved to the epaths-force-w32 rule in Makefile.in? This could maybe work today, but it's a time bomb: the underlying problem, explained in configure.ac, will bite us if we ever invoke any MinGW program (including, but not limited to, Emacs) during the build. So it is best to get that problem out of our way as soon as possible. > That rule already does some correcting of paths. Those are different problems. > Or does every instance of $abs_srcdir in all the Makefiles need correcting? We cannot allow something like /usr/foo/bar in $abs_srcdir, anywhere. It must be in the /x/foo/bar format, i.e. it must include the Windows drive letter (in the "/x/" form) explicitly. It's just that epaths.h were the first place where this problem hit us. > If so, we'll have a find way to make config.status do it > (AC_CONFIG_COMMANDS?)... How can we be sure that the same problem won't happen while the configure script itself runs, before it invokes config.status?