esac
AC_MSG_CHECKING(whether to build neon code)
AC_ARG_ENABLE(cpu-neon,
- AC_HELP_STRING([--enable-cpu-neon], [enable neon code - with gcc you will need these CFLAGS for it to begin to work, and even then your gcc may have broken or non-existent support: -mcpu=cortex-a8 -mfloat-abi=softfp -mfpu=neon]),
+ AC_HELP_STRING([--enable-cpu-neon], [build neon code, the code will be
+ checked at run time to see if the CPU supports it]),
[
if test "x$enableval" = "xyes" ; then
AC_TRY_COMPILE([#include <arm_neon.h>],
- [asm volatile ("vqadd.u8 d0, d1, d0\n")],
+ [asm volatile (".fpu neon\nvqadd.u8 d0, d1, d0\n")],
[
AC_MSG_RESULT(yes)
AC_DEFINE(BUILD_NEON, 1, [Build NEON Code])