From: Florian Forster Date: Fri, 5 Apr 2013 05:31:35 +0000 (+0200) Subject: configure.in: Check for protobuf-c.h. X-Git-Tag: collectd-5.3.0~17 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8a09193a175fc6fc4ebb1e828ae10bdd97a5f571;p=collectd.git configure.in: Check for protobuf-c.h. Thanks to Yves Mettier pointing this out in #269 and for providing an initial patch. --- diff --git a/configure.in b/configure.in index b4b21a45..e2110b58 100644 --- a/configure.in +++ b/configure.in @@ -49,6 +49,16 @@ AC_PROG_YACC PKG_PROG_PKG_CONFIG AC_CHECK_PROG([have_protoc_c], [protoc-c], [yes], [no]) +if test "x$have_protoc_c" = "xyes" +then + AC_CHECK_HEADERS([google/protobuf-c/protobuf-c.h], + [have_protobuf_c_h="yes"], + [have_protobuf_c_h="no"]) +fi +if test "x$have_protoc_c" = "xyes" && test "x$have_protobuf_c_h" != "xyes" +then + have_protoc_c="no (unable to find protobuf-c.h)" +fi AM_CONDITIONAL(HAVE_PROTOC_C, test "x$have_protoc_c" = "xyes") AC_MSG_CHECKING([for kernel type ($host_os)])