From 4d04d3b7e32b8777f7c7b04110b74194b991fbea Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 5 Dec 2015 15:50:46 +0100 Subject: [PATCH] configure.ac: fix libjvm detection on OSX Shared libraries have the extension .dylib instead of .so Ideally we look at shrext_cmds from libtool to find the shared library extension but this works too. Signed-off-by: Florian Forster --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index ec340744..c9e98e15 100644 --- a/configure.ac +++ b/configure.ac @@ -2185,7 +2185,7 @@ then fi AC_MSG_CHECKING([for libjvm.so]) - TMPVAR=`find -L "$with_java_home" -name libjvm.so -type f -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1` + TMPVAR=`find -L "$with_java_home" -type f -name libjvm.so -o -name libjvm.dylib -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1` if test "x$TMPVAR" != "x" then AC_MSG_RESULT([found in $TMPVAR]) -- 2.11.0