config_query_option BITLBEE_OPTS "Enable plugin support?" y \
                                 "--plugins=1" \
                                 "--plugins=0" &&

config_query_option BITLBEE_OPTS "Enable Twitter protocol?" y \
                                 "--twitter=1" \
                                 "--twitter=0" &&

config_query_option BITLBEE_OPTS "Enable Skype support?" n \
                                 "--skype=1" \
                                 "--skype=0" &&

if ! list_find "$BITLBEE_OPTS" "--skype=0" && list_find "$BITLBEE_OPTS" "--plugins=1"; then
  config_query BITLBEE_SKYPEPLUGIN "Build Skype support as a plugin?" n &&

  if [[ $BITLBEE_SKYPEPLUGIN == y ]]; then
    list_remove "BITLBEE_OPTS" "--skype=1" &&
    list_add "BITLBEE_OPTS" "--skype=plugin"
  fi
fi &&

config_query_option BITLBEE_OPTS "Enable debugging?" n \
                                 "--debug=1" \
                                 "--debug=0" &&

config_query_list BITLBEE_SSL "Which SSL library would you like to use?" \
                              gnutls \
                              openssl \
                              nss &&

config_query_list BITLBEE_EVENT "Which event handler library would you like to use?" \
                                glib2 \
                                libevent &&

config_query BITLBEE_BITLBEED "Build bitlbeed (to run bitlbee as a non-root user)?" n
