Changeset 729a3c0 for configure.ac


Ignore:
Timestamp:
Nov 17, 2011, 2:29:35 AM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
cfaa3c4
Parents:
e298138
Message:

add support for ooura so that aubio can be build without fftw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    re298138 r729a3c0  
    174174dnl Check for fftw3 (required)
    175175dnl if we compile in double precsion, default to fftw3, else fftw3f
     176
     177AC_ARG_ENABLE(fftw3,
     178  AC_HELP_STRING([--enable-fftw3],[compile with fftw3 [[default=auto]]]),
     179  [with_fftw3=$enableval],
     180  with_fftw3="yes")
     181
    176182if test "$with_double_precision" = "yes"; then
    177183    default_fftw3f="no"
    178184else
    179     default_fftw3f="yes"
    180 fi
     185    default_fftw3f=$with_fftw3
     186fi
     187
    181188AC_ARG_ENABLE(fftw3f,
    182189  AC_HELP_STRING([--enable-fftw3f],[compile with fftw3f [[default=auto]]]),
    183190  [with_fftw3f=$enableval],
    184191  [with_fftw3f=$default_fftw3f])
     192
     193# check if we have fftw3f
    185194if test "$with_fftw3f" = "yes"; then
    186195  PKG_CHECK_MODULES(FFTWLIB,    fftw3f >= 3.0.0,     HAVE_FFTW3F=1, HAVE_FFTW3F=0)
    187196else
    188   PKG_CHECK_MODULES(FFTWLIB,    fftw3  >= 3.0.0,     HAVE_FFTW3=1)
    189 fi
    190 if test "${HAVE_FFTW3F}" = "0"; then
    191   PKG_CHECK_MODULES(FFTWLIB,    fftw3  >= 3.0.0,     HAVE_FFTW3=1)
    192 fi
     197# check if we have fftw3
     198if test "$with_fftw3" = "yes"; then
     199  PKG_CHECK_MODULES(FFTWLIB,    fftw3  >= 3.0.0,     HAVE_FFTW3=1, HAVE_FFTW3=0)
     200fi
     201fi
     202
    193203if test "${HAVE_FFTW3}" = "1"; then
    194204  AC_DEFINE(HAVE_FFTW3,1,[Define to enable fftw3 support])
    195205fi
    196206if test "${HAVE_FFTW3F}" = "1"; then
     207  AC_DEFINE(HAVE_FFTW3,1,[Define to enable fftw3 support])
    197208  AC_DEFINE(HAVE_FFTW3F,1,[Define to enable fftw3f support])
    198209fi
     
    264275echo "Summary:"
    265276if test "${HAVE_FFTW3F}" = "1"; then
    266   echo "Fftw3:                   yes (using fftw3f)"
     277  echo "FFT:                     using fftw3f"
    267278else
    268279if test "${HAVE_FFTW3}" = "1"; then
    269   echo "Fftw3:                   yes (not using fftw3f)"
    270 else
    271   echo "Fftw3:                   no (that should not happen)"
     280  echo "Fft:                     using fftw3"
     281else
     282  echo "Fft:                     using ooura"
    272283fi
    273284fi
Note: See TracChangeset for help on using the changeset viewer.