diff options
| author | Savely Skresanov <savask@yandex.ru> | 2012-08-04 11:39:08 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-08-04 12:52:10 (GMT) |
| commit | 929d99f80c7913677195e69235d99c0e954cf07d (patch) | |
| tree | 4d2307192445302fdf35a434593dc2cf16e39c86 /SConscript | |
| parent | 268795eec167a5fdeadef86dabbedac258e5b20a (diff) | |
| download | powder-929d99f80c7913677195e69235d99c0e954cf07d.zip powder-929d99f80c7913677195e69235d99c0e954cf07d.tar.gz | |
Autodetect lua5.1 (not sure how to detect lua-5.1 or just lua)
Diffstat (limited to 'SConscript')
| -rw-r--r-- | SConscript | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -77,12 +77,15 @@ except: env.Append(CPPPATH=GetOption("sdl-dir")) #Find correct lua include dir -if(GetOption("lua-dir")): - if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'): - print "lua5.1 headers not found or not installed" - raise SystemExit(1) - else: - env.Append(CPPPATH=GetOption("lua-dir")) +try: + env.ParseConfig('pkg-config --cflags lua5.1') +except: + if(GetOption("lua-dir")): + if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'): + print "lua5.1 headers not found or not installed" + raise SystemExit(1) + else: + env.Append(CPPPATH=GetOption("lua-dir")) #Check for FFT lib if not conf.CheckLib('fftw3f') and not conf.CheckLib('fftw3f-3'): |
