Skip to content

Commit 6b1c4aa

Browse files
authored
Merge pull request #24 from tornaria/sse2
Don't autodetect SSE2
2 parents bb78acf + 2287c53 commit 6b1c4aa

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

configure.ac

+4-7
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,12 @@ AS_IF([test "x$enable_sse2" != "xno"], [
3939
if test "$m4ri_wrapword" = "yes"; then
4040
AC_MSG_ERROR([SSE2 cannot be supported when wrapping word in a C++ class.])
4141
fi
42-
AX_EXT()
4342
])
44-
if test x"$ax_cv_have_sse2_ext" = x"yes"; then
45-
M4RI_HAVE_SSE2=1
46-
else
47-
M4RI_HAVE_SSE2=0
48-
fi
49-
AC_SUBST(M4RI_HAVE_SSE2)
5043

44+
AS_IF([test "x$enable_sse2" = "xno"],
45+
[M4RI_HAVE_SSE2=0],
46+
[M4RI_HAVE_SSE2="(defined(__SSE2__) && __SSE2__)"])
47+
AC_SUBST(M4RI_HAVE_SSE2)
5148

5249
AC_ARG_WITH(papi,
5350
AS_HELP_STRING([--with-papi@<:@=PATH@:>@], [The PAPI install prefix, if configure can't find it.]),

m4ri.pc.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ Description: Dense linear algebra over GF(2).
88
Version: @PACKAGE_VERSION@
99
Requires: @M4RI_USE_PNG_PC@
1010
Libs: -L${libdir} -lm4ri @RAW_LIBPNG@ @LIBM@ @LIBPNG_LIBADD@
11-
Cflags: -I${includedir} @SIMD_FLAGS@ @OPENMP_CFLAGS@ @LIBPNG_CFLAGS@
11+
Cflags: -I${includedir} @OPENMP_CFLAGS@ @LIBPNG_CFLAGS@

m4ri/m4ri_config.h.in

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
#define __M4RI_HAVE_LIBPNG @M4RI_HAVE_LIBPNG@
1515

1616
#define __M4RI_CC "@CC@"
17-
#define __M4RI_CFLAGS "@SIMD_FLAGS@ @OPENMP_CFLAGS@ @CFLAGS@"
18-
#define __M4RI_SIMD_CFLAGS "@SIMD_FLAGS@"
17+
#define __M4RI_CFLAGS "@OPENMP_CFLAGS@ @CFLAGS@"
1918
#define __M4RI_OPENMP_CFLAGS "@OPENMP_CFLAGS@"
2019

2120
// Helper macros.

0 commit comments

Comments
 (0)