depends g++ &&

# gnuplot uses gd for rendering pngs, even with true type fonts...
optional_depends  "gd"                 \
                  "--with-gd"   \
                  "--without-gd"          \
                  "for png output support" &&

optional_depends "readline"                                 \
		  "--with-readline=gnu" \
                  "--with-readline=builtin"                 \
                  "use gnu readline instead of builtin readline" &&

optional_depends X11-LIBS --with-x --without-x "X11 output" &&
optional_depends wxgtk --enable-wxwidgets --disable-wxwidgets \
                 "wxWidgets interactive terminal" &&

optional_depends svgalib               \
                 "--with-linux-vga"    \
                 "--without-linux-vga" \
                 "Linux SVGA console driver?" &&
if [[ $GNUPLOT_LUA == "n" ]]; then
  optional_depends tetex                 \
                 "--with-tutorial"     \
                 "--without-tutorial"  \
                 "build LaTeX tutorial?"
else
  depends tetex &&
  depends lua   &&
  depends pgf
fi &&

if is_depends_enabled $SPELL wxgtk; then
  depends cairo &&
  depends pango
fi
