configure: handle --disable-asm before check_deps
authorMans Rullgard <mans@mansr.com>
Fri, 31 Aug 2012 00:56:03 +0000 (01:56 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 31 Aug 2012 00:59:23 +0000 (01:59 +0100)
This is necessary to avoid spuriously enabling _external or _inline
variants of arch extensions when they should be disabled.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index efc01ad..b12df4e 100755 (executable)
--- a/configure
+++ b/configure
@@ -3403,14 +3403,14 @@ fi
 
 enabled_any $THREADS_LIST      && enable threads
 
+enabled asm || { arch=c; disable $ARCH_LIST $ARCH_EXT_LIST; }
+
 check_deps $CONFIG_LIST       \
            $CONFIG_EXTRA      \
            $HAVE_LIST         \
            $ALL_COMPONENTS    \
            $ALL_TESTS         \
 
-enabled asm || { arch=c; disable $ARCH_LIST $ARCH_EXT_LIST; }
-
 ! enabled_any memalign posix_memalign aligned_malloc &&
     enabled_any $need_memalign && enable memalign_hack