From be663d32c6ff432b9594d6e7bad83817f48e004c Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sun, 9 Aug 2015 18:28:30 +0200 Subject: [PATCH] protoc: simplify configure check --- configure.ac | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 1f347759..12f2d469 100644 --- a/configure.ac +++ b/configure.ac @@ -60,14 +60,13 @@ AC_CHECK_PROG([have_protoc_c], [protoc-c], [yes], [no]) if test "x$have_protoc_c" = "xno" then have_protoc_c="no (protoc-c compiler not found)" -else +fi + +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"]) - if test "x$have_protobuf_c_h" = "xno" - then - have_protoc_c="no ( not found)" - fi + [] + [have_protoc_c="no ( not found)"]) fi AM_CONDITIONAL(HAVE_PROTOC_C, test "x$have_protoc_c" = "xyes") -- 2.30.2