summaryrefslogtreecommitdiff
path: root/2.3-1/m4/fftw.m4
blob: 8764aaba05b4870121c2c0dc7b58abe1226f1c9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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])
])