summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-10-10 00:40:00 +0200
committerCarl Hetherington <cth@carlh.net>2023-10-10 10:58:39 +0200
commit6d1582f3c4b5afe57bdc3c34dada275a05a961a4 (patch)
tree0b443f98a21ec0c9271e9400506f275211c8a9e9 /wscript
parentd70c44e87632a69a2b8bc90db7ca4b06b7aa611d (diff)
Implement weakly_canonical for boost versions without it (e.g. the one on Ubuntu 16.04).
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/wscript b/wscript
index 458d6132..d813c536 100644
--- a/wscript
+++ b/wscript
@@ -214,6 +214,15 @@ def configure(conf):
uselib_store='BOOST_FILESYSTEM')
conf.check_cxx(fragment="""
+ #include <boost/filesystem.hpp>\n
+ int main() { boost::filesystem::weakly_canonical("a/b/c"); }\n
+ """,
+ mandatory=False,
+ msg='Checking for boost::filesystem::weakly_canonical',
+ uselib='BOOST_FILESYSTEM',
+ define_name='LIBDCP_HAVE_WEAKLY_CANONICAL')
+
+ conf.check_cxx(fragment="""
#include <boost/signals2.hpp>\n
int main() { boost::signals2::signal<void (int)> x; }\n
""",