# remove obsolete options from FLUXBOX_OPTS
list_remove  FLUXBOX_OPTS  '--disable-ordered-pseudo'  &&
list_remove  FLUXBOX_OPTS  '--enable-ordered-pseudo'  &&
list_remove  FLUXBOX_OPTS  '--enable-gnome'  &&
list_remove  FLUXBOX_OPTS  '--disable-gnome'  &&
list_remove  FLUXBOX_OPTS  '--enable-randr1.2'  &&
list_remove  FLUXBOX_OPTS  '--disable-randr1.2'  &&
list_remove  FLUXBOX_OPTS  '--enable-newwmspec'  &&
list_remove  FLUXBOX_OPTS  '--disable-newwmspec'  &&
list_remove  FLUXBOX_OPTS  '--enable-timed-cache'  &&
list_remove  FLUXBOX_OPTS  '--disable-timed-cache'  &&

config_query FLUXBOX_CONF "Go through all (10) configuration options?" n &&

if [[ $FLUXBOX_CONF == y ]]; then
  config_query_option FLUXBOX_OPTS "include code for the Slit?" y \
                                   "--enable-slit" \
                                   "--disable-slit" &&

  config_query_option FLUXBOX_OPTS "include code for Remembering attributes?" y \
                                   "--enable-remember" \
                                   "--disable-remember" &&

  config_query_option FLUXBOX_OPTS "include code for Toolbar?" y \
                                   "--enable-toolbar" \
                                   "--disable-toolbar" &&

  config_query_option FLUXBOX_OPTS "include code for SystemTray?" y \
                                   "--enable-systray" \
                                   "--disable-systray" &&

  config_query_option FLUXBOX_OPTS "use regular expression support?" y \
                                   "--enable-regexp" \
                                   "--disable-regexp" &&

  config_query_option FLUXBOX_OPTS "enable support for Extended Window Manager Hints?" y \
                                   "--enable-ewmh" \
                                   "--disable-ewmh" &&

  config_query_option FLUXBOX_OPTS "include verbose debugging code?" n \
                                   "--enable-debug" \
                                   "--disable-debug" &&

  config_query_option FLUXBOX_OPTS "build programs used in testing fluxbox?" n \
                                   "--enable-test" \
                                   "--disable-test" &&

  config_query_option FLUXBOX_OPTS "use new timed pixmap cache?" y \
                                   "--enable-timedcache" \
                                   "--disable-timedcache" &&

  config_query_option FLUXBOX_OPTS "include Xmb (multibyte font, utf-8) support?" y \
                                   "--enable-xmb" \
                                   "--disable-xmb"
fi
