Commit be3f3666 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

configure: fix check for ARM NEON support

Hardware floating point must be enabled explicitly.

This also removes the NEON_CFLAGS substition variable and the check for
ARMv6, neither of which are anymore not used.
parent 8ae2a756
......@@ -1314,28 +1314,21 @@ AC_ARG_ENABLE(neon,
])
AS_IF([test "${enable_neon}" != "no"], [
VLC_SAVE_FLAGS
CFLAGS="${CFLAGS} -mfpu=neon"
AC_CACHE_CHECK([if $CC groks NEON inline assembly], [ac_cv_neon_inline], [
CFLAGS="${CFLAGS} -mfpu=neon -mhard-float"
AC_CACHE_CHECK([if $CCAS groks ARM NEON assembly], [ac_cv_arm_neon], [
AC_COMPILE_IFELSE([
AC_LANG_PROGRAM(,[[
asm volatile("vqmovun.s64 d0, q1":::"d0");
asm volatile("ssat r0, #1, r0":::"r0"); /* assume ARMv6 */
]])
], [
ac_cv_neon_inline="-mfpu=neon"
ac_cv_arm_neon="yes"
], [
ac_cv_neon_inline="no"
ac_cv_arm_neon="no"
])
])
VLC_RESTORE_FLAGS
AS_IF([test "$ac_cv_neon_inline" != "no"], [
NEON_CFLAGS="$ac_cv_neon_inline"
])
], [
ac_cv_neon_inline="no"
])
AC_SUBST(NEON_CFLAGS)
AM_CONDITIONAL(HAVE_NEON, [test "${ac_cv_neon_inline}" != "no"])
AM_CONDITIONAL(HAVE_NEON, [test "${ac_cv_arm_neon}" = "yes"])
AC_ARG_ENABLE(altivec,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment