]> git.videolan.org Git - x264.git/commitdiff
Fix compilation on ARM
authorDavid Conrad <lessen42@gmail.com>
Mon, 15 Feb 2010 09:02:46 +0000 (01:02 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 15 Feb 2010 09:02:46 +0000 (01:02 -0800)
configure

index 52883518f5fd6b6e10056fbe17a33d67b3be7d1c..25f54588da123e373e7d7b9cdb382e6b59427b23 100755 (executable)
--- 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."