From: David Conrad Date: Mon, 15 Feb 2010 09:02:46 +0000 (-0800) Subject: Fix compilation on ARM X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=781d300ab73671bb2176ef2c3e6c0f2df425cee9;p=x264.git Fix compilation on ARM --- diff --git a/configure b/configure index 52883518..25f54588 100755 --- a/configure +++ b/configure @@ -442,10 +442,10 @@ if [ $asm = yes -a $ARCH = ARM ] ; then # set flags so neon is built by default echo $CFLAGS | grep -Eq '(-mcpu|-march|-mfpu|-mfloat-abi)' || CFLAGS="$CFLAGS -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp" - if cc_check '' '' '__asm__("rev ip, ip");' ; then define HAVE_ARMV6 && ASFLAGS="$ASFLAGS -DHAVE_ARMV6" - cc_check '' '' '__asm__("movt r0, #0");' && define HAVE_ARMV6T2 && ASFLAGS="$ASFLAGS -DHAVE_ARMV6T2" - cc_check '' '' '__asm__("vadd.i16 q0, q0, q0");' && define HAVE_NEON && ASFLAGS="$ASFLAGS -DHAVE_NEON" - ASFLAGS="$ASFLAGS -c" + if cc_check '' '' '__asm__("rev ip, ip");' ; then define HAVE_ARMV6 + cc_check '' '' '__asm__("movt r0, #0");' && define HAVE_ARMV6T2 + cc_check '' '' '__asm__("vadd.i16 q0, q0, q0");' && define HAVE_NEON + ASFLAGS="$ASFLAGS $CFLAGS -c" else echo "You specified a pre-ARMv6 or Thumb-1 CPU in your CFLAGS." echo "If you really want to run on such a CPU, configure with --disable-asm."