changeset 36733:670fa1f8f7c6

configure: XOP support fix build with latest ffmpeg
author michael
date Thu, 13 Feb 2014 22:08:30 +0000
parents 7a5d329bcb72
children 0f153fcd1df6
files configure
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/configure	Thu Feb 13 11:47:50 2014 +0000
+++ b/configure	Thu Feb 13 22:08:30 2014 +0000
@@ -571,6 +571,7 @@
   --enable-sse4             enable SSE4 [autodetect]
   --enable-sse42            enable SSE4.2 [autodetect]
   --enable-avx              enable AVX [autodetect]
+  --enable-xop              enable XOP [autodetect]
   --enable-shm              enable shm [autodetect]
   --enable-altivec          enable AltiVec (PowerPC) [autodetect]
   --enable-armv5te          enable DSP extensions (ARM) [autodetect]
@@ -628,6 +629,7 @@
 _sse4_1=auto
 _sse4_2=auto
 _avx=auto
+_xop=auto
 _cmov=auto
 _fast_cmov=auto
 _fast_clz=auto
@@ -1419,6 +1421,8 @@
   --disable-sse42) _sse4_2=no;;
   --enable-avx) _avx=yes;;
   --disable-avx) _avx=no;;
+  --enable-xop) _xop=yes;;
+  --disable-xop) _xop=no;;
   --enable-mmxext) _mmxext=yes ;;
   --disable-mmxext) _mmxext=no ;;
   --enable-3dnow) _3dnow=yes ;;
@@ -1967,6 +1971,7 @@
   extcheck $_sse4_1   "sse4_1"   "pmaxsb %%xmm0, %%xmm0"
   extcheck $_sse4_2   "sse4_2"   "pcmpgtq %%xmm0, %%xmm0"
   extcheck $_avx      "avx"      "vpabsw %%xmm0, %%xmm0"
+  extcheck $_xop      "xop"      "vpmacsdd %%xmm0, %%xmm1, %%xmm2, %%xmm3"
   extcheck $_cmov     "cmov"     "cmovb %%eax,  %%ebx"
 
   echocheck "mtrr support"
@@ -2646,6 +2651,7 @@
     test "$_sse4_1"   != no && _sse4_1=yes
     test "$_sse4_2"   != no && _sse4_2=yes
     test "$_avx"      != no && _avx=yes
+    test "$_xop"      != no && _xop=yes
     test "$_mtrr"     != no && _mtrr=yes
   fi
   if ppc; then
@@ -3146,7 +3152,7 @@
   echores "$_iwmmxt"
 fi
 
-cpuexts_all='ALTIVEC AVX MMX MMX2 MMXEXT AMD3DNOW AMD3DNOWEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 FAST_CMOV I686 FAST_CLZ ARMV5TE ARMV6 ARMV6T2 VFP VFPV3 NEON IWMMXT MMI VIS MVI'
+cpuexts_all='ALTIVEC XOP AVX MMX MMX2 MMXEXT AMD3DNOW AMD3DNOWEXT SSE SSE2 SSE3 SSSE3 SSE4 SSE42 FAST_CMOV I686 FAST_CLZ ARMV5TE ARMV6 ARMV6T2 VFP VFPV3 NEON IWMMXT MMI VIS MVI'
 test "$_altivec"   = yes && cpuexts="ALTIVEC $cpuexts"
 test "$_mmx"       = yes && cpuexts="MMX $cpuexts"
 test "$_mmxext"    = yes && cpuexts="MMX2 $cpuexts"
@@ -3160,6 +3166,7 @@
 test "$_sse4_1"    = yes && cpuexts="SSE4 $cpuexts"
 test "$_sse4_2"    = yes && cpuexts="SSE42 $cpuexts"
 test "$_avx"       = yes && cpuexts="AVX $cpuexts"
+test "$_xop"       = yes && cpuexts="XOP $cpuexts"
 test "$_cmov"      = yes && cpuexts="I686 $cpuexts"
 test "$_fast_cmov" = yes && cpuexts="FAST_CMOV $cpuexts"
 test "$_fast_clz"  = yes && cpuexts="FAST_CLZ $cpuexts"