From: Dani Moncayo Date: Sat, 14 Dec 2013 22:06:30 +0000 (+0100) Subject: * configure.ac (srcdir) [MINGW32]: Tweak to 2013-12-14T09:30:15Z!dmoncayo@gmail.com. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~406 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c07ff981a3fff74bb5a6bf6795eeb1dcead3d074;p=emacs.git * configure.ac (srcdir) [MINGW32]: Tweak to 2013-12-14T09:30:15Z!dmoncayo@gmail.com. --- diff --git a/ChangeLog b/ChangeLog index ba36b72f739..c3bb41bd7ca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,8 +6,9 @@ 2013-12-14 Dani Moncayo - * configure.ac (srcdir) [MINGW32]: Convert to an absolute MSYS - path of the form "/c/foo/bar" to simplify conversion of formats. + * configure.ac (srcdir) [MINGW32]: If it is an absolute path, + force the format "/c/foo/bar" to simplify conversions to native + windows format. 2013-12-13 Glenn Morris diff --git a/configure.ac b/configure.ac index 9e4ef127534..6d0ba7c851a 100644 --- a/configure.ac +++ b/configure.ac @@ -28,11 +28,14 @@ if test "x$MSYSTEM" = "xMINGW32" then . $srcdir/nt/mingw-cfg.site - # Convert srcdir to an absolute MSYS path of the form "/c/foo/bar" - # to simplify later conversions of paths to windows-native format - # "c:/foo/bar" - srcdir=`cd "${srcdir}" && pwd -W` - srcdir="/${srcdir:0:1}${srcdir:2}" + if test ${srcdir:0:1} = "/" -o ${srcdir:1:1} = ":" + then + # srcdir is an absolute path. In this case, force the format + # "/c/foo/bar", to simplify later conversions to native Windows + # format ("c:/foo/bar") + srcdir=`cd "${srcdir}" && pwd -W` + srcdir="/${srcdir:0:1}${srcdir:2}" + fi fi dnl Set emacs_config_options to the options of 'configure', quoted for the shell,