diff --git a/configure.ac b/configure.ac index 4da4554..94f8bd5 100644 --- a/configure.ac +++ b/configure.ac @@ -151,7 +151,7 @@ if test "x$enable_x86_optimizations" = "xyes" -a "x$ac_cv_header_cpuid_h" = "xye echo "****** No MMX support found ******" if test "x$enable_integer_samples" = "xyes"; then echo "****** Disabling optimizations. Using integer samples with no MMX support ******" - AC_DEFINE([SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS],[1],[Do not use x86 optimizations]) + CPPFLAGS="-DSOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS $CPPFLAGS" fi fi @@ -185,14 +185,14 @@ if test "x$enable_x86_optimizations" = "xyes" -a "x$ac_cv_header_cpuid_h" = "xye echo "****** No SSE support found ******" if test "x$enable_integer_samples" != "xyes"; then echo "****** Disabling optimizations. Using float samples with no SSE support ******" - AC_DEFINE([SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS],[1],[Do not use x86 optimizations]) + CPPFLAGS="-DSOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS $CPPFLAGS" fi fi else # Disable optimizations in SSTypes.h since the user requested it. echo "****** x86 optimizations disabled ******" - AC_DEFINE([SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS],[1],[Do not use x86 optimizations]) + CPPFLAGS="-DSOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS $CPPFLAGS" fi # Set AM_CXXFLAGS diff --git a/include/soundtouch_config.h.in b/include/soundtouch_config.h.in index 27f651b..74a9ccb 100644 --- a/include/soundtouch_config.h.in +++ b/include/soundtouch_config.h.in @@ -1,6 +1,3 @@ -/* Do not use x86 optimizations */ -#undef SOUNDTOUCH_DISABLE_X86_OPTIMIZATIONS - /* Use Float as Sample type */ #undef SOUNDTOUCH_FLOAT_SAMPLES