diff --git a/m4/nc_cxx.m4 b/m4/nc_cxx.m4 index 7e675ab3..f4d7f91a 100644 --- a/m4/nc_cxx.m4 +++ b/m4/nc_cxx.m4 @@ -1,10 +1,12 @@ AC_DEFUN([NC_CXX],[ AX_CHECK_COMPILE_FLAG( - [-std=c++1y], - [AX_APPEND_FLAG([-std=c++1y], [CXXFLAGS])], + [-std=c++1z], + [AX_APPEND_FLAG([-std=c++1z], [CXXFLAGS])], [AC_ERROR([Unable to enable c++1y])] ) + AX_APPEND_COMPILE_FLAGS([-pipe], [], [-Werror]) + AX_APPEND_COMPILE_FLAGS([-fno-deduce-init-list], [], [-Werror]) AX_APPEND_COMPILE_FLAGS([-fno-deduce-init-list], [], [-Werror])