From fa514a9f1670741b3b54ef27f2ea1253dfd091d6 Mon Sep 17 00:00:00 2001 From: Standa Opichal Date: Sun, 18 Apr 2010 18:24:08 +0200 Subject: [PATCH] Do a manual check for openssl if 'pkg-config openssl' fails. This makes the node_crypto module available for node built using just a default OS X dev environment (no darwinports or fink). --- wscript | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wscript b/wscript index a81b7e7..38dea82 100644 --- a/wscript +++ b/wscript @@ -140,6 +140,12 @@ def configure(conf): 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') + if libcrypto and libssl: + conf.env["USE_OPENSSL"] = True + conf.env.append_value("CXXFLAGS", "-DHAVE_OPENSSL=1") if conf.check_cfg(package='gnutls', args='--cflags --libs', -- 2.7.4