diff --git a/Templates/configure b/Templates/configure index 8ee52787cc..de543ad7b4 100755 --- a/Templates/configure +++ b/Templates/configure @@ -4532,7 +4532,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_ANSI_CXXFLAGS} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else CMAKE_NO_ANSI_STREAM_HEADERS="1" @@ -4549,7 +4549,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_ANSI_CXXFLAGS} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else CMAKE_NO_STD_NAMESPACE="1" @@ -4565,7 +4565,7 @@ echo $ECHO_N "checking ansi for scope support ... $ECHO_C" >&6 cat > conftest.cc <&1`"; then + if test -z "`${CXX} ${CMAKE_ANSI_CXXFLAGS} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else CMAKE_NO_ANSI_FOR_SCOPE="1" diff --git a/Templates/configure.in b/Templates/configure.in index 8349654a43..898f105f20 100644 --- a/Templates/configure.in +++ b/Templates/configure.in @@ -525,7 +525,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_ANSI_CXXFLAGS} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else CMAKE_NO_ANSI_STREAM_HEADERS="1" @@ -542,7 +542,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_ANSI_CXXFLAGS} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else CMAKE_NO_STD_NAMESPACE="1" @@ -558,7 +558,7 @@ if test $ac_cv_prog_gxx = no; then cat > conftest.cc <&1`"; then + if test -z "`${CXX} ${CMAKE_ANSI_CXXFLAGS} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then echo "$ac_t""yes" 1>&6 else CMAKE_NO_ANSI_FOR_SCOPE="1"