]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
only check for -mfpu=neon on ARM processors
authorSebastian Pop <s.pop@samsung.com>
Tue, 22 Jan 2019 18:24:30 +0000 (12:24 -0600)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Thu, 24 Jan 2019 11:29:57 +0000 (12:29 +0100)
configure

index 4301e836be60b09c112656369aea89fac56f25c1..0573be668ef216471131230eac37685899846831 100755 (executable)
--- a/configure
+++ b/configure
@@ -936,17 +936,21 @@ EOF
         ;;
 esac
 
-#Check whether -mfpu=neon is available
-cat > $test.c << EOF
+# Check whether -mfpu=neon is available on ARM processors.
+case "${ARCH}" in
+    arm*)
+        cat > $test.c << EOF
 int main() { return 0; }
 EOF
-if try $CC -c $CFLAGS -mfpu=neon $test.c; then
-    MFPU_NEON_AVAILABLE=1
-    echo "Check whether -mfpu=neon is available ... Yes." | tee -a configure.log
-else
-    MFPU_NEON_AVAILABLE=0
-    echo "Check whether -mfpu=neon is available ... No." | tee -a configure.log
-fi
+        if try $CC -c $CFLAGS -mfpu=neon $test.c; then
+            MFPU_NEON_AVAILABLE=1
+            echo "Check whether -mfpu=neon is available ... Yes." | tee -a configure.log
+        else
+            MFPU_NEON_AVAILABLE=0
+            echo "Check whether -mfpu=neon is available ... No." | tee -a configure.log
+        fi
+        ;;
+esac
 
 ARCHDIR='arch/generic'
 ARCH_STATIC_OBJS=''