IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18959


Ignore:
Timestamp:
Aug 8, 2008, 8:08:00 AM (18 years ago)
Author:
Paul Price
Message:

Adding support for FFTW threading.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r14418 r18959  
    189189LDFLAGS="${LDFLAGS} ${FFTW3_LDFLAGS}"
    190190
     191AC_CHECK_LIB(fftw3f,fftwf_plan_dft_2d,[],
     192  [AC_MSG_ERROR([FFTW version 3 (--enable-float) library not found.  Obtain it at http://www.fftw.org/ or use --with-fftw3 to specify location.])])
     193
     194FFTW_THREADS=0
     195AC_CHECK_LIB(fftw3f,fftwf_init_threads,[FFTW_THREADS=1],
     196  [AC_CHECK_LIB(fftw3f_threads,fftwf_init_threads, [
     197    FFTW_THREADS=1
     198    PSLIB_LIBS="${PSLIB_LIBS=} -lfftw3f_threads"],
     199   AC_MSG_WARN([FFTW version 3 not compiled with thread support (--enable-threads)])
     200   )]
     201)
     202
     203dnl AC_CHECK_LIB(fftw3f,fftwf_plan_dft_2d,[],
     204dnl   [AC_MSG_ERROR([FFTW version 3 (--enable-float) library not found.  Obtain it at http://www.fftw.org/ or use --with-fftw3 to specify location.])],[-lm]
     205dnl )
     206
    191207AC_CHECK_HEADERS([fftw3.h],[],
    192208  [AC_MSG_ERROR([FFTW version 3 (--enable-float) headers not found.  Obtain it at http://www.fftw.org/ or use --with-fftw3 to specify location.])]
    193209)
    194 AC_CHECK_LIB(fftw3f,fftwf_plan_dft_2d,[],
    195   [AC_MSG_ERROR([FFTW version 3 (--enable-float) library not found.  Obtain it at http://www.fftw.org/ or use --with-fftw3 to specify location.])],[-lm]
    196 )
     210
     211AC_DEFINE_UNQUOTED([HAVE_FFTW_THREADS],${FFTW_THREADS},[Define to 1 if you have FFTW compiled with thread support])
    197212
    198213AC_SUBST([FFTW3_CFLAGS])
Note: See TracChangeset for help on using the changeset viewer.