diff --git a/configure b/configure
index f07e92283997dc30a1205459da01fb034849980a..af4dbca71eb88ccf550a6b547ce9dc5fe0b4cc46 100755
--- a/configure
+++ b/configure
@@ -1447,7 +1447,7 @@ case $target_os in
     mingw32*)
         target_os=mingw32
         LIBTARGET=i386
-        if test $arch = x86_64; then
+        if enabled x86_64; then
             disable need_memalign
             LIBTARGET=x64
         fi