From: Ruben Kerkhof Date: Sun, 9 Aug 2015 17:02:25 +0000 (+0200) Subject: protoc: check for libprotobuf-c as well X-Git-Tag: collectd-5.6.0~570^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d52da5209c448026386170a3e743cabba3f4e69d;p=collectd.git protoc: check for libprotobuf-c as well --- diff --git a/configure.ac b/configure.ac index 12f2d469..888c6e9d 100644 --- a/configure.ac +++ b/configure.ac @@ -62,12 +62,19 @@ then have_protoc_c="no (protoc-c compiler not found)" fi -if test "X$have_protoc_c" = "xyes" +if test "x$have_protoc_c" = "xyes" then AC_CHECK_HEADERS([google/protobuf-c/protobuf-c.h], - [] + [have_protoc_c="yes"], [have_protoc_c="no ( not found)"]) fi +if test "x$have_protoc_c" = "xyes" +then + AC_CHECK_LIB([protobuf-c], [protobuf_c_version], + [have_protoc_c="yes"], + [have_protoc_c="no (libprotobuf-c not found)"]) + +fi AM_CONDITIONAL(HAVE_PROTOC_C, test "x$have_protoc_c" = "xyes") AC_MSG_CHECKING([for kernel type ($host_os)])