summaryrefslogtreecommitdiffstats
path: root/m4macros
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2023-07-18 18:29:12 +0200
committerFrancis Dupont <fdupont@isc.org>2023-07-19 00:46:18 +0200
commit976633c8a15c885ea012c114531fdc02f9ede3c0 (patch)
tree0b9cb97224753287fd51ec5c2989342cd9108e21 /m4macros
parent[#2876] Fixed m4macros Makefile (diff)
downloadkea-976633c8a15c885ea012c114531fdc02f9ede3c0.tar.xz
kea-976633c8a15c885ea012c114531fdc02f9ede3c0.zip
[#2876] Addressed comments
Diffstat (limited to 'm4macros')
-rw-r--r--m4macros/ax_cpp14.m414
1 files changed, 13 insertions, 1 deletions
diff --git a/m4macros/ax_cpp14.m4 b/m4macros/ax_cpp14.m4
index 7f39a74ca3..bc445829c2 100644
--- a/m4macros/ax_cpp14.m4
+++ b/m4macros/ax_cpp14.m4
@@ -2,7 +2,7 @@ AC_DEFUN([AX_ISC_CPP14], [
CXX_SAVED=$CXX
feature=
-for retry in "none" "--std=c++14" "--std=c++0x" "--std=c++1x" "fail"; do
+for retry in "none" "--std=c++14" "--std=c++1y" "fail"; do
if test "$retry" = "fail"; then
AC_MSG_ERROR([$feature (a C++14 feature) is not supported])
fi
@@ -235,6 +235,18 @@ for retry in "none" "--std=c++14" "--std=c++0x" "--std=c++1x" "fail"; do
[AC_MSG_RESULT([yes])],
[AC_MSG_RESULT([no])
continue])
+
+ AC_MSG_CHECKING(variable template support)
+ feature="variable template"
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [template<class T>
+ constexpr T pi = T(3.1415926535897932385L);],
+ [int a = pi<int>;],
+ )],
+ [AC_MSG_RESULT([yes])],
+ [AC_MSG_RESULT([no])
+ continue])
break
done