Don't check for libs that are frameworks under OS X
This commit is contained in:
parent
f30ef6004a
commit
9ba08768a4
13
SConscript
13
SConscript
@ -68,10 +68,11 @@ if GetOption("toolprefix"):
|
||||
#Check for headers and libraries
|
||||
conf = Configure(env)
|
||||
|
||||
try:
|
||||
if not GetOption("macosx"):
|
||||
try:
|
||||
env.ParseConfig('sdl-config --cflags')
|
||||
env.ParseConfig('sdl-config --libs')
|
||||
except:
|
||||
except:
|
||||
conf.CheckLib("SDL")
|
||||
if(GetOption("sdl-dir")):
|
||||
if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'):
|
||||
@ -81,9 +82,10 @@ except:
|
||||
env.Append(CPPPATH=GetOption("sdl-dir"))
|
||||
|
||||
#Find correct lua include dir
|
||||
try:
|
||||
if not GetOption("macosx"):
|
||||
try:
|
||||
env.ParseConfig('pkg-config --cflags lua5.1')
|
||||
except:
|
||||
except:
|
||||
if(GetOption("lua-dir")):
|
||||
if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'):
|
||||
print "lua5.1 headers not found or not installed"
|
||||
@ -92,7 +94,8 @@ except:
|
||||
env.Append(CPPPATH=GetOption("lua-dir"))
|
||||
|
||||
#Check for FFT lib
|
||||
if not conf.CheckLib('fftw3f') and not conf.CheckLib('fftw3f-3'):
|
||||
if not GetOption("macosx"):
|
||||
if not conf.CheckLib('fftw3f') and not conf.CheckLib('fftw3f-3'):
|
||||
print "libfftw3f not found or not installed"
|
||||
raise SystemExit(1)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user