depends -sub CXX gcc &&
depends apr          &&
depends python3      &&

config_query_list ZENMAP "Who should provide the zenmap graphical frontend?" \
  none "python with sqlite support" "pysqlite" &&
case $ZENMAP in
  none) depends gcc --without-zenmap ;;
  "python with sqlite support") depends -sub sqlite python3 && depends pygtk2 ;;
  "pysqlite") depends pysqlite && depends pygtk2 ;;
  *) false ;;
esac &&

optional_depends GETTEXT \
                 "--enable-nls" \
                 "--disable-nls" \
                 "to use Native Language Support" &&

optional_depends SSL \
                 "--with-openssl=$INSTALL_ROOT/usr" \
                 "--without-openssl" \
                 "for OpenSSL support" &&

optional_depends libssh2 \
                 --with-libssh2="$INSTALL_ROOT"/usr \
                 --without-libssh2 \
		 "for SSH support" &&

optional_depends libpcap \
                 "--with-libpcap=$INSTALL_ROOT/usr" \
                 "--with-libpcap=included" \
                 "use external pcap lib?" &&

optional_depends pcre \
                 "--with-libpcre=$INSTALL_ROOT/usr" \
                 "--with-libpcre=included" \
                 "use external PCRE lib?" &&

optional_depends lua51 \
                 "--with-liblua=$INSTALL_ROOT/usr" \
                 "--with-liblua=included" \
                 "use external Lua lib?"
