From: Ruben Kerkhof Date: Sun, 9 Aug 2015 15:02:33 +0000 (+0200) Subject: protoc: log when compiler is missing X-Git-Tag: collectd-5.5.1~40^2~13 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=82f38bbf606d19165657a522a691298253fd6366;p=collectd.git protoc: log when compiler is missing In the case where we do have the required headers but don't have the compiler, this makes it more clear that we're missing the latter. --- diff --git a/configure.ac b/configure.ac index f6b9f5e2..d5b8c798 100644 --- a/configure.ac +++ b/configure.ac @@ -57,12 +57,17 @@ AC_PROG_YACC PKG_PROG_PKG_CONFIG AC_CHECK_PROG([have_protoc_c], [protoc-c], [yes], [no]) -AC_CHECK_HEADERS([google/protobuf-c/protobuf-c.h], - [have_protobuf_c_h="yes"], - [have_protobuf_c_h="no"]) -if test "x$have_protoc_c" = "xyes" && test "x$have_protobuf_c_h" != "xyes" +if test "x$have_protoc_c" = "xno" then - have_protoc_c="no (unable to find )" + have_protoc_c="no (protoc-c compiler not found)" +else + AC_CHECK_HEADERS([google/protobuf-c/protobuf-c.h], + [have_protobuf_c_h="yes"], + [have_protobuf_c_h="no"]) + if test "x$have_protobuf_c_h" = "xno" + then + have_protoc_c="no ( not found)" + fi fi AM_CONDITIONAL(HAVE_PROTOC_C, test "x$have_protoc_c" = "xyes")