build: require minimum version of OpenSSL to be 1.0.1
Change-Id: I5d3fe907a7ab3159955e80a60cf0f011fd2b3154
Refs: #3007, #2949, #3089
diff --git a/wscript b/wscript
index 80b7fb5..1b0b002 100644
--- a/wscript
+++ b/wscript
@@ -12,7 +12,7 @@
def options(opt):
opt.load(['compiler_cxx', 'gnu_dirs', 'c_osx'])
opt.load(['default-compiler-flags', 'coverage', 'osx-security', 'pch',
- 'boost', 'cryptopp', 'sqlite3',
+ 'boost', 'cryptopp', 'sqlite3', 'openssl',
'doxygen', 'sphinx_build', 'type_traits', 'compiler-features'],
tooldir=['.waf-tools'])
@@ -66,7 +66,7 @@
conf.fatal("Either static library or shared library must be enabled")
conf.load(['compiler_cxx', 'gnu_dirs', 'c_osx', 'default-compiler-flags',
- 'osx-security', 'pch', 'boost', 'cryptopp', 'sqlite3',
+ 'osx-security', 'pch', 'boost', 'cryptopp', 'sqlite3', 'openssl',
'type_traits', 'compiler-features', 'doxygen', 'sphinx_build'])
conf.env['WITH_TESTS'] = conf.options.with_tests
@@ -98,6 +98,7 @@
conf.check_sqlite3(mandatory=True)
conf.check_cryptopp(mandatory=True, use='PTHREAD')
+ conf.check_openssl(mandatory=True, atleast_version=0x10001000) # 1.0.1
USED_BOOST_LIBS = ['system', 'filesystem', 'date_time', 'iostreams',
'regex', 'program_options', 'chrono', 'random']
@@ -163,7 +164,7 @@
excl=['src/security/**/*-osx.cpp',
'src/**/*-sqlite3.cpp']),
headers='src/common-pch.hpp',
- use='version BOOST CRYPTOPP SQLITE3 RT PTHREAD',
+ use='version BOOST CRYPTOPP OPENSSL SQLITE3 RT PTHREAD',
includes=". src",
export_includes="src",
install_path='${LIBDIR}',