fix lua related compiling errors on windows

This commit is contained in:
jacob1
2013-12-08 13:15:19 -05:00
parent e1616fdd82
commit f65ea547e7

View File

@@ -179,6 +179,7 @@ if not GetOption("macosx"):
# if lua is enabled try to parse the lua pgk-config, or the lua-dir option if given # if lua is enabled try to parse the lua pgk-config, or the lua-dir option if given
if not GetOption("nolua"):
if(GetOption("lua-dir")): if(GetOption("lua-dir")):
if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'): if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'):
print "lua5.1 headers not found or not installed" print "lua5.1 headers not found or not installed"
@@ -189,7 +190,9 @@ if not GetOption("macosx"):
try: try:
env.ParseConfig('pkg-config --cflags lua5.1') env.ParseConfig('pkg-config --cflags lua5.1')
except: except:
print "lua5.1 headers not found or not installed" #Check for Lua lib
if not conf.CheckLib('lua5.1') and not conf.CheckLib('lua-5.1') and not conf.CheckLib('lua51') and not conf.CheckLib('lua'):
print "liblua5.1 not found or not installed"
raise SystemExit(1) raise SystemExit(1)
# if fft is enabled try to parse its config, fail otherwise. # if fft is enabled try to parse its config, fail otherwise.
@@ -216,12 +219,6 @@ if not GetOption("macosx"):
print "bzip2 headers not found" print "bzip2 headers not found"
raise SystemExit(1) raise SystemExit(1)
#Check for Lua lib
if not GetOption("nolua"):
if not conf.CheckLib('lua5.1') and not conf.CheckLib('lua-5.1') and not conf.CheckLib('lua51') and not conf.CheckLib('lua'):
print "liblua not found or not installed"
raise SystemExit(1)
# finish the configuration # finish the configuration
env = conf.Finish(); env = conf.Finish();