From: Ruben Kerkhof Date: Sat, 5 Dec 2015 14:50:46 +0000 (+0100) Subject: configure.ac: fix libjvm detection on OSX X-Git-Tag: collectd-5.5.1~25^2 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=4d04d3b7e32b8777f7c7b04110b74194b991fbea 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 --- 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])