diff --git a/configure.ac b/configure.ac index 8beb2aeb28..49e7d55642 100644 --- a/configure.ac +++ b/configure.ac @@ -158,8 +158,8 @@ AC_CHECK_DECL([__clang__], [CLANGPP="yes"], [CLANGPP="no"]) # USE_CLANGPP is no longer used, keep it by symmetry with USE_GXX? AM_CONDITIONAL(USE_CLANGPP, test "X${CLANGPP}" = "Xyes") -# Check for C++11 features support -AX_ISC_CPP11 +# Check for C++14 features support +AX_ISC_CPP14 # Check for C++20 compiler support. AX_ISC_CPP20 @@ -614,7 +614,7 @@ AC_COMPILE_IFELSE( ) usable_regex= -AC_MSG_CHECKING(for usable C++11 regex) +AC_MSG_CHECKING(for usable C++14 regex) AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include #include @@ -633,7 +633,7 @@ int main() { # usable or not. # Let's be optimistic and assume it is by testing only the negative case. if test "x$usable_regex" != "xno" ; then - AC_DEFINE(USE_REGEX, 1, [Define to 1 if C++11 regex is usable]) + AC_DEFINE(USE_REGEX, 1, [Define to 1 if C++14 regex is usable]) fi # Check for NETCONF support. If NETCONF was enabled in the build, and this check @@ -971,7 +971,7 @@ AC_CHECK_LIB(pthread, pthread_create,[ LDFLAGS="$LDFLAGS -lpthread" ], []) AX_TLS # -# Some Googletest versions bug with C++11 compilers +# Some Googletest versions bug with C++14 compilers # if test $enable_gtest != "no"; then AC_MSG_CHECKING([if Google Test is compatible with the compiler]) diff --git a/doc/sphinx/arm/install.rst b/doc/sphinx/arm/install.rst index 63e41e6303..3ac96b6d1a 100644 --- a/doc/sphinx/arm/install.rst +++ b/doc/sphinx/arm/install.rst @@ -153,7 +153,7 @@ the system: - log4cplus (at least version 1.0.3) development include headers. -- A C++ compiler (with C++11 support) and standard development headers. +- A C++ compiler (with C++14 support) and standard development headers. The Kea build has been checked with GCC g++ 4.8.5 and some later versions, and Clang 800.0.38 and some later versions. diff --git a/m4macros/ax_cpp11.m4 b/m4macros/ax_cpp14.m4 similarity index 97% rename from m4macros/ax_cpp11.m4 rename to m4macros/ax_cpp14.m4 index 65a7044c4b..7f39a74ca3 100644 --- a/m4macros/ax_cpp11.m4 +++ b/m4macros/ax_cpp14.m4 @@ -1,13 +1,13 @@ -AC_DEFUN([AX_ISC_CPP11], [ +AC_DEFUN([AX_ISC_CPP14], [ CXX_SAVED=$CXX feature= -for retry in "none" "--std=c++11" "--std=c++0x" "--std=c++1x" "fail"; do +for retry in "none" "--std=c++14" "--std=c++0x" "--std=c++1x" "fail"; do if test "$retry" = "fail"; then - AC_MSG_ERROR([$feature (a C++11 feature) is not supported]) + AC_MSG_ERROR([$feature (a C++14 feature) is not supported]) fi if test "$retry" != "none"; then - AC_MSG_WARN([unsupported C++11 feature]) + AC_MSG_WARN([unsupported C++14 feature]) AC_MSG_NOTICE([retrying by adding $retry to $CXX]) CXX="$CXX_SAVED $retry" AC_MSG_CHECKING($retry support) @@ -238,4 +238,4 @@ for retry in "none" "--std=c++11" "--std=c++0x" "--std=c++1x" "fail"; do break done -])dnl AX_ISC_CPP11 +])dnl AX_ISC_CPP14 diff --git a/platforms.rst b/platforms.rst index 82465b819a..70a6bf9126 100644 --- a/platforms.rst +++ b/platforms.rst @@ -4,7 +4,7 @@ Supported Platforms =================== In general, this version of Kea builds and runs on any POSIX-compliant -system with a C++ compiler (with C++11 support), the Botan cryptographic library, +system with a C++ compiler (with C++14 support), the Botan cryptographic library, the log4cplus logging library and the Boost system library. The Kea build has been checked with GCC g++ 4.8.5 and some later versions,