diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-09-13 15:09:07 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-09-13 15:09:07 (GMT) |
commit | 9d59d651a149ff230621234fdb723d383e502e45 (patch) | |
tree | ba65d20056a5488bf0fc0cb78671f8ef86b21ef3 /Templates/cxxconfigure.in | |
parent | 9e6489581283ffda10a664602bc9ea473c2c0c07 (diff) | |
download | CMake-9d59d651a149ff230621234fdb723d383e502e45.zip CMake-9d59d651a149ff230621234fdb723d383e502e45.tar.gz CMake-9d59d651a149ff230621234fdb723d383e502e45.tar.bz2 |
now uses TryCompile
Diffstat (limited to 'Templates/cxxconfigure.in')
-rw-r--r-- | Templates/cxxconfigure.in | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/Templates/cxxconfigure.in b/Templates/cxxconfigure.in index 168ca7b..f714843 100644 --- a/Templates/cxxconfigure.in +++ b/Templates/cxxconfigure.in @@ -132,28 +132,6 @@ if test $ac_cv_prog_gxx = no; then fi AC_SUBST(CMAKE_TEMPLATE_FLAGS) - -# check non-g++ compilers to see if they have the standard -# ansi stream files (without the .h) -if test $ac_cv_prog_gxx = no; then - CXXFLAGS_ORIG="$CXXFLAGS" - CXXFLAGS="$CMAKE_ANSI_CXXFLAGS $CXXFLAGS" - AC_MSG_CHECKING( ansi standard C++ stream headers ) - AC_LANG_SAVE - AC_LANG_CPLUSPLUS - AC_TRY_COMPILE([ - #include <iostream> - ],,[ - AC_MSG_RESULT(yes) - ],[ - CMAKE_NO_ANSI_STREAM_HEADERS=1 - AC_MSG_RESULT(no) - ]) - AC_LANG_RESTORE - CXXFLAGS="$CXXFLAGS_ORIG" -fi -AC_SUBST(CMAKE_NO_ANSI_STREAM_HEADERS) - # check compilers to see if they have std::stringstream CXXFLAGS_ORIG="$CXXFLAGS" CXXFLAGS="$CMAKE_ANSI_CXXFLAGS $CXXFLAGS" |