summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-05-23 21:17:23 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-23 21:17:23 +0100
commit3739c62f626b65da929d37fb7efc44a8e349e6f1 (patch)
treea2f91eb01fbd3014d2a5348f38fdd09a31e7f927 /wscript
parent2b2823284b07354d1f480e54aded1aba45716cf5 (diff)
Attempt to make more concessions for Centos 5.
Diffstat (limited to 'wscript')
-rw-r--r--wscript19
1 files changed, 19 insertions, 0 deletions
diff --git a/wscript b/wscript
index e31299883..dd2e18e0e 100644
--- a/wscript
+++ b/wscript
@@ -199,6 +199,25 @@ def configure(conf):
if graphics is not None:
conf.env.append_value('CXXFLAGS', '-DDCPOMATIC_GRAPHICS_MAGICK')
+ # See if we are using the MagickCore or MagickLib namespaces
+ conf.check_cxx(fragment="""
+ #include <Magick++.h>
+ using namespace MagickCore;
+ """,
+ mandatory=False,
+ msg='Checking for MagickCore namespace',
+ okmsg='yes',
+ define_name='DCPOMATIC_HAVE_MAGICKCORE_NAMESPACE')
+
+ conf.check_cxx(fragment="""
+ #include <Magick++.h>
+ using namespace MagickLib
+ """,
+ mandatory=False,
+ msg='Checking for MagickLib namespace',
+ okmsg='yes',
+ define_name='DCPOMATIC_HAVE_MAGICKLIB_NAMESPACE')
+
# libzip
conf.check_cfg(package='libzip', args='--cflags --libs', uselib_store='ZIP', mandatory=True)