anchor.diff:  SET LUA_BINDIR=%BINDIR%
   SET LUA_LIBDIR=%LIBDIR%
   SET LUA_INCDIR=%INCDIR%
  +SET LUA_LIBNAME=lua5.1.lib
   :LUA_IS_SET
   ECHO.
   ECHO Will configure LuaRocks with the following paths:
  -ECHO Lua interpreter: %LUA_INTERPRETER%
  -ECHO Lua binaries:    %LUA_BINDIR%
  -ECHO Lua libraries:   %LUA_LIBDIR%
  -ECHO Lua includes:    %LUA_INCDIR%
  +ECHO LuaRocks       : %FULL_PREFIX%
  +ECHO Lua interpreter: %LUA_BINDIR%\%LUA_INTERPRETER%
  +ECHO Lua binaries   : %LUA_BINDIR%
  +ECHO Lua libraries  : %LUA_LIBDIR%
  +ECHO Lua includes   : %LUA_INCDIR%
  +ECHO Binaries will be linked against: %LUA_LIBNAME%
   ECHO.
   
   REM ***********************************************************
  
positive.code: 
  IF [%INSTALL_LUA%]==[ON] GOTO USE_OWN_LUA
  
  FOR %%L IN (%LUA_PREFIX% c:\lua\5.1.2 c:\lua c:\kepler\1.1) DO (
     SET CURR=%%L
     IF EXIST "%%L" (
        IF NOT [%LUA_BINDIR%]==[] (
           IF EXIST %LUA_BINDIR%\lua5.1.exe (
              SET LUA_INTERPRETER=lua5.1.exe
              GOTO INTERPRETER_IS_SET
           )
           IF EXIST %LUA_BINDIR%\lua.exe (
              SET LUA_INTERPRETER=lua.exe
              GOTO INTERPRETER_IS_SET
           )		 
           IF EXIST %LUA_BINDIR%\luajit.exe (
              SET LUA_INTERPRETER=luajit.exe
              GOTO INTERPRETER_IS_SET
           )		 
           ECHO Lua executable lua.exe, luajit.exe or lua5.1.exe not found in %LUA_BINDIR%
  
negative.code: 
  REM Boy, it feels like 1994 all over again.
  
  SETLOCAL ENABLEDELAYEDEXPANSION 
  
  SET PREFIX=C:\LuaRocks
  SET VERSION=2.0
  