configure.ac: Add check for pmulhuw assembly
authorSøren Sandmann Pedersen <ssp@redhat.com>
Thu, 10 Oct 2013 02:12:23 +0000 (22:12 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Sat, 12 Oct 2013 19:04:27 +0000 (15:04 -0400)
commit8f75f638ab03078546cc89edfbec4f6801b77e5e
tree6c62e35435afb0f25425bdb1e4a5295f1264f684
parent09a62d4dbc9a1a86ef7671c2abc9b7f753b86f64
configure.ac: Add check for pmulhuw assembly

Clang 3.0 chokes on the following bit of assembly

    asm ("pmulhuw %1, %0\n\t"
        : "+y" (__A)
        : "y" (__B)
    );

from pixman-mmx.c with this error message:

    fatal error: error in backend: Unsupported asm: input constraint
        with a matching output constraint of incompatible type!

So add a check in configure to only enable MMX when the compiler can
deal with it.
configure.ac