diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
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 |