# PRE_BUILD requirements
depends  'autoconf'         &&
depends  'automake-1.9'     &&
depends  'glib2'            &&
depends  'gnome-common2'    &&
depends  'gnome-doc-utils'  &&
depends  'intltool'         &&
depends  'libtool'          &&
depends  PKG-CONFIG         &&

# Download requirements
depends  'git'  &&

# Application requirements
depends  'dbus'            &&
depends  'gdk-pixbuf2'     &&
depends  'glib2'           &&
depends  'gtk+2'           &&
depends  'libglade2'       &&
depends  'libgnomecanvas'  &&
depends  'libice'          &&
depends  'libpng'          &&
depends  'libx11'          &&
depends  'libxau'          &&
depends  'libxext'         &&
depends  'libxi'           &&
depends  'pango'           &&
depends  'perl'            &&
depends  'webkitgtk'       &&

# Auth scheme
if [[ "x${MDM_AUTH}" != "xcrypt" ]] ; then
  depends  "${MDM_AUTH}"
fi  &&

optional_depends  CONSOLE-MANAGER           \
                  '--with-console-kit=yes'  \
                  '--with-console-kit=no'   \
                  'for ConsoleKit support'  &&

optional_depends  'gettext'                            \
                  '--enable-nls'                       \
                  '--disable-nls'                      \
                  'for Native Language Support (NLS)'  &&

optional_depends  'libselinux'                             \
                  '--with-selinux'                         \
                  '--without-selinux'                      \
                  'for Security Enhanced Linux (SELinux)'  &&

optional_depends  'libdmx'                                     \
                  '--with-dmx=yes'                             \
                  '--with-dmx=no'                              \
                  'for DMX (Distributed Multihead X) support'  &&

optional_depends  'libxdmcp'                            \
                  '--with-xdmcp=yes'                    \
                  '--with-xdmcp=yes'                    \
                  'for XDMCP (X Remote Login) support'  &&

optional_depends  'libxevie'                             \
                  '--with-xevie=yes'                     \
                  '--with-xevie=no'                      \
                  'for XEvIE Xserver extension support'  &&

optional_depends  'libxinerama'                           \
                  '--with-xinerama=yes'                   \
                  '--with-xinerama=no'                    \
                  'for Xinerama (multi-monitor) support'  &&

optional_depends  'rarian'                             \
                  '--enable-scrollkeeper'              \
                  '--disable-scrollkeeper'             \
                  'for updated ScrollKeeper database'  &&

optional_depends  'SSH'                                              \
                  '--enable-secureremote=yes'                        \
                  '--enable-secureremote=no'                         \
                  'for secure X connections via Secure SHell (SSH)'  &&

if  is_depends_enabled  "${SPELL}" "$(get_spell_provider $SPELL SSH)"; then
  depends  zenity
fi  &&

optional_depends  'tcp_wrappers'              \
                  '--with-tcp-wrappers=yes'   \
                  '--with-tcp-wrappers=no'    \
                  'for TCP wrappers support'

