]> git.sesse.net Git - ffmpeg/commitdiff
configure: check yasm/nasm for working pextrd opcode
authorAnssi Hannula <anssi.hannula@iki.fi>
Sun, 6 Feb 2011 05:58:02 +0000 (07:58 +0200)
committerRonald S. Bultje <rsbultje@gmail.com>
Sun, 6 Feb 2011 16:43:35 +0000 (11:43 -0500)
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>
configure

index 46f4e4415f50237e75594864a14440c47f3e2fab..d67029569e4a370f2b812319901e3c870fd44f48 100755 (executable)
--- a/configure
+++ b/configure
@@ -2671,7 +2671,7 @@ EOF
             elf*) enabled debug && append YASMFLAGS $yasm_debug ;;
         esac
 
-        check_yasm "pabsw xmm0, xmm0" && enable yasm ||
+        check_yasm "pextrd [eax], xmm0, 1" && enable yasm ||
             die "yasm not found, use --disable-yasm for a crippled build"
     fi