detect ICC and pass on "-we 147" so that the configure checks for function

arguments work properly - and the option is not harmful for the rest of the
curl build either!
This commit is contained in:
Daniel Stenberg
2006-04-19 11:11:10 +00:00
parent fede784fa2
commit 2df622fd14
2 changed files with 40 additions and 12 deletions

View File

@@ -306,6 +306,13 @@ AC_HELP_STRING([--disable-manual],[Disable built-in manual]),
dnl The actual use of the USE_MANUAL variable is done much later in this
dnl script to allow other actions to disable it as well.
dnl **********************************************************************
dnl check if this is the Intel ICC compiler, and if so make it stricter
dnl (convert warning 147 into an error) so that it properly can detect the
dnl gethostbyname_r() version
dnl **********************************************************************
CURL_DETECT_ICC([CFLAGS="$CFLAGS -we 147"])
dnl **********************************************************************
dnl Checks for libraries.
dnl **********************************************************************