From: Francis Dupont Date: Fri, 14 Oct 2016 11:50:03 +0000 (+0200) Subject: [5049] Take and display C++ standard version in configure X-Git-Tag: trac5060_base~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05e30403587a26846e52684d9398f932596f7bfb;p=thirdparty%2Fkea.git [5049] Take and display C++ standard version in configure --- diff --git a/configure.ac b/configure.ac index 1cf71532fd..4dcb0a09ed 100644 --- a/configure.ac +++ b/configure.ac @@ -116,6 +116,17 @@ if test $? -eq 0; then GNU_SED=yes fi +# Display the C++ version +AC_MSG_CHECKING([C++ version]) +cat > conftest.cpp << EOF +long v = __cplusplus; +EOF +CXX_STANDARD=`$CXX $CXXFLAGS -E -o - conftest.cpp | grep '^long v = ' | $SED -e 's/^long v = //' -e 's/[[^0-9]]*$//' 2> /dev/null` +if test -z "$CXX_STANDARD"; then + CXX_STANDARD="unknown" +fi +AC_MSG_RESULT([$CXX_STANDARD]) + # Linker options # check -R, "-Wl,-R" or -rpath @@ -1622,6 +1633,7 @@ Package: C++ Compiler: CXX: ${CXX} CXX_VERSION: ${CXX_VERSION} + CXX_STANDARD: ${CXX_STANDARD} DEFS: ${DEFS} CPPFLAGS: ${CPPFLAGS} CXXFLAGS: ${CXXFLAGS}