if  !  grep  -q  "CONFIGURED"  ${SPELL_CONFIG}
then

    # gtk support conflicts with other toolkits (lucid)
    if    query  "Do you want gtk+ support?"  y
    then
      echo  'OPTS="${OPTS}  --with-gtk"'  >>  ${SPELL_CONFIG} &&
      XEMACS_GTK=y
    else
      echo   'OPTS="${OPTS}  --without-gtk"'  >>  ${SPELL_CONFIG}  &&
      if    query  "Do you want menubars?" y
      then  echo   'OPTS="${OPTS}  --enable-menubars=lucid"'   >>  ${SPELL_CONFIG}
      else  echo   'OPTS="${OPTS}  --enable-menubars=no"'      >>  ${SPELL_CONFIG}
      fi
    fi

    if    query  "Do you want toolbar support?"  y
    then  echo   'OPTS="${OPTS}  --enable-toolbars=yes"'     >>  ${SPELL_CONFIG}
    else  echo   'OPTS="${OPTS}  --enable-toolbars=no"'   >>  ${SPELL_CONFIG}
    fi

    if    query  "Do you want generic drag and drop support?"  y
    then  echo   'OPTS="${OPTS}  --with-dragndrop=yes"'     >>  ${SPELL_CONFIG}
    else  echo   'OPTS="${OPTS}  --with-dragndrop=no"'   >>  ${SPELL_CONFIG}
    fi

    if    query  "Support TTYs?" y
    then  echo   'OPTS="${OPTS}  --with-tty=yes"'   >>  ${SPELL_CONFIG}
    else  echo   'OPTS="${OPTS}  --with-tty=no"'    >>  ${SPELL_CONFIG}
    fi

    if    query  "Support POP for mail retrieval?" y
    then  echo   'OPTS="${OPTS}  --with-pop=yes"'   >>  ${SPELL_CONFIG}
    else  echo   'OPTS="${OPTS}  --with-pop=no"'    >>  ${SPELL_CONFIG}
    fi

    if    query  "Support the Sun Workshop?" y
    then  echo   'OPTS="${OPTS}  --with-workshop=yes"'   >>  ${SPELL_CONFIG}
    else  echo   'OPTS="${OPTS}  --with-workshop=no"'    >>  ${SPELL_CONFIG}
    fi

    echo  'CONFIGURED="y"'  >>  ${SPELL_CONFIG}
fi
