Description: Disable CPU_SSE plugin when building without SSE
 The CPU_SSE plugin does not build without -msse
Author: Peter Green <plugwash@p10link.net>
Bug-Debian: http://bugs.debian.org/656755

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

Index: libhmsbeagle-1.0.new/libhmsbeagle/CPU/Makefile.am
===================================================================
--- libhmsbeagle-1.0.new.orig/libhmsbeagle/CPU/Makefile.am	2012-01-25 10:09:40.000000000 +0000
+++ libhmsbeagle-1.0.new/libhmsbeagle/CPU/Makefile.am	2012-01-25 10:09:40.000000000 +0000
@@ -1,4 +1,4 @@
-lib_LTLIBRARIES=libhmsbeagle-cpu.la libhmsbeagle-cpu-sse.la
+lib_LTLIBRARIES=libhmsbeagle-cpu.la
 
 BEAGLE_CPU_COMMON = Precision.h EigenDecomposition.h \
                     EigenDecompositionCube.hpp EigenDecompositionCube.h \
@@ -19,6 +19,8 @@
 #
 # CPU plugin with custom SSE code
 #
+if HAVE_SSE
+lib_LTLIBRARIES += libhmsbeagle-cpu-sse.la
 libhmsbeagle_cpu_sse_la_SOURCES = $(BEAGLE_CPU_COMMON) \
                     SSEDefinitions.h BeagleCPU4StateSSEImpl.hpp BeagleCPU4StateSSEImpl.h \
                     BeagleCPUSSEImpl.hpp BeagleCPUSSEImpl.h \
@@ -26,6 +28,7 @@
 
 libhmsbeagle_cpu_sse_la_CXXFLAGS = $(AM_CXXFLAGS)
 libhmsbeagle_cpu_sse_la_LDFLAGS= -version-info $(GENERIC_LIBRARY_VERSION)
+endif
 
 #
 # CPU plugin with OpenMP parallel threads
Index: libhmsbeagle-1.0.new/configure.ac
===================================================================
--- libhmsbeagle-1.0.new.orig/configure.ac	2012-01-25 10:41:40.000000000 +0000
+++ libhmsbeagle-1.0.new/configure.ac	2012-01-25 10:41:59.000000000 +0000
@@ -222,6 +222,9 @@
 if test  "$enable_sse" = yes; then
 	SSE_CFLAGS+="-DENABLE_SSE"
     AM_CXXFLAGS="$AM_CXXFLAGS -msse2"
+    AM_CONDITIONAL(HAVE_SSE,true)
+else
+    AM_CONDITIONAL(HAVE_SSE,false)
 fi
 
 # ------------------------------------------------------------------------------
