From: Dani Moncayo Date: Sat, 14 Dec 2013 22:59:20 +0000 (+0100) Subject: * configure.ac (srcdir) [MINGW32]: Yet another tweak to avoid failure X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~405 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f629af5493b01170f0fc9c26d8a51c928f4ea711;p=emacs.git * configure.ac (srcdir) [MINGW32]: Yet another tweak to avoid failure when srcdir is ".". Fix also the indentation. --- diff --git a/configure.ac b/configure.ac index 6d0ba7c851a..30403fac06d 100644 --- a/configure.ac +++ b/configure.ac @@ -26,16 +26,17 @@ AC_INIT(emacs, 24.3.50) if test "x$MSYSTEM" = "xMINGW32" then - . $srcdir/nt/mingw-cfg.site - - 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 + . $srcdir/nt/mingw-cfg.site + + case $srcdir in + /* | ?:*) + # 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}" + ;; + esac fi dnl Set emacs_config_options to the options of 'configure', quoted for the shell,