JABBERD_OPTS="$JABBERD_OPTS $JABBERD_PIPE $JABBERD_ANON $JABBERD_FS $JABBERD_DEBUG \
              $JABBERD_NAD_DEBUG $JABBERD_POOL_DEBUG $JABBERD_DEVELOPER"
persistent_remove JABBERD_PIPE JABBERD_ANON JABBERD_FS JABBERD_DEBUG \
                  JABBERD_NAD_DEBUG JABBERD_POOL_DEBUG JABBERD_DEVELOPER
if [[ "$JABBERD_SASL" == "" ]]; then
  if spell_ok cyrus-sasl; then
    JABBERD_SASL="cyrus-sasl"
  elif spell_ok gsasl; then
    JABBERD_SASL="gsasl"
  fi
fi
config_query_list   JABBERD_SASL       \
                    'Choose your SASL implementation' \
                    gsasl cyrus-sasl &&

config_query_list   JABBERD_MIO        \
                    'Select MIO backend' \
                    epoll poll select &&

config_query_option JABBERD_OPTS       \
                    'Enable pipe auth/reg support?' \
                    n '--enable-pipe' '--disable-pipe' &&

config_query_option JABBERD_OPTS       \
                    'Enable anonymous auth support?' \
                    n '--enable-anon' '--disable-anon' &&

config_query_option JABBERD_OPTS      \
                    'Enable filesystem storage support?' \
                    n '--enable-fs' '--disable-fs' &&

config_query_option JABBERD_OPTS      \
                    'Enable debugging output when run with -D?' \
                    n '--enable-debug' '--disable-debug' &&

config_query_option JABBERD_OPTS  \
                    'Compile with NAD pointer tracking?' \
                    n '--enable-nad-debug' '--disable-nad-debug' &&

config_query_option JABBERD_OPTS \
                    'Compile with pool statistics?' \
                    n '--enable-pool-debug' '--disable-pool-debug' &&

config_query_option JABBERD_OPTS  \
                    'Compile with full warnings and debugging symbols?' \
                    n '--enable-developer' '--disable-developer'

