diff options
author | oparviai <oparviai@f3a24b6a-cf45-0410-b55a-8c22e2698227> | 2015-05-18 20:54:01 +0300 |
---|---|---|
committer | oparviai <oparviai@f3a24b6a-cf45-0410-b55a-8c22e2698227> | 2015-05-18 20:54:01 +0300 |
commit | b307bd377be1a3beebbd16e1db184f8a1faa43f3 (patch) | |
tree | c2cec81e762ad58ac01f6950e6163a122a6ac496 | |
parent | b21aac2012c410d35de04fa87ff575d9068c6688 (diff) |
Repaired Configure script MMX & SSE detection
-rw-r--r-- | configure.ac | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index bbf98cd..8722adf 100644 --- a/configure.ac +++ b/configure.ac @@ -123,9 +123,9 @@ fi if test "x$enable_x86_optimizations" = "xyes" -a "x$ac_cv_header_cpuid_h" = "xyes"; then echo "****** x86 optimizations enabled ******" - original_saved_CXXFLAGS=$AM_CXXFLAGS + original_saved_CXXFLAGS=$CXXFLAGS have_mmx_intrinsics=no - AM_CXXFLAGS="-mmmx -Winline $AM_CXXFLAGS" + CXXFLAGS="-mmmx -Winline $CXXFLAGS" # Check if the user can compile MMX code using intrinsics. # GCC supports MMX intrinsics since version 3.3 @@ -139,7 +139,7 @@ if test "x$enable_x86_optimizations" = "xyes" -a "x$ac_cv_header_cpuid_h" = "xye __m64 loop = _mm_cvtsi32_si64 (1); return _mm_cvtsi64_si32 (loop); }]])],[have_mmx_intrinsics=yes]) - AM_CXXFLAGS=$original_saved_CXXFLAGS + CXXFLAGS=$original_saved_CXXFLAGS # Inform the user if we did or did not find MMX support. # @@ -157,8 +157,9 @@ if test "x$enable_x86_optimizations" = "xyes" -a "x$ac_cv_header_cpuid_h" = "xye # SSE support + original_saved_CXXFLAGS=$CXXFLAGS have_sse_intrinsics=no - AM_CXXFLAGS="-msse -Winline $AM_CXXFLAGS" + CXXFLAGS="-msse -Winline $CXXFLAGS" # Check if the user can compile SSE code using intrinsics. # GCC supports SSE intrinsics since version 3.3 @@ -172,7 +173,7 @@ if test "x$enable_x86_optimizations" = "xyes" -a "x$ac_cv_header_cpuid_h" = "xye _mm_setzero_ps(); return 0; }]])],[have_sse_intrinsics=yes]) - AM_CXXFLAGS=$original_saved_CXXFLAGS + CXXFLAGS=$original_saved_CXXFLAGS # Inform the user if we did or did not find SSE support. # |