From 4ddad7b34f37f87e33e833f75a071c3775adc8cd Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Tue, 5 Mar 2019 00:48:31 -0800 Subject: CentOS6 cannot use newer GDB releases ... unless one retrofits it with a decent compiler instead of stock GCC 4.4. While here, sync up the ax_*.m4 with autoconf-archive. Signed-off-by: Alexey Neyman --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 566b0248..ae4a0274 100644 --- a/configure.ac +++ b/configure.ac @@ -97,6 +97,9 @@ AC_PROG_YACC AS_IF([test -z "$CC" -o -z "$CXX"], [AC_MSG_ERROR([no suitable compiler found])]) +AX_CXX_COMPILE_STDCXX([11],, [optional]) +CTNG_SET_KCONFIG_OPTION([has_cxx11], [${HAVE_CXX11}]) + # Check to see if the compiler can link statically AC_MSG_CHECKING([if $CC can static link]) echo "int main() {}" | ${CC} -static -o /dev/null -xc - > /dev/null 2>&1 -- cgit v1.2.3