diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-08-22 15:38:06 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-08-22 15:38:06 (GMT) |
commit | b5cff36fb7b5e432c423771ef7e41e925eb9d94f (patch) | |
tree | bb3b0247bd5e388ddf39d4408af67c8f2b29ef04 /configure.in | |
parent | 0401303263fd17805a349598216ade04b6e9a68a (diff) | |
download | CMake-b5cff36fb7b5e432c423771ef7e41e925eb9d94f.zip CMake-b5cff36fb7b5e432c423771ef7e41e925eb9d94f.tar.gz CMake-b5cff36fb7b5e432c423771ef7e41e925eb9d94f.tar.bz2 |
BUG: fix for OSF compiler to use ansi mode for streams
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 5b084e2..a464534 100644 --- a/configure.in +++ b/configure.in @@ -87,7 +87,19 @@ case $system in echo "$ac_t""no" 1>&6 fi rm -f conftest* - ;; + ;; + OSF1-*) + echo $ac_n "checking whether ${CXX} accepts -std strict_ansi""... $ac_c" 1>&6 + echo 'void f(){}' > conftest.c + if test -z "`${CXX} -std strict_ansi -c conftest.c 2>&1`"; then + echo "$ac_t""yes" 1>&6 + CMAKE_ANSI_CXXFLAGS="-std strict_ansi" + else + echo "$ac_t""no" 1>&6 + fi + rm -f conftest* + ;; + esac fi AC_SUBST(CMAKE_ANSI_CFLAGS) |