aboutsummaryrefslogtreecommitdiffhomepage
path: root/m4
diff options
context:
space:
mode:
authorGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-05-28 00:48:15 +0000
committerGravatar kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d>2009-05-28 00:48:15 +0000
commita5183461f8c81a51d58bf85e5168d5c2ea86ad1d (patch)
treebd1a9096a9de8cb2f9874e1d096a4f0c4747a256 /m4
parentb43727981c460cf934f894a8ddb3819ffcf9a6fe (diff)
Fixes to acx_check_suncc.m4 from Monty Taylor.
Diffstat (limited to 'm4')
-rw-r--r--m4/acx_check_suncc.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/acx_check_suncc.m4 b/m4/acx_check_suncc.m4
index 6e8fc187..795a42cc 100644
--- a/m4/acx_check_suncc.m4
+++ b/m4/acx_check_suncc.m4
@@ -12,7 +12,8 @@ dnl Sun CC at my disposal for testing, someone else will have to do it.
AC_DEFUN([ACX_CHECK_SUNCC],[
- AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
+ AC_LANG_PUSH([C++])
+ AC_CHECK_DECL([__SUNPRO_CC], [SUNCC="yes"], [SUNCC="no"])
AS_IF([test "$SUNCC" = "yes"],[
isainfo_k=`isainfo -k`
@@ -30,4 +31,5 @@ AC_DEFUN([ACX_CHECK_SUNCC],[
CFLAGS="-g -xO4 -xlibmil -xdepend -Xa -mt -xstrconst ${IS_64} ${MEMALIGN_FLAGS} $CFLAGS"
CXXFLAGS="-g -xO4 -xlibmil -mt ${IS_64} ${MEMALIGN_FLAGS} -xlang=c99 -compat=5 -library=stlport4 -template=no%extdef $CXXFLAGS"
])
+ AC_LANG_POP()
])