case $THIS_SUB_DEPENDS in
  XCOMPOSITE) is_depends_enabled $SPELL libxcomposite  ;;
        DPMS) list_find "$XORG_SERVER_OPTS" "--enable-dpms" && return 0 ;;
         DRI) list_find "$XORG_SERVER_OPTS" "--enable-dri" && return 0 ;;
       GLAMOR) list_find "$XORG_SERVER_OPTS" "--enable-glamor" && return 0 ;;
      KDRIVE) list_find "$XORG_SERVER_OPTS" "--enable-kdrive" && return 0 ;;
# Xephyr requires Kdrive and list_find returns true if at least one matches
      XEPHYR) list_find "$XORG_SERVER_OPTS" "--enable-kdrive" &&
              list_find "$XORG_SERVER_OPTS" "--enable-xephyr" && return 0 ;;
        XVFB) list_find "$XORG_SERVER_OPTS" "--enable-xvfb" && return 0 ;;
    XWAYLAND) is_depends_enabled $SPELL wayland ;;
           *) message "${PROBLEM_COLOR}bogus sub_depends: $SPELL $THIS_SUB_DEPENDS${DEFAULT_COLOR}" ;
   return 1;;
esac
