Add some libpaths for SSL

This commit is contained in:
Ryan Dahl 2010-04-20 21:43:08 +00:00
parent ac9d9f4e9f
commit 27ec33aad7

11
wscript
View File

@ -136,13 +136,18 @@ def configure(conf):
if conf.check_cfg(package='openssl',
args='--cflags --libs',
#libpath=['/usr/lib', '/usr/local/lib'],
uselib_store='OPENSSL'):
conf.env["USE_OPENSSL"] = True
conf.env.append_value("CXXFLAGS", "-DHAVE_OPENSSL=1")
else:
libcrypto = conf.check(lib='crypto', uselib_store='OPENSSL')
libssl = conf.check(lib='ssl', uselib_store='OPENSSL')
libssl = conf.check_cc(lib='ssl',
header_name='openssl/ssl.h',
function_name='SSL_library_init',
libpath=['/usr/lib', '/usr/local/lib', '/opt/local/lib', '/usr/sfw/lib'],
uselib_store='OPENSSL')
libcrypto = conf.check_cc(lib='crypto',
header_name='openssl/crypto.h',
uselib_store='OPENSSL')
if libcrypto and libssl:
conf.env["USE_OPENSSL"] = True
conf.env.append_value("CXXFLAGS", "-DHAVE_OPENSSL=1")