2015-12-16 00:31:54 -05:00
|
|
|
# frozen_string_literal: false
|
2017-07-18 07:28:49 -04:00
|
|
|
|
2020-05-27 11:53:41 -04:00
|
|
|
def digest_conf(name)
|
2015-02-10 21:08:50 -05:00
|
|
|
unless with_config("bundled-#{name}")
|
2015-02-10 21:09:55 -05:00
|
|
|
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"
|
2016-07-06 01:44:58 -04:00
|
|
|
$headers << "#{name}cc.h"
|
2015-02-10 21:09:55 -05:00
|
|
|
return :commondigest
|
|
|
|
end
|
|
|
|
end
|
2015-02-10 21:08:50 -05:00
|
|
|
end
|
|
|
|
$objs << "#{name}.#{$OBJEXT}"
|
|
|
|
return
|
|
|
|
end
|