2015-01-30 16:49:14 +11:00
|
|
|
AC_DEFUN([NC_CXX],[
|
2015-02-03 00:15:28 +11:00
|
|
|
AX_CHECK_COMPILE_FLAG(
|
2015-04-29 17:43:37 +10:00
|
|
|
[-std=c++1z],
|
|
|
|
[AX_APPEND_FLAG([-std=c++1z], [CXXFLAGS])],
|
2015-08-10 15:43:41 +10:00
|
|
|
[AC_ERROR([Unable to enable c++1z])]
|
2015-02-03 00:15:28 +11:00
|
|
|
)
|
2015-01-30 16:49:14 +11:00
|
|
|
|
2015-04-29 17:43:37 +10:00
|
|
|
AX_APPEND_COMPILE_FLAGS([-pipe], [], [-Werror])
|
|
|
|
|
2015-01-30 16:49:14 +11:00
|
|
|
AX_APPEND_COMPILE_FLAGS([-fno-deduce-init-list], [], [-Werror])
|
|
|
|
AX_APPEND_COMPILE_FLAGS([-fno-deduce-init-list], [], [-Werror])
|
|
|
|
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_RESTRICT
|
|
|
|
AC_C_INLINE
|
|
|
|
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([struct A { virtual void C (void) = 0; };
|
|
|
|
struct B : A { void C (void) override; }; ],
|
|
|
|
[])],
|
|
|
|
[], [AC_DEFINE([override], [], [Pretend about override keyword support])])
|
|
|
|
|
|
|
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([struct A final { }; ],
|
|
|
|
[])],
|
|
|
|
[], [AC_DEFINE([final], [], [Pretend about final keyword support])])
|
|
|
|
|
2015-09-10 14:40:18 +10:00
|
|
|
AX_APPEND_COMPILE_FLAGS([-fvisibility=hidden], [], [-Werror])
|
2015-01-30 16:49:14 +11:00
|
|
|
])
|