From 437ddc0a0594e825bfbf44f318a722157f9279a4 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 3 Aug 2016 17:31:08 +0200 Subject: [PATCH] grep -q is not portable Solaris grep doesn't have -q Use the grep we detected with AC_PROG_EGREP and just redirect stdout. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b1c83013..45f5fafa 100644 --- a/configure.ac +++ b/configure.ac @@ -83,7 +83,7 @@ AC_PATH_PROG([PROTOC], [protoc]) have_protoc3="no" if test "x$PROTOC" != "x"; then AC_MSG_CHECKING([for protoc 3.0.0+]) - if $PROTOC --version | grep -q libprotoc.3; then + if $PROTOC --version | $EGREP libprotoc.3 >/dev/null; then protoc3="yes (`$PROTOC --version`)" have_protoc3="yes" else -- 2.30.2