Bug 693226 - Fix using relative paths with at --with-l10n-base on win32 with pymake; r=ted
authorPhilipp Wagner <mail@philipp-wagner.com>
Tue, 14 Feb 2012 00:24:52 +0100
changeset 86890 fbbf2d56cc8ed18528c290907b6d9c260548236a
parent 86889 f942334a49625554c18c52254e26b66f5e67aa47
child 86891 c79e879427cd3ab09b894d5592c46d1c7943dfb6
child 87211 cfff460d9d8bd75a384a04623d35aa1e0a6cabbd
push id6097
push userdgottwald@mozilla.com
push dateWed, 15 Feb 2012 12:58:06 +0000
treeherdermozilla-inbound@fbbf2d56cc8e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs693226
milestone13.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 693226 - Fix using relative paths with at --with-l10n-base on win32 with pymake; r=ted
configure.in
--- a/configure.in
+++ b/configure.in
@@ -220,17 +220,24 @@ AC_SUBST(COMPILE_ENVIRONMENT)
 
 MOZ_ARG_WITH_STRING(l10n-base,
 [  --with-l10n-base=DIR    path to l10n repositories],
     L10NBASEDIR=$withval)
 if test -n "$L10NBASEDIR"; then
     if test "$L10NBASEDIR" = "yes" -o "$L10NBASEDIR" = "no"; then
         AC_MSG_ERROR([--with-l10n-base must specify a path])
     elif test -d "$L10NBASEDIR"; then
-        L10NBASEDIR=`cd "$L10NBASEDIR" && pwd`
+        case "$host_os" in
+        mingw*)
+            L10NBASEDIR=`cd "$L10NBASEDIR" && pwd -W`
+            ;;
+        *)
+            L10NBASEDIR=`cd "$L10NBASEDIR" && pwd`
+            ;;
+        esac
     else
         AC_MSG_ERROR([Invalid value --with-l10n-base, $L10NBASEDIR doesn't exist])
     fi
 fi
 AC_SUBST(L10NBASEDIR)
 
 dnl Check for Perl first -- needed for win32 SDK checks
 MOZ_PATH_PROGS(PERL, $PERL perl5 perl )