aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-08 16:48:58 +0000
committerYang Tse <yangsita@gmail.com>2008-09-08 16:48:58 +0000
commita3787eff192c5f862651b5acdc4a4dfa1cac7e3d (patch)
tree56fdcb83f18678a758924ccf2b3f46928416346b /ares
parent836d945ecede0ad1f252f1bcb2170d8e2cecbe34 (diff)
Select strict ANSI C89 conformance for icc
Diffstat (limited to 'ares')
-rw-r--r--ares/configure.ac14
1 files changed, 14 insertions, 0 deletions
diff --git a/ares/configure.ac b/ares/configure.ac
index 6a8cf7dce..fe8a7a7f0 100644
--- a/ares/configure.ac
+++ b/ares/configure.ac
@@ -229,6 +229,20 @@ else
AC_MSG_RESULT([no])
fi
+AC_MSG_CHECKING([whether we are using the Intel C compiler])
+CURL_CHECK_DEF([__INTEL_COMPILER], [], [silent])
+if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
+ AC_MSG_RESULT([yes])
+ dnl Select strict ANSI C conformance
+ CFLAGS="$CFLAGS -strict-ansi"
+ dnl Select ANSI C dialect
+ CFLAGS="$CFLAGS -std=c89"
+ dnl Disable use of ANSI C aliasing rules in optimizations
+ CFLAGS="$CFLAGS -no-ansi-alias"
+else
+ AC_MSG_RESULT([no])
+fi
+
AC_MSG_CHECKING([whether we are using the DEC/Compaq C compiler])
CURL_CHECK_DEF([__DECC], [], [silent])
CURL_CHECK_DEF([__DECC_VER], [], [silent])