depends -sub CXX gcc &&

if [[ $BACULA_BRANCH == scm ]]; then
  depends git
fi &&

optional_depends readline \
                 "--enable-readline" \
                 "--disable-readline" \
                 "for readline support" &&

if [[ -z "$BACULA_CLIENT" ]]; then
  depends $BACULA_BACKEND "--with-$BACULA_BACKEND=$INSTALL_ROOT/usr" &&

  optional_depends mtx-tape '' '' 'for tape support' &&

  optional_depends libgnome \
                   '--enable-gnome' \
                   '--disable-gnome' \
                   'for GNOME console' &&

  optional_depends wxgtk \
                   '--enable-wx-console' \
                   '--disable-wx-console' \
                   'for wxWidgets console' &&

  optional_depends gtk+2 \
                   '--enable-tray-monitor' \
                   '--disable-tray-monitor' \
                   'for tray monitor' &&

  optional_depends SSL \
                   '--with-opennssl' \
                   '--without-opennssl' \
                   'for encrypted communication' &&

  optional_depends tcp_wrappers \
                   "--with-tcp-wrappers" \
                   "--without-tcp-wrappers" \
                   "for tcpwrappers support" &&

  optional_depends python \
                   '--with-python' \
                   '--without-python' \
                   'for Python scripting support'
fi
