if ! grep -q "RFB" $SPELL_CONFIG; then
  if query "Add RFB (vnc display) support in bochs ?"  y
    then  echo   "RFB=--with-rfb"     >>  $SPELL_CONFIG 
    else  echo   "RFB=--without-rfb"  >>  $SPELL_CONFIG 
  fi
fi

if ! grep -q "TERM" $SPELL_CONFIG; then
  if query "Add TERM (text mode display) support in bochs ?"  y
    then  echo   "TERM=--with-term"     >>  $SPELL_CONFIG
    else  echo   "TERM=--without-term"  >>  $SPELL_CONFIG
  fi
fi

if ! grep -q "SVGA" $SPELL_CONFIG; then
  if query "Add SVGA (svga console display) support in bochs ?"  y
    then  echo   "SVGA=--with-svga"     >>  $SPELL_CONFIG
    else  echo   "SVGA=--without-svga"  >>  $SPELL_CONFIG
  fi
fi

if ! grep -q "WX" $SPELL_CONFIG; then
  if query "Add WX (wxGTK display) support in bochs ?"  y
    then  echo   "WX=--with-wx"          >>  $SPELL_CONFIG
    else  echo   "WX=--without-wx"       >>  $SPELL_CONFIG
  fi
fi

if ! grep -q "SDL" $SPELL_CONFIG; then
  if query "Add SDL (SDL display) support in bochs ?"  y
    then  echo   "SDL=--with-sdl"          >>  $SPELL_CONFIG
    else  echo   "SDL=--without-sdl"       >>  $SPELL_CONFIG
  fi
fi

if ! grep -q "SB16" $SPELL_CONFIG; then
  if query "Add SB16 support in bochs ?"  y
    then  echo   "SB16=--enable-sb16=linux"  >>  $SPELL_CONFIG 
    else  echo   "SB16=--disable-sb16"       >>  $SPELL_CONFIG 
  fi
fi

if ! grep -q "APIC" $SPELL_CONFIG; then
  if query "Add APIC support in bochs ?"  y
    then  echo   "APIC=--enable-apic"        >>  $SPELL_CONFIG
    else  echo   "APIC=--disable-apic"       >>  $SPELL_CONFIG
  fi
fi

if ! grep -q "SMP" $SPELL_CONFIG; then
  message "${MESSAGE_COLOR}You have to choose at compile time how many processors bochs will simulate (8,4 or one)... ${DEFAULT_COLOR}"
  if query       "Simulate 1 processor (recomended) ?"  y
    then  
      echo       "SMP=--enable-processors=1"  >>  $SPELL_CONFIG 
    else 
      if query   "Simulate 4 processor ?"  y
        then 
          echo   "SMP=--enable-processors=4"  >>  $SPELL_CONFIG
        else 
          message "${MESSAGE_COLOR}8 processor selected. ${DEFAULT_COLOR}"
          echo    "SMP=--enable-processors=8"  >>  $SPELL_CONFIG
      fi
  fi
fi

if ! grep -q "IPS" $SPELL_CONFIG; then
  if query "Set the SHOW IPS debug flag on in bochs (only used for debugging/calibrating IPS on your box) ?"  n
    then  echo   "IPS=y"        >>  $SPELL_CONFIG
    else  echo   "IPS=n"       >>  $SPELL_CONFIG
  fi
fi

