From: Dani Moncayo Date: Sat, 14 Dec 2013 09:30:15 +0000 (+0100) Subject: * configure.ac (srcdir) [MINGW32]: Convert to an absolute MSYS X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~417 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6084a28b66e4a3cedf860a58c342f5f60b7685e3;p=emacs.git * configure.ac (srcdir) [MINGW32]: Convert to an absolute MSYS path of the form "/c/foo/bar" to simplify conversion of formats. --- diff --git a/ChangeLog b/ChangeLog index c182c165f57..4c676d1cdfd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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. + 2013-12-13 Glenn Morris * INSTALL: No longer mention load-path and site-init/site-load. diff --git a/configure.ac b/configure.ac index 41258fcb7a9..2e9eee6b367 100644 --- a/configure.ac +++ b/configure.ac @@ -24,7 +24,16 @@ dnl along with GNU Emacs. If not, see . AC_PREREQ(2.65) AC_INIT(emacs, 24.3.50) -test "x$MSYSTEM" = "xMINGW32" && . $srcdir/nt/mingw-cfg.site +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}" +fi dnl Set emacs_config_options to the options of 'configure', quoted for the shell, dnl and then quoted again for a C string. Separate options with spaces.