summaryrefslogtreecommitdiff
path: root/m4/ax_cc_maxopt.m4
diff options
context:
space:
mode:
authorTsukasa OI <li@livegrid.org>2014-08-25 12:47:12 +0900
committerPeter Simons <simons@cryp.to>2014-09-13 23:52:11 +0200
commit4dcc4ddb9ccbf419a27d064c874527d7e63d4b95 (patch)
tree3fe2b3fba3567274008e584e5e7a711bbf7cc2ed /m4/ax_cc_maxopt.m4
parentb55f4fa1fc39709553e259290124cd1ba84332c9 (diff)
downloadautoconf-archive-4dcc4ddb9ccbf419a27d064c874527d7e63d4b95.tar.gz
AX_CC_MAXOPT: make CPUID patterns robust
This fixes CPUID patterns to make them robust. It also contains minor additions of Intel CPUs.
Diffstat (limited to 'm4/ax_cc_maxopt.m4')
-rw-r--r--m4/ax_cc_maxopt.m49
1 files changed, 5 insertions, 4 deletions
diff --git a/m4/ax_cc_maxopt.m4 b/m4/ax_cc_maxopt.m4
index 263dd6c..5801d69 100644
--- a/m4/ax_cc_maxopt.m4
+++ b/m4/ax_cc_maxopt.m4
@@ -115,11 +115,12 @@ if test "$ac_test_CFLAGS" != "set"; then
AX_GCC_X86_CPUID(0)
AX_GCC_X86_CPUID(1)
case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
- *:756e6547:*:*) # Intel
+ *:756e6547:6c65746e:49656e69) # Intel
case $ax_cv_gcc_x86_cpuid_1 in
- *6a?:*[[234]]:*:*|*6[[789b]]?:*:*:*) icc_flags="-xK";;
- *f3[[347]]:*:*:*|*f4[1347]:*:*:*) icc_flags="-xP -xN -xW -xK";;
- *f??:*:*:*) icc_flags="-xN -xW -xK";;
+ *0?6[[78ab]]?:*:*:*|?6[[78ab]]?:*:*:*|6[[78ab]]?:*:*:*) icc_flags="-xK" ;;
+ *0?6[[9d]]?:*:*:*|?6[[9d]]?:*:*:*|6[[9d]]?:*:*:*|*1?65?:*:*:*) icc_flags="-xB -xK" ;;
+ *000?f[[346]]?:*:*:*|?f[[346]]?:*:*:*|f[[346]]?:*:*:*) icc_flags="-xP -xN -xW -xK" ;;
+ *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) icc_flags="-xN -xW -xK" ;;
esac ;;
esac ;;
esac