Autotools and C++0x

November 2011


This, when put in configure.ac, will make g++ use the appropriate flags:

AC_PROG_CXX

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T

AC_LANG([C++])
AC_LANG_CPLUSPLUS
AC_CHECK_HEADER(cstdint)
AX_CXX_COMPILE_STDCXX_0X

CXXFLAGS='-Wall -std=gnu++0x'
    

A few links: