Browse code

configure: check yasm/nasm for working pextrd opcode

NASM versions older than 2.08 fail to build ffmpeg with several
"error: operation size not specified" errors but this is not caught in
configure.

Fix that by checking if "pextrd [eax], xmm0, 1" works in configure.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
(cherry picked from commit 48545a8f724247853c5b1d4e0a24e3ea3ee06515)

Anssi Hannula authored on 2011/02/06 14:58:02
Showing 1 changed files
... ...
@@ -2672,7 +2672,7 @@ EOF
2672 2672
             elf*) enabled debug && append YASMFLAGS $yasm_debug ;;
2673 2673
         esac
2674 2674
 
2675
-        check_yasm "pabsw xmm0, xmm0" && enable yasm ||
2675
+        check_yasm "pextrd [eax], xmm0, 1" && enable yasm ||
2676 2676
             die "yasm not found, use --disable-yasm for a crippled build"
2677 2677
     fi
2678 2678