diff --git a/configure b/configure
index efc01adfc5b91b2e745aa945c2d531dfe22849b9..b12df4e8e58038f782af08c3a4cbbf4ac5c8f641 100755
--- 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