aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-10-10 12:11:31 +0000
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-10-10 12:11:31 +0000
commitea6f1557a0dd686fd74020509bdaadf689dd1c76 (patch)
tree62e812e12ecf94d9165337dbbde0992c568ce6c7 /configure.ac
parent3ae264aa4cf28ac8c860ad3f74fdc1c68b1a854e (diff)
downloaddabmod-ea6f1557a0dd686fd74020509bdaadf689dd1c76.tar.gz
dabmod-ea6f1557a0dd686fd74020509bdaadf689dd1c76.tar.bz2
dabmod-ea6f1557a0dd686fd74020509bdaadf689dd1c76.zip
Get compilation working on ARM
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9b8bcb7..07d6195 100644
--- a/configure.ac
+++ b/configure.ac
@@ -133,6 +133,26 @@ AC_COMPILE_IFELSE(
[AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_DEFINE([M_PIl], [M_PI], [Replacing define])])
AC_LANG_POP([C++])
+# Check for SSE
+AC_MSG_CHECKING(for SSE in current arch/CFLAGS)
+AC_LINK_IFELSE([
+AC_LANG_PROGRAM([[
+#include <xmmintrin.h>
+__m128 testfunc(float *a, float *b) {
+ return _mm_add_ps(_mm_loadu_ps(a), _mm_loadu_ps(b));
+}
+]])],
+[
+has_sse=yes
+],
+[
+has_sse=no
+]
+)
+AC_MSG_RESULT($has_sse)
+
+AM_CONDITIONAL([HAVE_SSE], [test "x$has_sse" = "xyes"])
+
AM_CONDITIONAL([IS_GIT_REPO], [test -d '.git'])
AC_TYPE_SIGNAL