There is another small problem with libmodbus 3.0.1, the pkgconfig file is actually named "libmodbus.pc", however collectd's configure script looks for "modbus". Fixed it like this:<br><br>--- configure.in.orig 2012-01-19 16:11:40.000000000 +0100<br>
+++ <a href="http://configure.in">configure.in</a> 2012-01-19 16:12:41.000000000 +0100<br>@@ -2114,21 +2114,21 @@<br> fi<br> if test "x$with_libmodbus" = "xuse_pkgconfig"<br> then<br>- AC_MSG_NOTICE([Checking for modbus using $PKG_CONFIG])<br>
- $PKG_CONFIG --exists 'modbus' 2>/dev/null<br>+ AC_MSG_NOTICE([Checking for libmodbus using $PKG_CONFIG])<br>+ $PKG_CONFIG --exists 'libmodbus' 2>/dev/null<br> if test $? -ne 0<br>
then<br>- with_libmodbus="no (pkg-config doesn't know modbus)"<br>+ with_libmodbus="no (pkg-config doesn't know libmodbus)"<br> fi<br> fi<br> if test "x$with_libmodbus" = "xuse_pkgconfig"<br>
then<br>- with_libmodbus_cflags="`$PKG_CONFIG --cflags 'modbus'`"<br>+ with_libmodbus_cflags="`$PKG_CONFIG --cflags 'libmodbus'`"<br> if test $? -ne 0<br> then<br>
with_libmodbus="no ($PKG_CONFIG failed)"<br> fi<br>- with_libmodbus_libs="`$PKG_CONFIG --libs 'modbus'`"<br>+ with_libmodbus_libs="`$PKG_CONFIG --libs 'libmodbus'`"<br>
if test $? -ne 0<br> then<br> with_libmodbus="no ($PKG_CONFIG failed)"<br><br clear="all">-- <br>Cheers, Stefan<br>