configure: Do not set arm CFLAGS if the target host is aarch64
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 27 Feb 2018 13:33:43 +0000 (14:33 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 27 Feb 2018 13:33:43 +0000 (14:33 +0100)
Unbreaks --enable-neon

configure.ac

index 1de0c23..2c5cbba 100644 (file)
@@ -162,7 +162,9 @@ fi
 AC_ARG_ENABLE(neon, [  --enable-neon           Enable NEON support], [
 if test "x$enableval" != xno; then
 has_neon=yes
-CFLAGS="$CFLAGS -O3 -march=armv7-a -mfpu=neon"
+AS_CASE(["$host"],
+  [arm*], [CFLAGS="$CFLAGS -O3 -march=armv7-a -mfpu=neon"]
+)
 else
 has_neon=no
 fi