mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-11 22:50:45 +01:00
Adding a test for libfftw3
This commit is contained in:
parent
e423a09974
commit
29c4ef41de
12
configure.ac
12
configure.ac
@ -43,6 +43,7 @@ AC_ARG_WITH([mpfr],
|
||||
AC_ARG_ENABLE([lapack],
|
||||
[AC_HELP_STRING([--enable-lapack=yes|no|prefix], [enable LAPACK])],
|
||||
[ac_LAPACK=${enable_lapack}],[ac_LAPACK=no])
|
||||
|
||||
case ${ac_LAPACK} in
|
||||
no)
|
||||
;;
|
||||
@ -54,6 +55,17 @@ case ${ac_LAPACK} in
|
||||
AC_DEFINE([USE_LAPACK],[1],[use LAPACK])
|
||||
esac
|
||||
|
||||
AC_CHECK_LIB([fftw3],[fft_init_threads],
|
||||
[AC_DEFINE([HAVE_FFTW],[1],[Define to 1 if you have the `FFTW' library (-lfftw3).])] [ac_fftw=yes],
|
||||
[ac_fftw=no])
|
||||
case ${ac_fftw} in
|
||||
no)
|
||||
;;
|
||||
yes)
|
||||
AM_LDFLAGS="-lfftw3 $AM_LDFLAGS"
|
||||
esac
|
||||
|
||||
|
||||
################ Get compiler informations
|
||||
AC_LANG([C++])
|
||||
AX_CXX_COMPILE_STDCXX_11([noext],[mandatory])
|
||||
|
Loading…
x
Reference in New Issue
Block a user