Check for lua 5.1

This commit is contained in:
jsalmon3 2007-03-01 05:27:02 +00:00
parent 6ee57989bb
commit 82fad5f92a

View file

@ -100,8 +100,12 @@ def CheckLuaLib(env, conf):
found = 1
if not found and conf.CheckLibWithHeader('lua50', 'lua.h', 'c'):
found =1
if not found and conf.CheckLibWithHeader('lua51', 'lua.h', 'c'):
found =1
if not found and conf.CheckLibWithHeader('lua5.0', 'lua.h', 'c'):
found =1
if not found and conf.CheckLibWithHeader('lua5.1', 'lua.h', 'c'):
found =1
if not found:
return 0
@ -111,6 +115,10 @@ def CheckLuaLib(env, conf):
return 1
if conf.CheckLibWithHeader('lualib5.0', 'lualib.h', 'c'):
return 1
if conf.CheckLibWithHeader('lualib51', 'lualib.h', 'c'):
return 1
if conf.CheckLibWithHeader('lualib5.1', 'lualib.h', 'c'):
return 1
return 0
def AutoConfigure(env):