[collectd] Configuring/compiling collectd with Java support on Mac OS X

Geoffrey Arnold geoffrey at geoffreyarnold.com
Wed Feb 3 23:43:51 CET 2010


Hello,

I'm attempting to compile collectd on Mac OS X with Java support.  As you know OS X has a custom directory layout for Java:

	http://developer.apple.com/mac/library/qa/qa2001/qa1170.html

I tweaked the configure script to reflect the location of the required directories (the issue is that the `find` command used in the configure script does not traverse symlinks by default), however I am still unable to configure collectd with Java support (./configure --enable-java).  I believe that the issue is with finding libjvm.dylib.

A diff reflecting my changes to the configure script is attached below.  Any help would be greatly appreciated.

Geoff.

--- configure.DEFAULT	2010-02-02 17:49:21.000000000 -0500
+++ configure	2010-02-02 18:12:00.000000000 -0500
@@ -18606,7 +18606,7 @@
 	then
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jni.h" >&5
 $as_echo_n "checking for jni.h... " >&6; }
-		TMPDIR=`find "$with_java_home" -name jni.h -type f -exec 'dirname' '{}' ';' | head -n 1`
+		TMPDIR=/Library/Java/Home/include
 		if test "x$TMPDIR" != "x"
 		then
 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $TMPDIR" >&5
@@ -18619,7 +18619,7 @@
 
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jni_md.h" >&5
 $as_echo_n "checking for jni_md.h... " >&6; }
-		TMPDIR=`find "$with_java_home" -name jni_md.h -type f -exec 'dirname' '{}' ';' | head -n 1`
+		TMPDIR=/Library/Java/Home/include
 		if test "x$TMPDIR" != "x"
 		then
 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $TMPDIR" >&5
@@ -18632,7 +18632,7 @@
 
 		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjvm.so" >&5
 $as_echo_n "checking for libjvm.so... " >&6; }
-		TMPDIR=`find "$with_java_home" -name libjvm.so -type f -exec 'dirname' '{}' ';' | head -n 1`
+		TMPDIR=/Library/Java/Home/bundle/Libraries
 		if test "x$TMPDIR" != "x"
 		then
 			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $TMPDIR" >&5
@@ -18647,7 +18647,7 @@
 		then
 			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac" >&5
 $as_echo_n "checking for javac... " >&6; }
-			TMPDIR=`find "$with_java_home" -name javac -type f | head -n 1`
+			TMPDIR=/Library/Java/Home/bin/javac
 			if test "x$TMPDIR" != "x"
 			then
 				JAVAC="$TMPDIR"




More information about the collectd mailing list