diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-08-27 14:22:38 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-08-27 14:22:38 (GMT) |
commit | 6e2834a877748a7382585a5391e53f3941713b0d (patch) | |
tree | 19316d6c312bbd019df8d0311729d3a621ed006a /Templates/configure.in | |
parent | 66be1686da0c63454ba085a51527e9d52c6c5268 (diff) | |
download | CMake-6e2834a877748a7382585a5391e53f3941713b0d.zip CMake-6e2834a877748a7382585a5391e53f3941713b0d.tar.gz CMake-6e2834a877748a7382585a5391e53f3941713b0d.tar.bz2 |
ENH: use ANSI_CXXFLAGS for testing compiler
Diffstat (limited to 'Templates/configure.in')
-rw-r--r-- | Templates/configure.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Templates/configure.in b/Templates/configure.in index 8349654..898f105 100644 --- a/Templates/configure.in +++ b/Templates/configure.in @@ -525,7 +525,7 @@ if test $ac_cv_prog_gxx = no; then cat > conftest.cc <<! #include <iostream> ! - 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 <list> void foo() { std::list<int> 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 <<! void foo() { for(int i;;); for(int i;;); } ! - 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_FOR_SCOPE="1" |