diff options
author | David Runge <dave@sleepmap.de> | 2020-01-20 23:08:11 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-01-25 04:07:37 +0100 |
commit | 2e9ac80e998bc79d5ef9029415008198b22168dc (patch) | |
tree | 230cc17d741c519a8acc8925e556555c8edbf1cf /libs/pbd | |
parent | dfe712c5649ecc248242d35ee55fbb273b7fa150 (diff) |
Towards waf python 2+3 support
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/wscript | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/libs/pbd/wscript b/libs/pbd/wscript index 3fe8b364e2..df9ce4df46 100644 --- a/libs/pbd/wscript +++ b/libs/pbd/wscript @@ -109,12 +109,21 @@ def configure(conf): autowaf.check_pkg(conf, 'glibmm-2.4', uselib_store='GLIBMM', atleast_version='2.32.0', mandatory=True) autowaf.check_pkg(conf, 'giomm-2.4', uselib_store='GIOMM', atleast_version='2.2', mandatory=True) - conf.check(function_name='getmntent', header_name='mntent.h', define_name='HAVE_GETMNTENT',mandatory=False) conf.check(header_name='execinfo.h', define_name='HAVE_EXECINFO',mandatory=False) conf.check(header_name='unistd.h', define_name='HAVE_UNISTD',mandatory=False) if not Options.options.ppc: - conf.check_cc(function_name='posix_memalign', header_name='stdlib.h', cflags='-D_XOPEN_SOURCE=600', define_name='HAVE_POSIX_MEMALIGN', mandatory=False) - conf.check(function_name='localtime_r', header_name='time.h', define_name='HAVE_LOCALTIME_R',mandatory=False) + conf.check_cc( + msg="Checking for function 'posix_memalign' in stdlib.h", + fragment = "#define _XOPEN_SOURCE 600\n #include <stdlib.h>\n int main(void) { return posix_memalign (0, 64, 1); }\n", + define_name='HAVE_POSIX_MEMALIGN', execute = False, mandatory=False) + conf.check_cc( + msg="Checking for function 'getmntent' in mntent.h", + fragment = "#include <mntent.h>\n int main(void) { return (int)getmntent(0); }\n", + define_name='HAVE_GETMNTENT', execute = False, mandatory=False) + conf.check_cc( + msg="Checking for function 'localtime_r' in time.h", + fragment = "#include <time.h>\n int main(void) { return localtime_r(NULL, NULL); }\n", + define_name='HAVE_LOCALTIME_R', execute = False, mandatory=False) # Boost headers autowaf.check_header(conf, 'cxx', 'boost/shared_ptr.hpp') @@ -162,7 +171,7 @@ def build(bld): obj.includes = ['.'] obj.name = 'libpbd' obj.target = 'pbd' - obj.uselib = 'GLIBMM SIGCPP XML UUID SNDFILE GIOMM ARCHIVE CURL' + obj.uselib = 'GLIBMM SIGCPP XML UUID SNDFILE GIOMM ARCHIVE CURL XML' if sys.platform == 'darwin': TaskGen.task_gen.mappings['.mm'] = TaskGen.task_gen.mappings['.cc'] if 'cocoa_open_uri.mm' not in obj.source: |