From d1ca23a3f9980875dff593da718353c7b9151083 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 24 Aug 2001 17:12:58 -0400 Subject: [PATCH] auto detect lang:std: --- configure | 6 +++--- configure.in | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 86b154e8b..95d3c9d96 100755 --- a/configure +++ b/configure @@ -2007,7 +2007,7 @@ echo $ECHO_N "checking ansi standard C++ stream headers ... $ECHO_C" >&6 cat > conftest.cc < ! - if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then + if test -z "`${CXX} $CMAKE_TEMPLATE_FLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else cat >>confdefs.h <<\EOF @@ -2027,7 +2027,7 @@ echo $ECHO_N "checking ansi standard namespace support ... $ECHO_C" >&6 #include void foo() { std::list l; } ! - if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then + if test -z "`${CXX} $CMAKE_TEMPLATE_FLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else cat >>confdefs.h <<\EOF @@ -2046,7 +2046,7 @@ echo $ECHO_N "checking ansi for scope support ... $ECHO_C" >&6 cat > conftest.cc <&1`"; then + if test -z "`${CXX} $CMAKE_TEMPLATE_FLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else cat >>confdefs.h <<\EOF diff --git a/configure.in b/configure.in index 823a27bca..d4030ba4f 100644 --- a/configure.in +++ b/configure.in @@ -102,7 +102,7 @@ if test $ac_cv_prog_gxx = no; then cat > conftest.cc < ! - if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then + if test -z "`${CXX} $CMAKE_TEMPLATE_FLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else AC_DEFINE(CMAKE_NO_ANSI_STREAM_HEADERS) @@ -118,7 +118,7 @@ if test $ac_cv_prog_gxx = no; then #include void foo() { std::list l; } ! - if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then + if test -z "`${CXX} $CMAKE_TEMPLATE_FLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else AC_DEFINE(CMAKE_NO_STD_NAMESPACE) @@ -133,7 +133,7 @@ if test $ac_cv_prog_gxx = no; then cat > conftest.cc <&1`"; then + if test -z "`${CXX} $CMAKE_TEMPLATE_FLAGS $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else AC_DEFINE(CMAKE_NO_ANSI_FOR_SCOPE)