From 26e258c807c25097ae41e9c5d7dcb3b7a3bda64c Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 30 Apr 2012 21:03:38 +0000 Subject: * ext/digest/*/extconf.rb: use pkg_config to use same library with openssl. [ruby-core:44755][Bug #6379] * ext/openssl/deprecation.rb: extract check for broken Apple OpenSSL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/digest/md5/extconf.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'ext/digest/md5') diff --git a/ext/digest/md5/extconf.rb b/ext/digest/md5/extconf.rb index 803741a6d9..f1dd9122b4 100644 --- a/ext/digest/md5/extconf.rb +++ b/ext/digest/md5/extconf.rb @@ -9,9 +9,11 @@ $INCFLAGS << " -I$(srcdir)/.." $objs = [ "md5init.#{$OBJEXT}" ] dir_config("openssl") +pkg_config("openssl") +require_relative '../../openssl/deprecation' if !with_config("bundled-md5") && - have_library("crypto") && have_header("openssl/md5.h") + have_library("crypto") && OpenSSL.check_func("MD5_Transform", "openssl/md5.h") $objs << "md5ossl.#{$OBJEXT}" else @@ -22,7 +24,4 @@ have_header("sys/cdefs.h") $preload = %w[digest] -if try_compile("", flag = " -Wno-deprecated-declarations") - $warnflags << flag -end create_makefile("digest/md5") -- cgit v1.2.3