Changeset dc27a81


Ignore:
Timestamp:
Apr 11, 2005, 11:17:36 PM (20 years ago)
Author:
Paul Brossier <piem@altern.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:
b6f6d58
Parents:
bd2f2ab
Message:

updated configure.ac to detect jack, alsa and fftw3f automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rbd2f2ab rdc27a81  
    9393dnl Check for optional libraries
    9494AC_ARG_ENABLE(fftw3f,
    95   [  --enable-fftw3f[[=value]]   compile with fftw3f [[default=no]]],
    96   with_fftw3f="yes",
    97   with_fftw3f="no")
     95  AC_HELP_STRING([--enable-fftw3f],[compile with fftw3f [[default=auto]]]),
     96  [with_fftw3f=$enableval],
     97  with_fftw3f="yes")
    9898if test "$with_fftw3f" = "yes"; then
    99         PKG_CHECK_MODULES(FFTWLIB,    fftw3f  >= 3.0.0,     FFTW3F_SUPPORT=1)
    100 else
    101         PKG_CHECK_MODULES(FFTWLIB,    fftw3  >= 3.0.0,        FFTW3_SUPPORT=1)
     99        PKG_CHECK_MODULES(FFTWLIB,    fftw3f  >= 3.0.0,     FFTW3F_SUPPORT=1, FFTW3F_SUPPORT=0)
     100else
     101        PKG_CHECK_MODULES(FFTWLIB,    fftw3  >= 3.0.0,      FFTW3_SUPPORT=1)
     102fi
     103if test "${FFTW3F_SUPPORT}" = "0"; then
     104        PKG_CHECK_MODULES(FFTWLIB,    fftw3  >= 3.0.0,      FFTW3_SUPPORT=1)
    102105fi
    103106if test "${FFTW3_SUPPORT}" = "1"; then
     
    109112
    110113AC_ARG_ENABLE(jack,
    111   [  --enable-jack[[=value]]   compile with jack [[default=no]]],
    112   with_jack="yes",
    113   with_jack="no")
     114  AC_HELP_STRING([--enable-jack],[compile with jack [[default=auto]]]),
     115  [with_jack=$enableval],
     116  with_jack="yes")
    114117if test "$with_jack" = "yes"
    115118then
    116         PKG_CHECK_MODULES(JACK,       jack  >= 0.15.0,        JACK_SUPPORT=1)
     119        PKG_CHECK_MODULES(JACK,       jack  >= 0.15.0,        JACK_SUPPORT=1, JACK_SUPPORT=0)
    117120        if test "${JACK_SUPPORT}" = "1"; then
    118121          AC_DEFINE(JACK_SUPPORT,1,[Define to enable jack support])
     
    121124
    122125AC_ARG_ENABLE(alsa,
    123   [  --enable-alsa[[=value]]   compile with alsa [[default=no]]],
    124   with_alsa="yes",
    125   with_alsa="no")
     126  AC_HELP_STRING([--enable-alsa],[compile with alsa [[default=auto]]]),
     127  [with_alsa=$enableval],
     128  with_alsa="yes")
    126129if test "$with_alsa" = "yes"
    127130then
    128         PKG_CHECK_MODULES(ALSA,       alsa >= 0.0.9,          ALSA_SUPPORT=1)
     131        PKG_CHECK_MODULES(ALSA,       alsa >= 0.0.9,          ALSA_SUPPORT=1, ALSA_SUPPORT=0)
    129132        if test "${ALSA_SUPPORT}" = "1"; then
    130133          AC_DEFINE(ALSA_SUPPORT,1,[Define to enable alsa support])
     
    133136
    134137AC_ARG_ENABLE(ladcca,
    135   [  --enable-ladcca[[=value]]   compile with ladcca [[default=no]]],
    136   with_ladcca="yes",
     138  AC_HELP_STRING([--enable-ladcca],[compile with ladcca [[default=no]]]),
     139  [with_ladcca=$enableval],
    137140  with_ladcca="no")
    138141if test "$with_ladcca" = "yes"
     
    179182echo "Summary:"
    180183if test "${FFTW3F_SUPPORT}" = "1"; then
    181   echo "Fftw3:                   yes (fftw3f)"
     184  echo "Fftw3:                   yes (using fftw3f)"
    182185else
    183186if test "${FFTW3_SUPPORT}" = "1"; then
    184   echo "Fftw3:                   yes"
    185 else
    186   echo "Fftw3f:                  no"
     187  echo "Fftw3:                   yes (not using fftw3f)"
     188else
     189  echo "Fftw3:                   no (that should not happen)"
    187190fi
    188191fi
Note: See TracChangeset for help on using the changeset viewer.