summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>1999-12-10 22:01:13 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>1999-12-10 22:01:13 +0000
commit87506771b57a1d438c9389b58702a48185ad355f (patch)
tree0a1d51a69ee999f62f9eb5645af0c7aaf1ba162a /m4
parent56e2ddd7c23d505b10b8e1912465cd34ddf09658 (diff)
downloadATCD-87506771b57a1d438c9389b58702a48185ad355f.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.m411
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