Add .fpu neon to the configure test.
authornash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 6 Dec 2010 01:58:19 +0000 (01:58 +0000)
committernash <nash@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 6 Dec 2010 01:58:19 +0000 (01:58 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@55308 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac

index 352171c..00c5527 100644 (file)
@@ -1066,11 +1066,12 @@ case $host_cpu in
 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])