configure.ac | 40 ++++++++++++++++++++++++++++++++-------- 1 file changed, 32 insertions(+), 8 deletions(-)
New commits: commit 7aaadcfce963079aafd52988bd834f50c2d6a4ec Author: Mark Williams <m...@dimm.de> Date: Wed Dec 17 21:52:21 2014 +0100 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/13515 Reviewed-by: David Ostrovsky <da...@ostrovsky.org> Tested-by: David Ostrovsky <da...@ostrovsky.org> diff --git a/configure.ac b/configure.ac index 2b1a0a2..c7cd156 100644 --- a/configure.ac +++ b/configure.ac @@ -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" _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits