summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2021-05-26 22:11:53 +0200
committerGitHub <noreply@github.com>2021-05-26 22:11:53 +0200
commitf4db21a5fb3ee24cf76cdc27f840ac807d2fa108 (patch)
treed4d4d16d1abb3127452ed5f4a48675da6403b752 /configure.ac
parentMerge pull request #8736 from idryzhov/fix-ospf6-debug (diff)
parentgrpc: improve checks for GRPC C++ requirements (diff)
downloadfrr-f4db21a5fb3ee24cf76cdc27f840ac807d2fa108.tar.xz
frr-f4db21a5fb3ee24cf76cdc27f840ac807d2fa108.zip
Merge pull request #8707 from LabNConsulting/chopps/improve-grpc-req-checks
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index effdb3a87..560cd7386 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1924,7 +1924,9 @@ dnl ---------------
dnl gRPC
dnl ---------------
if test "$enable_grpc" = "yes"; then
- PKG_CHECK_MODULES([GRPC], [grpc grpc++ protobuf], [
+ AC_LANG([C++])
+ AX_CXX_COMPILE_STDCXX([11], [ext])
+ PKG_CHECK_MODULES([GRPC], [grpc >= 6.0.0 grpc++ >= 1.16.1 protobuf >= 3.6.1 ], [
AC_CHECK_PROGS([PROTOC], [protoc], [/bin/false])
if test "$PROTOC" = "/bin/false"; then
AC_MSG_FAILURE([grpc requested but protoc not found.])