From fda5c45f1bdb45bcfc13fa0658d3f15a6407da64 Mon Sep 17 00:00:00 2001 From: Kazuki OIKAWA Date: Fri, 18 Mar 2016 17:24:31 +0900 Subject: [PATCH] Enabled -std=c++11 option if compiler supported --- cpp/configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpp/configure.in b/cpp/configure.in index 493d9e5..af93a2a 100644 --- a/cpp/configure.in +++ b/cpp/configure.in @@ -132,7 +132,10 @@ AC_MSG_RESULT($enable_trace) AM_CONDITIONAL(WANT_CCLOG, test "$want_cclog" = "yes") - +AC_LANG(C++) +jubatus_msgpack_rpc_cxxflags_backup="$CXXFLAGS" +CXXFLAGS="$CXXFLAGS -std=c++11 -Wno-deprecated-declarations" +AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],,CXXFLAGS="$jubatus_msgpack_rpc_cxxflags_backup") major=`echo $VERSION | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'` minor=`echo $VERSION | sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`