summaryrefslogtreecommitdiffstats
path: root/Templates
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-08-27 14:22:38 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-08-27 14:22:38 (GMT)
commit6e2834a877748a7382585a5391e53f3941713b0d (patch)
tree19316d6c312bbd019df8d0311729d3a621ed006a /Templates
parent66be1686da0c63454ba085a51527e9d52c6c5268 (diff)
downloadCMake-6e2834a877748a7382585a5391e53f3941713b0d.zip
CMake-6e2834a877748a7382585a5391e53f3941713b0d.tar.gz
CMake-6e2834a877748a7382585a5391e53f3941713b0d.tar.bz2
ENH: use ANSI_CXXFLAGS for testing compiler
Diffstat (limited to 'Templates')
-rwxr-xr-xTemplates/configure6
-rw-r--r--Templates/configure.in6
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"