Basic email of KDMs works.
[dcpomatic.git] / wscript
diff --git a/wscript b/wscript
index 7d582f9e56d0fd01322a80b71dc4c0a7c73e7068..95b0768e8f182d1b3af7901984d8c3b83ff22e3d 100644 (file)
--- a/wscript
+++ b/wscript
@@ -119,6 +119,17 @@ def configure(conf):
         conf.env.STLIB_POSTPROC   = ['postproc']
         conf.env.STLIB_SWRESAMPLE = ['swresample']
         conf.env.STLIB_OPENJPEG   = ['openjpeg']
+        conf.env.STLIB_QUICKMAIL  = ['quickmail']
+    else:
+        conf.check_cxx(fragment="""
+                            #include <quickmail.h>
+                            int main(void) { quickmail_initialize (); }
+                            """,
+                       mandatory=True,
+                       msg='Checking for quickmail',
+                       libpath='/usr/local/lib',
+                       lib='quickmail',
+                       uselib_store='QUICKMAIL')
 
     # Dependencies which are always dynamically linked
     conf.check_cfg(package='sndfile', args='--cflags --libs', uselib_store='SNDFILE', mandatory=True)
@@ -127,6 +138,15 @@ def configure(conf):
     conf.check_cfg(package='libxml++-2.6', args='--cflags --libs', uselib_store='XML++', mandatory=True)
     conf.check_cfg(package='libcurl', args='--cflags --libs', uselib_store='CURL', mandatory=True)
 
+    conf.check_cxx(fragment="""
+                            #include <zip.h>
+                            int main(void) { zip_open ("foo", 0, 0); }
+                            """,
+                   mandatory=True,
+                   msg='Checking for libzip',
+                   lib='zip',
+                   uselib_store='ZIP')
+
     conf.check_cxx(fragment="""
                             #include <boost/version.hpp>\n
                             #if BOOST_VERSION < 104500\n