blob: 099d20fcbe31c3f963ac62972c413974fb58a5a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# frozen_string_literal: false
def digest_conf(name)
unless with_config("bundled-#{name}")
case cc = with_config("common-digest", true)
when true, false
else
cc = cc.split(/[\s,]++/).any? {|pat| File.fnmatch?(pat, name)}
end
if cc and 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
$objs << "#{name}.#{$OBJEXT}"
return
end
|