anchor.diff:    vars.CONFBACKUPDIR = temppath
     mkdir(vars.CONFBACKUPDIR)
     exec(S[[COPY "$PREFIX\config*.*" "$CONFBACKUPDIR" >NUL]])
  -  exec(S[[COPY "$PREFIX\lua\luarocks\core\site_config*.*" "$CONFBACKUPDIR" >NUL]])
   end
   
   -- restore previously backed up config files
   local function restore_config_files()
     if not vars.CONFBACKUPDIR then return end -- there is no backup to restore
     exec(S[[COPY "$CONFBACKUPDIR\config*.*" "$PREFIX" >NUL]])
  -  exec(S[[COPY "$CONFBACKUPDIR\site_config*.*" "$PREFIX\lua\luarocks\core" >NUL]])
     -- cleanup
     exec(S[[RD /S /Q "$CONFBACKUPDIR"]])
     vars.CONFBACKUPDIR = nil
  
positive.code: 	return false
  end
  
  -- backup config[x.x].lua[.bak] and site_config[_x_x].lua
  local function backup_config_files()
    local temppath
    while not temppath do
  
negative.code: print()
  print("Configuring LuaRocks...")
  
  -- Create hardcoded.lua
  
  local hardcoded_lua = S[[$LUADIR\luarocks\core\hardcoded.lua]]
  
  os.remove(hardcoded_lua)
  
  vars.SYSTEM = USE_MINGW and "MINGW" or "WindowsNT"
  
  local f = io.open(hardcoded_lua, "w")
  f:write(S[=[
  return {
     LUA_INCDIR=[[$LUA_INCDIR]],
     LUA_LIBDIR=[[$LUA_LIBDIR]],
     LUA_BINDIR=[[$LUA_BINDIR]],
     LUA_INTERPRETER=[[$LUA_INTERPRETER]],
     SYSTEM = [[$SYSTEM]],
     PROCESSOR = [[$UNAME_M]],
     PREFIX = [[$PREFIX]],
     WIN_TOOLS = [[$PREFIX/tools]],
  ]=])
  if FORCE_CONFIG then
  	f:write("   FORCE_CONFIG = true,\n")
  end
  if vars.SYSCONFFORCE then  -- only write this value when explcitly given, otherwise rely on defaults
  	f:write(S("   SYSCONFDIR = [[$SYSCONFDIR]],\n"))
  end
  f:write("}\n")
  f:close()
  print(S([[Created LuaRocks hardcoded settings file: $LUADIR\luarocks\core\hardcoded.lua]]))
  
  -- create config file
  if not exists(vars.SYSCONFDIR) then
  