diff options
author | Carl Hetherington <carl@carlh.net> | 2012-04-26 08:44:06 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-04-26 08:44:06 +0000 |
commit | 42d018ffa81b026ff4dc5d6a290bb118c6f244e7 (patch) | |
tree | df263a1d835627ab70f7a46a1ca8102bf6be2f3e /wscript | |
parent | ec97b8e58d4d476cd340cddfabc388505fb1ef7e (diff) |
Use Glib::Threads::RecMutex rather than Glib::RecMutex where
available; the latter is deprecated and there is some
evidence to suggest that it is broken on some glibmm
versions (around 2.31.0 ish) See, for example
https://github.com/lightspark/lightspark/issues/168
git-svn-id: svn://localhost/ardour2/branches/3.0@12094 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -548,6 +548,14 @@ def configure(conf): autowaf.check_pkg(conf, 'sndfile', uselib_store='SNDFILE', atleast_version='1.0.18') autowaf.check_pkg(conf, 'giomm-2.4', uselib_store='GIOMM', atleast_version='2.2') + conf.check_cxx(fragment = '#include <glibmm/threads.h>\nstatic Glib::Threads::RecMutex foo;\nint main () {}', + uselib = ['GLIBMM'], + msg = 'Checking for Glib::Threads::RecMutex', + mandatory = False, + okmsg = 'yes', + errmsg = 'no; using deprecated API', + define_name = 'HAVE_GLIB_THREADS_RECMUTEX') + for i in children: sub_config_and_use(conf, i) |