configure.ac: fix libjvm detection on OSX
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Dec 2015 14:50:46 +0000 (15:50 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 5 Dec 2015 20:51:07 +0000 (21:51 +0100)
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 <octo@collectd.org>
configure.ac

index ec34074..c9e98e1 100644 (file)
@@ -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])