diff options
Diffstat (limited to 'ext/digest/sha2/extconf.rb')
-rw-r--r-- | ext/digest/sha2/extconf.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb index d4af8702aa..a8f0198cf0 100644 --- a/ext/digest/sha2/extconf.rb +++ b/ext/digest/sha2/extconf.rb @@ -12,7 +12,8 @@ dir_config("openssl") if !with_config("bundled-sha2") && have_library("crypto") && - %w[SHA256 SHA512].all? {|d| have_func("#{d}_Transform", "openssl/sha.h")} + %w[SHA256 SHA512].all? {|d| have_func("#{d}_Transform", "openssl/sha.h")} && + %w[SHA256 SHA512].all? {|d| have_type("#{d}_CTX", "openssl/sha.h")} $objs << "sha2ossl.#{$OBJEXT}" $defs << "-DSHA2_USE_OPENSSL" else |