diff options
author | jofret | 2009-04-28 07:14:58 +0000 |
---|---|---|
committer | jofret | 2009-04-28 07:14:58 +0000 |
commit | 9f652ffc16a310ac6641a9766c5b9e2671e0e9cb (patch) | |
tree | c2bfdad6a556eb0da6a00c992d92c9088d5718d5 /m4/fftw.m4 | |
parent | 2a9c7982e4a41abc88c93bf9a2f0bfa6856559b6 (diff) | |
download | scilab2c-9f652ffc16a310ac6641a9766c5b9e2671e0e9cb.tar.gz scilab2c-9f652ffc16a310ac6641a9766c5b9e2671e0e9cb.tar.bz2 scilab2c-9f652ffc16a310ac6641a9766c5b9e2671e0e9cb.zip |
Moving config files
Diffstat (limited to 'm4/fftw.m4')
-rw-r--r-- | m4/fftw.m4 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/m4/fftw.m4 b/m4/fftw.m4 new file mode 100644 index 00000000..8764aaba --- /dev/null +++ b/m4/fftw.m4 @@ -0,0 +1,16 @@ +dnl AC_FFTW +dnl ------------------------------------------------------ +dnl Check if FFTW is usable and working +dnl +AC_DEFUN([AC_FFTW], [ + + AC_CHECK_HEADER([fftw3.h],[],[AC_MSG_ERROR([Cannot find headers (fftw3.h) of the library fftw. Please install the dev package (Debian : fftw3-dev)])]) + AC_CHECK_LIB([fftw3], [fftw_plan_dft_r2c], + [FFTW3_LIB=-lfftw3], + [AC_MSG_ERROR([libfftw3 : library missing. (Cannot find symbol fftw_plan_dft_r2c). Check if libfftw3 is installed and if the version is correct])] + ) + AC_SUBST(FFTW3_LIB) + AC_DEFINE([WITH_FFTW], [], [With FFTW]) +]) + + |