summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee830b4)
raw | patch | inline | side by side (parent: ee830b4)
author | Florian Forster <octo@collectd.org> | |
Wed, 10 Aug 2016 12:43:42 +0000 (14:43 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 10 Aug 2016 12:47:30 +0000 (14:47 +0200) |
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 1bacddd1b482af00dbe8b15bc103f68176b7d2df..44351937f64146e38c56c511a175d1890465a401 100644 (file)
--- a/configure.ac
+++ b/configure.ac
then
AC_LANG_PUSH(C++)
SAVE_CPPFLAGS="$CPPFLAGS"
- CPPFLAGS="$with_libgrpcpp_cppflags $GRPCPP_CFLAGS $CPPFLAGS -std=c++11"
+ CPPFLAGS="-std=c++11 $with_libgrpcpp_cppflags $GRPCPP_CFLAGS $CPPFLAGS"
AC_CHECK_HEADERS([grpc++/grpc++.h], [],
[with_libgrpcpp="no (<grpc++/grpc++.h> not found)"]
)
if test "x$with_libgrpcpp" = "xyes"
then
AC_LANG_PUSH(C++)
+ SAVE_CPPFLAGS="$CPPFLAGS"
SAVE_LDFLAGS="$LDFLAGS"
SAVE_LIBS="$LIBS"
+ CPPFLAGS="-std=c++11 $with_libgrpcpp_cppflags $GRPCPP_CFLAGS $CPPFLAGS"
LDFLAGS="$with_libgrpcpp_ldflags"
if test "x$GRPCPP_LIBS" = "x"
then
],
[with_libgrpcpp="no (libgrpc++ not found)"]
)
+ CPPFLAGS="$SAVE_CPPFLAGS"
LDFLAGS="$SAVE_LDFLAGS"
LIBS="$SAVE_LIBS"
AC_LANG_POP(C++)