depends  zip    &&
if [[ "$AUDACITY_UNI" == "no" ]]; then
  depends wxgtk-no-unicode
else
  depends wxgtk
fi &&
optional_depends  lame "--with-lame" \
                       "--without-lame" \
                       "for mp3 import/export support" &&
if [[ "$AUDACITY_BRANCH" != "current" ]]; then
   depends libsndfile
else
   optional_depends  libsndfile                  \
                  "--with-libsndfile=system"  \
                  "--with-libsndfile=local"   \
                  "to use system libsndfile"
fi  &&
if [[ "$AUDACITY_BRANCH" == "scm" ]]; then
   depends CVS
fi  &&

optional_depends flac "--with-flac" "--without-flac" "For flac support" &&

optional_depends twolame "--with-libtwolame"               \
                         "--without-libtwolame"            \
                         "For twolame MP2 export support"  &&

optional_depends libvorbis "--with-vorbis"          \
                           "--without-vorbis"       \
                           "for ogg/vorbis support" &&

optional_depends  libmad  "--with-libmad=system"  "--without-libmad"  \
                  "for MP3 importing support"                         &&

optional_depends  libid3tag                   \
                  "--with-id3tag"             \
                  "--without-id3tag"          \
                  "for MP3 ID3 tag support"   &&

optional_depends  expat                       \
                  "--with-expat=system"       \
                  "--with-expat=local"        \
                  "to use system expat"       &&

optional_depends  JACK-DRIVER                  \
                  ""                           \
                  ""                           \
                  "to build with jack support" &&

message "${PROBLEM_COLOR}Do not use libsamplerate in conjunction with VST plug-in support!${DEFAULT_COLOR}" &&

optional_depends  libsamplerate                   \
                  "--with-libsamplerate"          \
                  "--without-libsamplerate"       \
                  "to use external libsamplerate" &&

if [[ "$AUDACITY_BRANCH" == "current" ]]; then
optional_depends soundtouch    \
                 "--with-soundtouch=system"  \
                 "--with-soundtouch=local"    \
                 "to use external soundtouch for editing"
fi  &&

case "$AUDACITY_BRANCH" in beta|scm)
    optional_depends vamp-plugin-sdk "--enable-vamp"  "--disable-vamp" \
                            "Compile with vamp plug-in support?"
;; esac &&

optional_depends  LIBAVCODEC                              \
                  "--with-ffmpeg"                         \
                  "--without-ffmpeg"                      \
                  "for ffmpeg import and export support"  &&

## no spell yet
#optional_depends  libresample                   \
#                  "--with-libresample"          \
#                  "--without-libresample"       \
#                  "for sample rate conversion"  &&

optional_depends  redland                 \
                  "--with-redland"        \
                  "--without-redland"     \
                  "for reading RDF data"  &&

optional_depends  slv2                       \
                  "--with-slv2"              \
                  "--without-slv2"           \
                  "for loading LV2 plugins"  &&

optional_depends  liblrdf                                 \
                  "--with-liblrdf"                        \
                  "--without-liblrdf"                     \
                  "for categorisation of LADSPA plugins"  &&


case "$AUDACITY_BRANCH" in
  beta|scm)
    optional_depends soundtouch                                  \
                     "--with-soundtouch" "--without-soundtouch"  \
                     "SoundTouch for pitch and tempo changing?"  &&

    optional_depends portaudio19                                 \
                     "--with-portaudio" "--without-portaudio"    \
                     "Compile with portaudio v19?"             
esac 

