On Sun, Dec 25, 2011 at 01:40:18PM +0200, Kalle Olavi Niemitalo wrote:
> I have not tried liblua5.1-c++.so.0 with Bos Wars yet.  Bos Wars
> has a Python-based build system that may take some time for me to
> figure out.

Yes, Scons sucks badly as all other make replacements. But today It's
christmas, I feel nice even to Scons. Gift attached, works for me.

Ciao
-- 
Enrico Tassi
Author: Enrico Tassi
Description: use c++ of system wide lua libraries
Index: boswars/SConstruct
===================================================================
--- boswars.orig/SConstruct     2010-04-18 20:04:54.000000000 +0200
+++ boswars/SConstruct  2011-12-25 20:02:03.000000000 +0100
@@ -170,10 +170,12 @@
 def CheckLuaLib(env, conf):
   if not 'USE_WIN32' in env['CPPDEFINES']:
      if env.WhereIs('pkg-config'):
-        for packagename in ['lua5.1', 'lua51', 'lua']:
+        for packagename in ['lua5.1-c++','lua5.1', 'lua51', 'lua']:
            exitcode,_ = ParseConfig(env, 'pkg-config --cflags --libs ' + 
packagename)
            if exitcode == 0:
               break
+  if conf.CheckLibWithHeader('lua5.1-c++', 'lua.h', 'c'):
+    return 1
   if conf.CheckLibWithHeader('lua51', 'lua.h', 'c'):
     return 1
   if conf.CheckLibWithHeader('lua5.1', 'lua.h', 'c'):

Reply via email to