diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-11 02:09:55 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-02-11 02:09:55 +0000 |
commit | b97ceb66e97f2a36e5602f74a593c61292cbd33b (patch) | |
tree | bd3085b343ba5abd5b40338007e880c5fde64176 /ext/digest/digest_conf.rb | |
parent | 935275bb5952b59b65c6a038a4b825aea95562ae (diff) | |
download | ruby-b97ceb66e97f2a36e5602f74a593c61292cbd33b.tar.gz |
digest: CommonDigest
* ext/digest/digest_conf.rb (digest_conf): check for CommonDigest.
* ext/digest/*/*cc.h: for Apple CommonCrypto/CommonDigest.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/digest/digest_conf.rb')
-rw-r--r-- | ext/digest/digest_conf.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/digest/digest_conf.rb b/ext/digest/digest_conf.rb index 4b8b6f4c58..b2a8195fa2 100644 --- a/ext/digest/digest_conf.rb +++ b/ext/digest/digest_conf.rb @@ -1,5 +1,14 @@ def digest_conf(name, hdr = name, funcs = nil) unless with_config("bundled-#{name}") + cc = with_config("common-digest") + if cc == true or /\b#{name}\b/ =~ cc + if File.exist?("#$srcdir/#{name}cc.h") and + have_header("CommonCrypto/CommonDigest.h") + $defs << "-D#{name.upcase}_USE_COMMONDIGEST" + return :commondigest + end + end + dir_config("openssl") pkg_config("openssl") require File.expand_path('../../openssl/deprecation', __FILE__) |