Require C++11 if protobuf version >= 3.6.0 is installed
This shouldn't require C++11 when not required. This hack may not always detect when C++11 *is* required, in which case a little autoconf tweaking may be needed to get a good compile.
This commit is contained in:
@@ -20,6 +20,9 @@ AS_IF([test x"$PROTOC" = x],
|
||||
# automake 1.12 seems to require this, but automake 1.11 doesn't recognize it
|
||||
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
|
||||
|
||||
AS_IF([pkg-config --atleast-version 3.6.0 protobuf],
|
||||
[AX_CXX_COMPILE_STDCXX([11], [noext])])
|
||||
|
||||
WARNING_CXXFLAGS=""
|
||||
PICKY_CXXFLAGS=""
|
||||
DISTCHECK_CXXFLAGS=""
|
||||
|
||||
Reference in New Issue
Block a user