diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-12-10 22:01:13 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-12-10 22:01:13 +0000 |
commit | 519410d8b960eb106faaaf0548e2bd9259809546 (patch) | |
tree | 0a1d51a69ee999f62f9eb5645af0c7aaf1ba162a /m4 | |
parent | c638cc0c48ac2b0cfb3a919f00e0b65323b5bf16 (diff) | |
download | ATCD-519410d8b960eb106faaaf0548e2bd9259809546.tar.gz |
ChangeLogTag:Fri Dec 10 15:55:53 1999 Ossama Othman
<othman@cs.wustl.edu>
Diffstat (limited to 'm4')
-rw-r--r-- | m4/compiler.m4 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/m4/compiler.m4 b/m4/compiler.m4 index 9da587c0a33..b180044e14a 100644 --- a/m4/compiler.m4 +++ b/m4/compiler.m4 @@ -182,6 +182,10 @@ AC_DEFUN(ACE_SET_COMPILER_FLAGS, dnl *solaris2*) case "$CXX" in CC) + if test "$ace_user_enable_exceptions" != yes; then + CXXFLAGS="$CXXFLAGS -noex" + fi + dnl Some flags only work with Sun C++ 4.2 if (CC -V 2>&1 | egrep 'Compilers 4\.2' > /dev/null); then CXXFLAGS="$CXXFLAGS -features=castop" @@ -190,10 +194,11 @@ AC_DEFUN(ACE_SET_COMPILER_FLAGS, dnl fi fi - if test "$ace_user_enable_exceptions" != yes; then - CXXFLAGS="$CXXFLAGS -noex" + dnl Sun C++ 5.0 weirdness + if (CC -V 2>&1 | egrep 'Compilers 5\.0' > /dev/null); then + CXXFLAGS="$CXXFLAGS -library=iostream,no%Cstd -instances=explicit" - if (CC -V 2>&1 | egrep 'Compilers 5\.0' > /dev/null); then + if test "$ace_user_enable_exceptions" != yes; then dnl See /opt/SUNWspro_5.0/SC5.0/include/CC/stdcomp.h. AC_DEFINE(_RWSTD_NO_EXCEPTIONS) fi |