From f14c7120014d6d5a5794206110cdffb457306238 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 26 Apr 2021 19:19:59 +0100 Subject: [PATCH] Correct disabling of c++11 testing C++11 testing was not being turned off when the C++ compiler check for C++11 features failed and 'configure --enable-cpp11-testing' was used --- Examples/test-suite/common.mk | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/test-suite/common.mk b/Examples/test-suite/common.mk index 1e59f6dca..5a44980cc 100644 --- a/Examples/test-suite/common.mk +++ b/Examples/test-suite/common.mk @@ -677,7 +677,7 @@ ifndef SKIP_CPP_STD_CASES CPP_TEST_CASES += ${CPP_STD_TEST_CASES} endif -ifneq (,$(HAVE_CXX11)) +ifeq (1,$(HAVE_CXX11)) CPP_TEST_CASES += $(CPP11_TEST_CASES) endif diff --git a/configure.ac b/configure.ac index fe53f7d40..180515dfe 100644 --- a/configure.ac +++ b/configure.ac @@ -345,6 +345,7 @@ if test x"$enable_cpp11_testing" = xyes; then CXX=$CXX_SAVED CXXCPP=$CXXCPP_SAVED fi +AC_SUBST(HAVE_CXX11) # On darwin 10.7,10.8,10.9 using clang++, need to ensure using # libc++ for tests and examples to run under mono. May affect @@ -401,7 +402,6 @@ AC_SUBST(TRYLINKINGWITHCXX) AC_SUBST(RPATH) AC_SUBST(PLATCFLAGS) AC_SUBST(PLATCXXFLAGS) -AC_SUBST(HAVE_CXX11) AC_SUBST(LINKFORSHARED) # This variation is needed on OS-X because there is no (apparent) consistency in shared library naming.