diff options
author | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2008-05-28 16:43:15 +0400 |
---|---|---|
committer | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2008-05-28 16:43:15 +0400 |
commit | d26630fb7e0f8be07fbf33c78cc82df7725a2903 (patch) | |
tree | 9c800db92a6c980bd4ec8f276404c6acc24dcd3f /configure.ac | |
parent | 54295e7c1b0e0c8b3ff5df3c08c4d2fdf641d008 (diff) |
Patch by Thorvald Natvig to add Intel MKL support for the FFT
git-svn-id: http://svn.xiph.org/trunk/speex@14975 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 84d5091..36a2e6c 100644 --- a/configure.ac +++ b/configure.ac @@ -121,7 +121,28 @@ AS_IF([test "x$with_gpl_fftw3" != "xno"], AC_SUBST([FFTW3_PKGCONFIG], [fftw3f]) ]]) ) - + +AC_ARG_WITH([intel-mkl], [AS_HELP_STRING([--with-intel-mkl],[enable experimental support for Intel Math Kernel Library for FFT])],[],[with_intel_mkl=no]) +AS_IF([test "x$with_intel_mkl" != "xno"],[ + AC_MSG_CHECKING(for valid MKL) + AC_LINK_IFELSE([ + AC_LANG_PROGRAM([[ +#include <mkl.h> +void func() { + DFTI_DESCRIPTOR_HANDLE h; + MKL_LONG result=DftiCreateDescriptor(&h, DFTI_SINGLE, DFTI_REAL, 0); +} + ]])], + [ + AC_DEFINE([USE_INTEL_MKL], [], [Use Intel Math Kernel Library for FFT]) + AC_MSG_RESULT(yes) + ], + [ + AC_MSG_FAILURE([Failed to compile MKL test program. Make sure you set CFLAGS to include the include directory and set LDFLAGS to include the library directory and all necesarry libraries.]) + ] + ) +]) + AC_CHECK_HEADERS(sys/soundcard.h sys/audioio.h) XIPH_PATH_OGG([src="src"], [src=""]) |