depends libpng &&

depends autoconf &&
depends automake &&

optional_depends brotli   "--with-brotli"   "--without-brotli"   "for brotli-compressed content" &&
optional_depends bzip2    "--with-bzip2"    "--without-bzip2"    "for bzip2-compressed content"  &&
optional_depends gpm      "--with-gpm"      "--without-gpm"      "for text mode mouse support"   &&
optional_depends JPEG     "--with-libjpeg"  "--without-libjpeg"  "for JPEG support"              &&
optional_depends libevent "--with-libevent" "--without-libevent" "for libevent support"          &&
optional_depends lzip     "--with-lzip"     "--without-lzip"     "for lzip decompression"        &&
optional_depends LZMA     "--with-lzma"     "--without-lzma"     "for LZMA decompression"        &&
optional_depends zlib     "--with-zlib"     "--without-zlib"     "for zlib-compressed content"   &&
optional_depends zstd     "--with-zstd"     "--without-zstd"     "for zstd-compressed content"   &&

optional_depends svgalib  "--with-svgalib --enable-graphics" "--without-svgalib" "to run $SPELL under SVGAlib" &&

optional_depends libx11  "--with-x --enable-graphics" "--without-x" "for X11 support" &&
if is_depends_enabled $SPELL libx11; then
  depends libxext
  optional_depends freetype2  "--with-freetype" "--without-freetype" "for font support"
  if is_depends_enabled $SPELL freetype2; then
    depends fontconfig
  fi
fi &&

optional_depends SSL \
                 "--with-opennssl" \
                 "--without-opennssl" \
                 "encryption for HTTPS"
