diff --git a/ares/configure.ac b/ares/configure.ac index 159d98fe22cefb91235f310e8c2273acadbf04e4..9aacaea90182d3677467e9afe18d45e9fa612a92 100644 --- a/ares/configure.ac +++ b/ares/configure.ac @@ -226,10 +226,9 @@ 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 - CPPFLAGS="$CPPFLAGS -strict-ansi" - dnl Select ANSI C dialect - CPPFLAGS="$CPPFLAGS -std=c89 -D__STRICT_ANSI__" + dnl On Linux this compiler uses gcc's header files, so + dnl we select ANSI C89 dialect plus GNU extensions. + CPPFLAGS="$CPPFLAGS -std=gnu89" dnl Change some warnings into errors dnl #140: too many arguments in function call dnl #147: declaration is incompatible with 'previous one' diff --git a/configure.ac b/configure.ac index af6fae5e0048f51d76b778583c3dd6184c7090d2..bd58e7d3054f934354f0c19549767d49c1f1668a 100644 --- a/configure.ac +++ b/configure.ac @@ -300,10 +300,9 @@ 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 - CPPFLAGS="$CPPFLAGS -strict-ansi" - dnl Select ANSI C dialect - CPPFLAGS="$CPPFLAGS -std=c89 -D__STRICT_ANSI__" + dnl On Linux this compiler uses gcc's header files, so + dnl we select ANSI C89 dialect plus GNU extensions. + CPPFLAGS="$CPPFLAGS -std=gnu89" dnl Change some warnings into errors dnl #140: too many arguments in function call dnl #147: declaration is incompatible with 'previous one'