13
0

Bump boost version requirement

1.56 is needed for boost::optional::value_or
This commit is contained in:
Robin Gareus 2019-11-21 17:43:32 +01:00
parent 53b1d17c60
commit 216492c60c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1032,12 +1032,12 @@ def configure(conf):
else: else:
conf.check_cc(function_name='dlopen', header_name='dlfcn.h', lib='dl', uselib_store='DL') conf.check_cc(function_name='dlopen', header_name='dlfcn.h', lib='dl', uselib_store='DL')
conf.check_cxx(fragment = "#include <boost/version.hpp>\n#if !defined (BOOST_VERSION) || BOOST_VERSION < 103900\n#error boost >= 1.39 is not available\n#endif\nint main(void) { return 0; }\n", conf.check_cxx(fragment = "#include <boost/version.hpp>\n#if !defined (BOOST_VERSION) || BOOST_VERSION < 105600\n#error boost >= 1.56 is not available\n#endif\nint main(void) { return 0; }\n",
execute = False, execute = False,
mandatory = True, mandatory = True,
msg = 'Checking for boost library >= 1.39', msg = 'Checking for boost library >= 1.56',
okmsg = 'ok', okmsg = 'ok',
errmsg = 'too old\nPlease install boost version 1.39 or higher.') errmsg = 'too old\nPlease install boost version 1.56 or higher.')
if re.search ("linux", sys.platform) != None and Options.options.dist_target != 'mingw': if re.search ("linux", sys.platform) != None and Options.options.dist_target != 'mingw':
autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA') autowaf.check_pkg(conf, 'alsa', uselib_store='ALSA')