mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
17 lines
459 B
Ruby
17 lines
459 B
Ruby
# frozen_string_literal: false
|
|
|
|
def digest_conf(name)
|
|
unless with_config("bundled-#{name}")
|
|
cc = with_config("common-digest")
|
|
if cc != false or /\b#{name}\b/ =~ cc
|
|
if File.exist?("#$srcdir/#{name}cc.h") and
|
|
have_header("CommonCrypto/CommonDigest.h")
|
|
$defs << "-D#{name.upcase}_USE_COMMONDIGEST"
|
|
$headers << "#{name}cc.h"
|
|
return :commondigest
|
|
end
|
|
end
|
|
end
|
|
$objs << "#{name}.#{$OBJEXT}"
|
|
return
|
|
end
|