trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject trafficserver git commit: TS-3568 Fix C++ detection so we always get one appropriately modern -std= option
Date Wed, 27 May 2015 04:39:58 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master f265aae62 -> 23cc73e8a


TS-3568 Fix C++ detection so we always get one appropriately modern -std= option


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/23cc73e8
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/23cc73e8
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/23cc73e8

Branch: refs/heads/master
Commit: 23cc73e8a72cca038855f60269884a44e9139f29
Parents: f265aae
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Tue May 26 22:39:28 2015 -0600
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Tue May 26 22:39:28 2015 -0600

----------------------------------------------------------------------
 build/ax_cxx_compile_stdcxx_11.m4 | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/23cc73e8/build/ax_cxx_compile_stdcxx_11.m4
----------------------------------------------------------------------
diff --git a/build/ax_cxx_compile_stdcxx_11.m4 b/build/ax_cxx_compile_stdcxx_11.m4
index d8a1aee..a8b7d52 100644
--- a/build/ax_cxx_compile_stdcxx_11.m4
+++ b/build/ax_cxx_compile_stdcxx_11.m4
@@ -52,15 +52,9 @@ AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [dnl
         [$2], [optional], [ax_cxx_compile_cxx11_required=false],
         [m4_fatal([invalid second argument `$2' to AX_CXX_COMPILE_STDCXX_11])])
   AC_LANG_PUSH([C++])dnl
+
+# We now require either -std=c++11 or -std=c++0x, so don't test without either
   ac_success=no
-  AC_CACHE_CHECK(whether $CXX supports C++11 features by default,
-  ax_cv_cxx_compile_cxx11,
-  [AC_COMPILE_IFELSE([AC_LANG_SOURCE([_AX_CXX_COMPILE_STDCXX_11_testbody])],
-    [ax_cv_cxx_compile_cxx11=yes],
-    [ax_cv_cxx_compile_cxx11=no])])
-  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
-    ac_success=yes
-  fi
 
   m4_if([$1], [noext], [], [dnl
   if test x$ac_success = xno; then


Mime
View raw message