if [[ $JACK_VCS == y ]]
then
  depends  subversion  &&
  depends  libtool     &&
  depends  autoconf    &&
  depends  automake
fi  &&

optional_depends  alsa-lib          \
                  "--enable-alsa"   \
                  "--disable-alsa"  \
                  "for ALSA driver support"  &&

optional_depends  portaudio              \
                  "--enable-portaudio"   \
                  "--disable-portaudio"  \
                  "for PortAudio driver support"  &&

optional_depends  libfreebob             \
                  "--enable-freebob"     \
                  "--disable-freebob"    \
                  "for FireWire devices supported by FreeBoB" &&

optional_depends  libsndfile                             \
                  ""                                     \
                  ""                                     \
                  "to build the jackrec example client"  &&

optional_depends  libsamplerate       \
                  ""                  \
                  ""                  \
                  "to build NetJack"  &&

.  "$GRIMOIRE/FUNCTIONS"  &&

if is_depends_enabled $SPELL libsamplerate; then
  optional_depends  celt  \
                    ""    \
                    ""    \
                    "for CELT compression support in NetJack"
fi  &&

local KVER=$(get_kernel_version)  &&

if [[ "${KVER:0:4}" == '2.4.' ]]
then
  optional_depends  libcap                                   \
                    "--enable-capabilities"                  \
                    "--disable-capabilities"                 \
                    "to gain realtime scheduling priviledges \
(2.4 kernels only)"
fi  &&

optional_depends  doxygen  \
                  ""       \
                  ""       \
                  "to generate API documentation"
