aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-10-28 11:53:07 -0200
committerHisham <hisham@gobolinux.org>2016-10-28 11:53:07 -0200
commit66cc4dfe45b4691a83b1b234bb626b60c16fd020 (patch)
treed74b9023c5cca64e143c6ba6dda56d4490964a33 /configure
parentf7ae6213f430798ec86883f9ab9917b156e1758d (diff)
downloadluarocks-66cc4dfe45b4691a83b1b234bb626b60c16fd020.tar.gz
luarocks-66cc4dfe45b4691a83b1b234bb626b60c16fd020.tar.bz2
luarocks-66cc4dfe45b4691a83b1b234bb626b60c16fd020.zip
Prefer versioned Lua interpreter if it exists.
This avoids in practice a problem that occurs in this scenario: 1. user installs Lua 5.1, gets lua and lua5.1 binaries 2. user installs LuaRocks, it detects and uses lua 3. user installs Lua 5.2, gets lua and lua5.2 binaries (lua is replaced) 4. user installs LuaRocks with --lua-version=5.2, it detects and uses lua 5. luarocks-5.1 now uses lua, which is Lua 5.2, rockspecs get passed the wrong value of $(LUA)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index ae2696d2..ab629f98 100755
--- a/configure
+++ b/configure
@@ -292,7 +292,7 @@ then
292 else 292 else
293 suffixes="5.3 53 -5.3 -53 5.2 52 -5.2 -52 5.1 51 -5.1 -51" 293 suffixes="5.3 53 -5.3 -53 5.2 52 -5.2 -52 5.1 51 -5.1 -51"
294 fi 294 fi
295 for suffix in "" `echo $suffixes` 295 for suffix in `echo $suffixes` ""
296 do 296 do
297 search_interpreter "$suffix" && { 297 search_interpreter "$suffix" && {
298 lua_interp_found=yes 298 lua_interp_found=yes