depends  libx11  &&

if list_find "$XNEUR_SOUND" "gstreamer" ; then
  depends gstreamer "--with-sound=$XNEUR_SOUND"
elif list_find "$XNEUR_SOUND" "openal"; then
  depends OPENAL "--with-sound=$XNEUR_SOUND"
elif list_find "$XNEUR_SOUND" "aplay"; then
  depends alsa-utils "--with-sound=$XNEUR_SOUND"
fi  &&

if list_find "$XNEUR_SPELL" "aspell" || list_find "$XNEUR_SPELL" "enchant"; then
  depends "$XNEUR_SPELL" "--with-spell=$XNEUR_SPELL"
fi  &&

optional_depends  libnotify                    \
                  "--with-libnotify"           \
                  "--without-libnotify"        \
                  "for notifications support"  &&

optional_depends  pcre                               \
                  "--with-pcre"                      \
                  "--without-pcre"                   \
                  "for regular expressions support"  &&

optional_depends  xosd                     \
                  "--with-xosd=yes"        \
                  "--with-xosd=no"         \
                  "for OSD notifications"
