diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 70 |
1 files changed, 69 insertions, 1 deletions
@@ -616,6 +616,8 @@ HTML_DIR GTKDOC_MKPDF GTKDOC_REBASE GTKDOC_CHECK +HAVE_FFTW_FALSE +HAVE_FFTW_TRUE HAVE_CAIRO_FALSE HAVE_CAIRO_TRUE BUILD_CUBEIT_FALSE @@ -7537,6 +7539,60 @@ fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_plan_dft_r2c_1d in -lfftw3" >&5 +$as_echo_n "checking for fftw_plan_dft_r2c_1d in -lfftw3... " >&6; } +if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_1d+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfftw3 $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char fftw_plan_dft_r2c_1d (); +int +main () +{ +return fftw_plan_dft_r2c_1d (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_fftw3_fftw_plan_dft_r2c_1d=yes +else + ac_cv_lib_fftw3_fftw_plan_dft_r2c_1d=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_1d" >&5 +$as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_1d" >&6; } +if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_1d" = x""yes; then : + + +$as_echo "#define HAVE_FFTW 1" >>confdefs.h + + FFTW_LIBS="-lfftw3" + have_fftw=true + +else + + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ReAx indexing will not be available." >&5 +$as_echo "$as_me: WARNING: ReAx indexing will not be available." >&2;} + have_fftw=false + +fi + + + if test x$have_opencl = xtrue; then HAVE_OPENCL_TRUE= HAVE_OPENCL_FALSE='#' @@ -7576,6 +7632,14 @@ else fi + if test x$have_fftw = xtrue; then + HAVE_FFTW_TRUE= + HAVE_FFTW_FALSE='#' +else + HAVE_FFTW_TRUE='#' + HAVE_FFTW_FALSE= +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5 @@ -7642,7 +7706,7 @@ CFLAGS="$CFLAGS $GDK_pixbuf_CFLAGS $GDK_pixbuf_2_CFLAGS" LIBS="$LIBS $HDF5_LIBS -lm -lz $GSL_LIBS $GTK_LIBS $OPENCL_LIBS -pthread" LIBS="$LIBS $LIBTIFF_LIBS $libPNG_LIBS $Cairo_LIBS $GDK_pixbuf_LIBS" -LIBS="$LIBS $GDK_pixbuf_2_LIBS $TIMER_LIBS $LDFLAGS" +LIBS="$LIBS $GDK_pixbuf_2_LIBS $TIMER_LIBS $FFTW_LIBS $LDFLAGS" @@ -8043,6 +8107,10 @@ if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi +if test -z "${HAVE_FFTW_TRUE}" && test -z "${HAVE_FFTW_FALSE}"; then + as_fn_error $? "conditional \"HAVE_FFTW\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 |