summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-10 17:35:22 +0000
committerYang Tse <yangsita@gmail.com>2008-09-10 17:35:22 +0000
commit9a36d5718d96f20e4de3d708004c6d691b164cf8 (patch)
treeda242f554ca90e6c2da2aecb393f7f526089b8fd
parent34cc272d982bfcd39e9f2b30873bea429a5cb9f9 (diff)
downloadc-ares-9a36d5718d96f20e4de3d708004c6d691b164cf8.tar.gz
c-ares-9a36d5718d96f20e4de3d708004c6d691b164cf8.tar.bz2
c-ares-9a36d5718d96f20e4de3d708004c6d691b164cf8.zip
icc adjustments
-rw-r--r--configure.ac10
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 9c5c426..745a39c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -227,17 +227,17 @@ 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"
+ CPPFLAGS="$CPPFLAGS -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"
+ CPPFLAGS="$CPPFLAGS -std=c89 -D__STRICT_ANSI__"
dnl Change some warnings into errors
dnl #140: too many arguments in function call
dnl #147: declaration is incompatible with 'previous one'
dnl #165: too few arguments in function call
dnl #266: function declared implicitly
- CFLAGS="$CFLAGS -we 140,147,165,266"
+ CPPFLAGS="$CPPFLAGS -we 140,147,165,266"
+ dnl Disable use of ANSI C aliasing rules in optimizations
+ CFLAGS="$CFLAGS -no-ansi-alias"
else
AC_MSG_RESULT([no])
fi