summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2019-10-27 14:51:44 +0100
committerMurray Cumming <murrayc@murrayc.com>2019-10-27 14:54:16 +0100
commitb63fee88f7fc7cd9cd28f2e83f938b0fdbe90e69 (patch)
treedaaad1ce751acf2e98e18c0920e6cb36ce78dea0
parent4007a445a252330ff44217b1338e07681cde3a7f (diff)
downloadmm-common-c++20.tar.gz
wip: MM_AX_CXX_COMPILE_STDCXX(): Allow 20 as a possible valuec++20
By using the --std=2a option available with recent g++ and clang++ versions.
-rw-r--r--macros/mm-ax_cxx_compile_stdcxx.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/macros/mm-ax_cxx_compile_stdcxx.m4 b/macros/mm-ax_cxx_compile_stdcxx.m4
index ebd372f..e93067d 100644
--- a/macros/mm-ax_cxx_compile_stdcxx.m4
+++ b/macros/mm-ax_cxx_compile_stdcxx.m4
@@ -53,6 +53,7 @@ AC_DEFUN([MM_AX_CXX_COMPILE_STDCXX], [dnl
m4_if([$1], [11], [ax_cxx_compile_alternatives="11 0x"],
[$1], [14], [ax_cxx_compile_alternatives="14 1y"],
[$1], [17], [ax_cxx_compile_alternatives="17 1z"],
+ [$1], [20], [ax_cxx_compile_alternatives="20 2a"],
[m4_fatal([invalid first argument `$1' to MM_AX_CXX_COMPILE_STDCXX])])dnl
m4_if([$2], [], [],
[$2], [ext], [],
@@ -157,6 +158,11 @@ m4_define([_MM_AX_CXX_COMPILE_STDCXX_testbody_17],
_MM_AX_CXX_COMPILE_STDCXX_testbody_new_in_17
)
+m4_define([_MM_AX_CXX_COMPILE_STDCXX_testbody_20],
+ _MM_AX_CXX_COMPILE_STDCXX_testbody_new_in_17
+ // TODO
+)
+
dnl Tests for new features in C++11
m4_define([_MM_AX_CXX_COMPILE_STDCXX_testbody_new_in_11], [[