projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix build on Centos 7.
[dcpomatic.git]
/
wscript
diff --git
a/wscript
b/wscript
index 4c40e34b110799177e499fce0d51246fc5f85171..a62b5c2c3a2e9b27c5c67b484fb99617b7e08195 100644
(file)
--- a/
wscript
+++ b/
wscript
@@
-281,6
+281,15
@@
def configure(conf):
uselib="ZIP",
define_name='DCPOMATIC_HAVE_ZIP_FILE_ADD'
)
uselib="ZIP",
define_name='DCPOMATIC_HAVE_ZIP_FILE_ADD'
)
+ conf.check_cxx(fragment="""
+ #include <zip.h>
+ int main() { int error; zip_open("foo", ZIP_RDONLY, &error); }
+ """,
+ mandatory=False,
+ msg="Checking for ZIP_RDONLY",
+ uselib="ZIP",
+ define_name='DCPOMATIC_HAVE_ZIP_RDONLY'
+ )
# libbz2; must be explicitly linked on macOS for some reason
conf.check_cxx(fragment="""
# libbz2; must be explicitly linked on macOS for some reason
conf.check_cxx(fragment="""