From: "Marcus Holland-Moritz" <mhx-perl@gmx.net>
Message-ID: <
00d101c381d3$3d761fe0$0c2f1fac@R2D2>
(add -we147 to ccflags if cc = ICC so that prototype
detection works right)
p4raw-id: //depot/perl@21339
'') usemymalloc='n' ;;
esac
+# Check if we're about to use Intel's ICC compiler
+case "`${cc:-cc} -V 2>&1`" in
+*"Intel(R) C++ Compiler"*)
+ # This is needed for Configure's prototype checks to work correctly
+ ccflags="-we147 $ccflags"
+ # If we're using ICC, we usually want the best performance
+ case "$optimize" in
+ '') optimize='-O3' ;;
+ esac
+ ;;
+esac
+
case "$optimize" in
'') # If we have modern enough gcc and well-supported enough CPU,
# crank up the optimization level.