]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Added specific flags for Intel(R)'s icc compiler
authorFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 25 Jan 2011 21:29:23 +0000 (22:29 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Tue, 25 Jan 2011 21:29:23 +0000 (22:29 +0100)
1  2 
acinclude/compiler-flags.m4

index 65221c7e4b78496552097e85f1b3f8a98ff6a09f,65221c7e4b78496552097e85f1b3f8a98ff6a09f..5b4a5fb852bf48c712d4d539055132f3512a1078
@@@ -86,6 -86,6 +86,15 @@@ AC_DEFUN([SQUID_CC_GUESS_VARIANT], 
  #endif
      ]])],[squid_cv_compiler="sunstudio"],[])
    fi
++  dnl Intel CC
++  if test -z "$squid_cv_compiler" ; then
++   AC_COMPILE_IFELSE([
++    AC_LANG_PROGRAM([[
++#if !defined(__ICC)
++#error "not Intel(R) C++ Compiler"
++#endif
++    ]])],[squid_cv_compiler="icc"],[])
++  fi
    dnl end of block to be repeated
    if test -z "$squid_cv_compiler" ; then
     squid_cv_compiler="none"
@@@ -122,6 -122,6 +131,13 @@@ AC_DEFUN([SQUID_CC_GUESS_OPTIONS], 
     squid_cv_cc_option_optimize="-fast"
     squid_cv_cc_arg_pipe=""
     ;;
++  icc) 
++   squid_cv_cxx_option_werror="-Werror"
++   squid_cv_cc_option_werror="$squid_cv_cxx_option_werror" 
++   squid_cv_cc_option_wall="-Wall"
++   squid_cv_cc_option_optimize="-O2"
++   squid_cv_cc_arg_pipe=""
++   ;;
    *) 
     squid_cv_cxx_option_werror="" 
     squid_cv_cc_option_werror=""