diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-19 17:55:18 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-19 17:55:18 +0000 |
| commit | 51893c498975aecd7d469d945547531b1fbb546d (patch) | |
| tree | 6ef5097acb474282a7122ce15ffdcde6e8e50ef2 /ext | |
| parent | c7f041c707ae9589896448e2c0237e4274a9249e (diff) | |
| download | ruby-51893c498975aecd7d469d945547531b1fbb546d.tar.gz ruby-51893c498975aecd7d469d945547531b1fbb546d.tar.xz ruby-51893c498975aecd7d469d945547531b1fbb546d.zip | |
* ext/openssl/extconf.rb: add check for OpenSSL version.
[ruby-list:39054]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/openssl/extconf.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index a4239a122..afcb03816 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -58,6 +58,17 @@ if !result end end +check_opensslv = <<_end_of_src_ +#include <openssl/opensslv.h> +#if OPENSSL_VERSION_NUMBER < 0x0090600fL +# error too old +#endif +_end_of_src_ +if !try_compile(check_opensslv) + message "OpenSSL 0.9.6 or later required.\n" + exit 1 +end + message "=== Checking for OpenSSL features... ===\n" have_func("HMAC_CTX_copy") have_func("X509_STORE_get_ex_data") |
