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 | |
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')
-rwxr-xr-x | Templates/configure | 6 | ||||
-rw-r--r-- | Templates/configure.in | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/Templates/configure b/Templates/configure index 8ee5278..de543ad 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 <<! #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" @@ -4549,7 +4549,7 @@ echo $ECHO_N "checking ansi standard namespace support ... $ECHO_C" >&6 #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" @@ -4565,7 +4565,7 @@ echo $ECHO_N "checking ansi for scope support ... $ECHO_C" >&6 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" 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" |