summaryrefslogtreecommitdiffstats
path: root/Templates
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-06-21 12:39:01 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-06-21 12:39:01 (GMT)
commita39a03c4d4e423a634d2ab1814876d841e0ae872 (patch)
tree33caea52202662ebd1d107b24a6c86184911d489 /Templates
parent3fc7253184550456e7898c63a2584ff2acca0faa (diff)
downloadCMake-a39a03c4d4e423a634d2ab1814876d841e0ae872.zip
CMake-a39a03c4d4e423a634d2ab1814876d841e0ae872.tar.gz
CMake-a39a03c4d4e423a634d2ab1814876d841e0ae872.tar.bz2
fix for sstream
Diffstat (limited to 'Templates')
-rw-r--r--Templates/cxxconfigure.in20
1 files changed, 9 insertions, 11 deletions
diff --git a/Templates/cxxconfigure.in b/Templates/cxxconfigure.in
index 63f48e0..9aafc86 100644
--- a/Templates/cxxconfigure.in
+++ b/Templates/cxxconfigure.in
@@ -113,19 +113,17 @@ if test $ac_cv_prog_gxx = no; then
fi
AC_SUBST(CMAKE_NO_ANSI_STREAM_HEADERS)
-# check non-g++ compilers to see if they have std::stringstream
-if test $ac_cv_prog_gxx = no; then
- AC_MSG_CHECKING( for ansi standard C++ stringstream )
- rm -rf conftest.*
- cat > conftest.cc <<!
+# check compilers to see if they have std::stringstream
+AC_MSG_CHECKING( for ansi standard C++ stringstream )
+rm -rf conftest.*
+cat > conftest.cc <<!
#include <sstream>
!
- 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_STRING_STREAM="1"
- echo "$ac_t""no" 1>&6
- fi
+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_STRING_STREAM="1"
+ echo "$ac_t""no" 1>&6
fi
AC_SUBST(CMAKE_NO_ANSI_STRING_STREAM)