diff options
author | Yang Tse <yangsita@gmail.com> | 2007-10-18 16:24:14 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-10-18 16:24:14 +0000 |
commit | b8a1ea0e833338a7f77917c28584efd1f3d72a2b (patch) | |
tree | dbd245688774a6070905ca4332d324aea2d68e11 /configure.ac | |
parent | 788acb901c8edb31ef2e4e20ee3efbf27bc25fbb (diff) | |
download | c-ares-b8a1ea0e833338a7f77917c28584efd1f3d72a2b.tar.gz c-ares-b8a1ea0e833338a7f77917c28584efd1f3d72a2b.tar.bz2 c-ares-b8a1ea0e833338a7f77917c28584efd1f3d72a2b.zip |
Fix compiler warning: feupdateenv is not implemented and will always fail.
Specifically for linux x86-64 with Intel's icc.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 22fb4b3..0f1dd7e 100644 --- a/configure.ac +++ b/configure.ac @@ -118,6 +118,42 @@ dnl ********************************************************************** CURL_DETECT_ICC([CFLAGS="$CFLAGS -we 147"]) dnl ********************************************************************** +dnl platform/compiler/architecture specific checks/flags +dnl ********************************************************************** + +case $host in + # + x86_64*linux*) + # + dnl find out if icc is being used + if test "z$ICC" = "z"; then + CURL_DETECT_ICC + fi + # + if test "$ICC" = "yes"; then + dnl figure out icc version + iccver=`$CC -dumpversion` + iccnhi=`echo $iccver | cut -d . -f1` + iccnlo=`echo $iccver | cut -d . -f2` + iccnum=`(expr $iccnhi "*" 100 + $iccnlo) 2>/dev/null` + AC_MSG_RESULT($iccver) + # + if test "$iccnum" -ge "900" && test "$iccnum" -lt "1000"; then + dnl icc 9.X specific + CFLAGS="$CFLAGS -i-dynamic" + fi + # + if test "$iccnum" -ge "1000"; then + dnl icc 10.X or later + CFLAGS="$CFLAGS -shared-intel" + fi + # + fi + ;; + # +esac + +dnl ********************************************************************** dnl Checks for libraries. dnl ********************************************************************** |