Branch: master

9141f861 2014-09-07 01:43:31 Timothy Pearson
Fix ffts FTBFS (again)
M lib/ffts/debian/rules
diff --git a/lib/ffts/debian/rules b/lib/ffts/debian/rules
index 7ed0ac0..169d1c4 100755
--- a/lib/ffts/debian/rules
+++ b/lib/ffts/debian/rules
@@ -9,7 +9,15 @@
 DEB_CONFIGURE_PREFIX := /usr/
 DEB_CONFIGURE_INFODIR := /usr/share/info
 
-cdbs_configure_flags := --enable-single --enable-shared --disable-rpath
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+ifneq (,$(findstring x86_64-,$(DEB_BUILD_GNU_TYPE)))
+	cdbs_configure_flags := --enable-single --enable-sse --enable-shared --disable-rpath
+else ifneq (,$(findstring arm-,$(DEB_BUILD_GNU_TYPE)))
+	cdbs_configure_flags := --enable-single --enable-neon --enable-shared --disable-rpath
+else
+	cdbs_configure_flags := --enable-single --enable-shared --disable-rpath
+endif
 
 DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
                                && echo xz || echo bzip2)