AC_PROG_CXX: Add checks for C++11, C++98TR1 and C++98
commitbd79b51000e2fe59368c93ff463adb59852ec6e7
authorRoger Leigh <rleigh@debian.org>
Sun, 20 Jan 2013 18:50:49 +0000 (20 18:50 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 29 Jan 2013 07:32:05 +0000 (28 23:32 -0800)
treeff12eda9d0326d9ebb6d1a654f1c11ac1c1b3f44
parent93ed0f152487f069b68e772bf2e0c48e3ce0f8d5
AC_PROG_CXX: Add checks for C++11, C++98TR1 and C++98

These checks are the C++ equivalent of the existing C
standards checks.
* doc/autoconf.texi (C++ Compiler): Document new behavior.
* lib/autoconf/c.m4 (AC_PROG_CXX): Try for C++11,
falling back to C++98.
(_AC_CXX_STD_TRY, _AC_CXX_CXX98_TEST_HEADER, _AC_CXX_CXX98_TEST_BODY)
(_AC_CXX_CXX11_TEST_HEADER, _AC_CXX_CXX11_TEST_BODY)
(_AC_PROG_CXX_CXX98, _AC_PROG_CXX_CXX11):
New macros.
doc/autoconf.texi
lib/autoconf/c.m4