- conf.check_cfg(package = 'libopenjpeg', args = '--cflags --libs', uselib_store = 'OPENJPEG', mandatory = True)
+ # Only 1.5.0 and 1.5.1 have been tested.
+ conf.check_cfg(package = 'libopenjpeg', args = '--cflags --libs', atleast_version = '1.5.0', uselib_store = 'OPENJPEG', mandatory = True)
+ conf.check_cfg(package = 'libopenjpeg', args = '--cflags --libs', max_version = '1.5.1', mandatory = True)
+
+ conf.check_cxx(fragment = """
+ #include <boost/version.hpp>\n
+ #if BOOST_VERSION < 104500\n
+ #error boost too old\n
+ #endif\n
+ int main(void) { return 0; }\n
+ """,
+ mandatory = True,
+ msg = 'Checking for boost library >= 1.45',
+ okmsg = 'yes',
+ errmsg = 'too old\nPlease install boost version 1.45 or higher.')