From: Loren Merritt Date: Mon, 3 Mar 2008 00:53:01 +0000 (-0700) Subject: check for broken versions of yasm X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8609ffa0dd7092509c0ec5c4c667ab6eea503fd7;p=libx264 check for broken versions of yasm --- diff --git a/configure b/configure index 6f82da2f..f54fdda2 100755 --- a/configure +++ b/configure @@ -316,6 +316,11 @@ then fi if [ $ARCH = X86 -o $ARCH = X86_64 ] ; then + if [ $ARCH = X86 -a $pic = yes -a x$AS = xyasm -a\ + "`yasm --version | head -n 1`" "<" "yasm 0.6.2" ] ; then + echo "yasm prior to 0.6.2 miscompiles PIC. trying nasm instead..." + AS=nasm + fi if as_check ; then CFLAGS="$CFLAGS -DHAVE_MMX" if as_check "pabsw xmm0, xmm0" ; then