1
AC_DEFUN([AC_CXX_CHECK_STANDARD],[
2
AC_CACHE_CHECK([what C++ standard the compiler supports],
5
save_CXXFLAGS="${CXXFLAGS}"
6
CXXFLAGS="-std=gnu++0x ${CXXFLAGS}"
14
string foo("test string");
16
[ac_cv_cxx_standard="gnu++0x"],
17
[ac_cv_cxx_standard="gnu++98"])
18
CXXFLAGS="${save_CXXFLAGS}"
21
CXXFLAGS="-std=${ac_cv_cxx_standard} ${CXXFLAGS}"