config_query_option OSMO_OPTS "Enable printing support" y \
                              "--enable-printing" \
                              "--disable-printing" &&

# backporting legacy options
for o in OSMO_CONTACTS OSMO_TASKS OSMO_NOTES; do
  if [[ -n ${!o} ]]; then
    list_add "OSMO_OPTS" "${!o}"
    persistent_remove ${o}
  fi
done &&

config_query_option OSMO_OPTS "Enable Contacts module (requires HTML renderer)" y \
                              "--with-contacts" \
                              "--without-contacts" &&

config_query_option OSMO_OPTS "Enable Tasks module" y \
                              "--with-tasks" \
                              "--without-tasks" &&

config_query_option OSMO_OPTS "Enable Notes module" y \
                              "--with-notes" \
                              "--without-notes"
