summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-12 22:52:25 +0000
committerYang Tse <yangsita@gmail.com>2008-10-12 22:52:25 +0000
commita5cd95981da3cc0bdae510f633b0ca6366a06f53 (patch)
treec88d0c3ee663846550d3c62347c49aaab21bd105 /m4
parent3af497d2e021b0f157e1743cd47da63eb6762a8c (diff)
downloadc-ares-a5cd95981da3cc0bdae510f633b0ca6366a06f53.tar.gz
c-ares-a5cd95981da3cc0bdae510f633b0ca6366a06f53.tar.bz2
c-ares-a5cd95981da3cc0bdae510f633b0ca6366a06f53.zip
adjust SGI MIPSpro C detection
Diffstat (limited to 'm4')
-rw-r--r--m4/cares-compilers.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/cares-compilers.m4 b/m4/cares-compilers.m4
index 0a90d07..7a1cbd7 100644
--- a/m4/cares-compilers.m4
+++ b/m4/cares-compilers.m4
@@ -273,9 +273,11 @@ AC_DEFUN([CARES_CHECK_COMPILER_SGI_MIPSpro_C], [
AC_BEFORE([$0],[CARES_CHECK_COMPILER_SGI_MIPS_C])dnl
AC_MSG_CHECKING([if compiler is SGI MIPSpro C])
CURL_CHECK_DEF([__GNUC__], [], [silent])
+ CURL_CHECK_DEF([_COMPILER_VERSION], [], [silent])
CURL_CHECK_DEF([_SGI_COMPILER_VERSION], [], [silent])
if test "$curl_cv_have_def___GNUC__" = "no" &&
- test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes"; then
+ (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
+ test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
AC_MSG_RESULT([yes])
compiler_id="SGI_MIPSpro_C"
flags_dbg_all="-g -g0 -g1 -g2 -g3"