From: Stefan Nickl Date: Sat, 28 Jan 2012 16:32:38 +0000 (+0100) Subject: Change modbus to libmodbus to fix pkgconfig X-Git-Tag: collectd-5.1.0~39^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=97f36e3f3143eeb77daa22f73ca2534ab9e3c6e8;p=collectd.git Change modbus to libmodbus to fix pkgconfig --- diff --git a/configure.in b/configure.in index 643781df..b3ab7c9c 100644 --- a/configure.in +++ b/configure.in @@ -2102,21 +2102,21 @@ then fi if test "x$with_libmodbus" = "xuse_pkgconfig" then - AC_MSG_NOTICE([Checking for modbus using $PKG_CONFIG]) - $PKG_CONFIG --exists 'modbus' 2>/dev/null + AC_MSG_NOTICE([Checking for libmodbus using $PKG_CONFIG]) + $PKG_CONFIG --exists 'libmodbus' 2>/dev/null if test $? -ne 0 then - with_libmodbus="no (pkg-config doesn't know modbus)" + with_libmodbus="no (pkg-config doesn't know libmodbus)" fi fi if test "x$with_libmodbus" = "xuse_pkgconfig" then - with_libmodbus_cflags="`$PKG_CONFIG --cflags 'modbus'`" + with_libmodbus_cflags="`$PKG_CONFIG --cflags 'libmodbus'`" if test $? -ne 0 then with_libmodbus="no ($PKG_CONFIG failed)" fi - with_libmodbus_libs="`$PKG_CONFIG --libs 'modbus'`" + with_libmodbus_libs="`$PKG_CONFIG --libs 'libmodbus'`" if test $? -ne 0 then with_libmodbus="no ($PKG_CONFIG failed)"