summaryrefslogtreecommitdiffstats
path: root/Templates
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-28 18:27:04 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-28 18:27:04 (GMT)
commit5bd5e6553b2d5536a6423fd823a01137e26977a3 (patch)
treed4d3e1fcdd4430d909272c8132e20eacf6770140 /Templates
parent1b9a530ef4c3ce07c54667476f150d0a156430e6 (diff)
downloadCMake-5bd5e6553b2d5536a6423fd823a01137e26977a3.zip
CMake-5bd5e6553b2d5536a6423fd823a01137e26977a3.tar.gz
CMake-5bd5e6553b2d5536a6423fd823a01137e26977a3.tar.bz2
BUG: pass flags to compiler during configure
Diffstat (limited to 'Templates')
-rwxr-xr-xTemplates/configure4
-rw-r--r--Templates/configure.in4
2 files changed, 4 insertions, 4 deletions
diff --git a/Templates/configure b/Templates/configure
index 50f8686..522fb4a 100755
--- a/Templates/configure
+++ b/Templates/configure
@@ -2941,7 +2941,7 @@ echo "configure:2939: checking ansi standard C++ stream headers " >&5
cat > conftest.cc <<!
#include <iostream>
!
- if test -z "`${CXX} -c conftest.cc 2>&1`"; then
+ if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
echo "$ac_t""yes" 1>&6
else
CMAKE_NO_STD_NAMESPACE="1"
@@ -2960,7 +2960,7 @@ echo "configure:2958: checking ansi standard namespace support " >&5
#include <list>
void foo() { std::list<int> l; }
!
- if test -z "`${CXX} -c conftest.cc 2>&1`"; then
+ if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
echo "$ac_t""yes" 1>&6
else
CMAKE_NO_ANSI_STREAM_HEADERS="1"
diff --git a/Templates/configure.in b/Templates/configure.in
index a89ce30..a632a2d 100644
--- a/Templates/configure.in
+++ b/Templates/configure.in
@@ -517,7 +517,7 @@ if test $ac_cv_prog_gxx = no; then
cat > conftest.cc <<!
#include <iostream>
!
- if test -z "`${CXX} -c conftest.cc 2>&1`"; then
+ if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
echo "$ac_t""yes" 1>&6
else
CMAKE_NO_STD_NAMESPACE="1"
@@ -535,7 +535,7 @@ if test $ac_cv_prog_gxx = no; then
#include <list>
void foo() { std::list<int> l; }
!
- if test -z "`${CXX} -c conftest.cc 2>&1`"; then
+ if test -z "`${CXX} $CXXFLAGS $CPPFLAGS -c conftest.cc 2>&1`"; then
echo "$ac_t""yes" 1>&6
else
CMAKE_NO_ANSI_STREAM_HEADERS="1"