Skip to content

Commit

Permalink
Require C++11 if protobuf version >= 3.6.0 is installed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cgull committed Aug 2, 2018
1 parent 60859e9 commit 6fe7cde
Show file tree
Hide file tree
Showing 2 changed files with 951 additions and 0 deletions.
3 changes: 3 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down
Loading

0 comments on commit 6fe7cde

Please sign in to comment.