[Libreoffice-commits] core.git: configure.ac
Jan-Marek Glogowski (via logerrit)
logerrit at kemper.freedesktop.org
Tue Mar 23 21:58:20 UTC 2021
configure.ac | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
New commits:
commit 2a0ff854b165883d33bbbbf1292c34858e9865d1
Author: Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Mon Mar 22 23:14:53 2021 +0100
Commit: Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Tue Mar 23 22:57:37 2021 +0100
WIN always check jdk_home path and content
Change-Id: If13984395051c3e507028312a4106059f3f0bb93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112972
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>
diff --git a/configure.ac b/configure.ac
index 4e422e2648b8..368ccb84daa4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8028,19 +8028,17 @@ if test "$ENABLE_JAVA" != ""; then
if test -n "$regvalue"; then
ver=$regvalue
reg_get_value "$WIN_HOST_BITS" "HKEY_LOCAL_MACHINE/SOFTWARE/JavaSoft/JDK/$ver/JavaHome"
- reg_jdk_home=$regvalue
- fi
-
- if test -f "$reg_jdk_home/lib/jvm.lib" -a -f "$reg_jdk_home/bin/java.exe"; then
- with_jdk_home="$reg_jdk_home"
- howfound="found automatically"
- else
- AC_MSG_ERROR([No JDK found, pass the --with-jdk-home option pointing to a $WIN_HOST_BITS-bit JDK >= 9])
+ with_jdk_home=$regvalue
fi
+ howfound="found automatically"
else
- test "$build_os" = "cygwin" && with_jdk_home=`win_short_path_for_make "$with_jdk_home"`
+ with_jdk_home=`win_short_path_for_make "$with_jdk_home"`
howfound="you passed"
fi
+
+ if ! test -f "$with_jdk_home/lib/jvm.lib" -a -f "$with_jdk_home/bin/java.exe"; then
+ AC_MSG_ERROR([No JDK found, pass the --with-jdk-home option (or fix the path) pointing to a $WIN_HOST_BITS-bit JDK >= 9])
+ fi
fi
# macOS: /usr/libexec/java_home helps to set the current JDK_HOME. Actually JDK_HOME should NOT be set where java (/usr/bin/java) is located.
More information about the Libreoffice-commits
mailing list