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 | b19b893663af0e1a201523692002014a47d916b5 (patch) | |
| tree | 8566fc144bb10ff6dcedcce75f24bca4b1f39a89 | |
| parent | 0b1335699da45e7e7fb52a81b5dfb141abd8e6df (diff) | |
| download | ruby-b19b893663af0e1a201523692002014a47d916b5.tar.gz ruby-b19b893663af0e1a201523692002014a47d916b5.tar.xz ruby-b19b893663af0e1a201523692002014a47d916b5.zip | |
* ext/openssl/extconf.rb: add check for OpenSSL version.
[ruby-list:39054]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | ext/openssl/extconf.rb | 11 |
2 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Jan 20 02:49:22 2004 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * ext/openssl/extconf.rb: add check for OpenSSL version. + [ruby-list:39054] + Tue Jan 20 01:31:36 2004 WATANABE Hirofumi <eban@ruby-lang.org> * io.c (lineno): typo fix(FIX2INT -> INT2FIX). 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") |
