Kaydet (Commit) 7aaadcfc authored tarafından Mark Williams's avatar Mark Williams Kaydeden (comit) David Ostrovsky

configure.ac: make it work with VisualStudio Express and 64 bit compile

Because VS Express has no native 64Bit compiler but a 64 Bit cross-
compiler. The path resolution to detect binaries and libraries was
not suitable for the cross compiler. The added resolution is only
effective if no native compiler was found.

Change-Id: I8066cb04f94eb4bfd0c57b35e5e39883c51ee046
Reviewed-on: https://gerrit.libreoffice.org/13515Reviewed-by: 's avatarDavid Ostrovsky <david@ostrovsky.org>
Tested-by: 's avatarDavid Ostrovsky <david@ostrovsky.org>
üst a4681be5
......@@ -3438,7 +3438,11 @@ if test "$_os" = "WINNT"; then
if test -f "$vctest/bin/amd64/cl.exe"; then
VC_PRODUCT_DIR=$vctest
else
AC_MSG_ERROR([No compiler (cl.exe) in $vctest/bin/amd64/cl.exe])
if test -f "$vctest/bin/x86_amd64/cl.exe" -a "$vcexpress" = "Express"; then
VC_PRODUCT_DIR=$vctest
else
AC_MSG_ERROR([No compiler (cl.exe) in $vctest/bin/amd64/cl.exe or $vctest/bin/x86_amd64/cl.exe])
fi
fi
fi
......@@ -3471,7 +3475,11 @@ if test "$_os" = "WINNT"; then
MSPDB_PATH="$VC_PRODUCT_DIR/../Common7/IDE"
fi
else
MSPDB_PATH="$VC_PRODUCT_DIR/bin/amd64"
if test "$vcexpress" = "Express"; then
MSPDB_PATH="$VC_PRODUCT_DIR/bin"
else
MSPDB_PATH="$VC_PRODUCT_DIR/bin/amd64"
fi
fi
mspdbnum=$vcnum
......@@ -3499,8 +3507,14 @@ if test "$_os" = "WINNT"; then
CC="$VC_PRODUCT_DIR/bin/cl.exe"
fi
else
if test -f "$VC_PRODUCT_DIR/bin/amd64/cl.exe"; then
CC="$VC_PRODUCT_DIR/bin/amd64/cl.exe"
if test "$vcexpress" = "Express"; then
if test -f "$VC_PRODUCT_DIR/bin/x86_amd64/cl.exe"; then
CC="$VC_PRODUCT_DIR/bin/x86_amd64/cl.exe"
fi
else
if test -f "$VC_PRODUCT_DIR/bin/amd64/cl.exe"; then
CC="$VC_PRODUCT_DIR/bin/amd64/cl.exe"
fi
fi
fi
......@@ -9712,8 +9726,13 @@ if test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then
assembler=ml.exe
assembler_bin=bin
else
assembler=ml64.exe
assembler_bin=bin/amd64
if test "$vcexpress" = "Express"; then
assembler=ml64.exe
assembler_bin=bin/x86_amd64
else
assembler=ml64.exe
assembler_bin=bin/amd64
fi
fi
AC_MSG_CHECKING([$VC_PRODUCT_DIR/$assembler_bin/$assembler])
......@@ -12712,8 +12731,13 @@ else
pathmunge "$MSBUILD_PATH" "before"
fi
if test "$BITNESS_OVERRIDE" = 64; then
pathmunge "$COMPATH/bin/amd64" "before"
pathmunge "$WINDOWS_SDK_HOME/bin/x64" "before"
if test "$vcexpress" = "Express"; then
pathmunge "$COMPATH/bin/x86_amd64" "before"
pathmunge "$WINDOWS_SDK_HOME/bin/x64" "before"
else
pathmunge "$COMPATH/bin/amd64" "before"
pathmunge "$WINDOWS_SDK_HOME/bin/x64" "before"
fi
else
pathmunge "$COMPATH/bin" "before"
pathmunge "$WINDOWS_SDK_HOME/bin/x86" "before"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment