From 38c7b0f4e74e49d5808bf9fc4c79333ee6b3291a Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Wed, 5 Oct 2022 17:18:35 +0300 Subject: [#2311] detect C++20 in autoconf And enforce -std=c++20 when building --with-libyang-cpp or --with-sysrepo-cpp. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 9f9336a83c..99d38edf48 100644 --- a/configure.ac +++ b/configure.ac @@ -161,6 +161,9 @@ AM_CONDITIONAL(USE_CLANGPP, test "X${CLANGPP}" = "Xyes") # Check for C++11 features support AX_ISC_CPP11 +# Check for C++20 compiler support. +AX_ISC_CPP20 + # Check for std::is_base_of support AC_MSG_CHECKING([for std::is_base_of]) AC_COMPILE_IFELSE( -- cgit v1.2.3