From b212dd66746f274fa15b2824bcd7b14a72837f46 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 23 Sep 2016 14:18:41 +0000 Subject: zlib: no checks [ci skip] * ext/zlib/extconf.rb: no feature checks when building zlib from the source, assume it is recent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/zlib/extconf.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'ext/zlib') diff --git a/ext/zlib/extconf.rb b/ext/zlib/extconf.rb index c3035e37b5..47a15b1b20 100644 --- a/ext/zlib/extconf.rb +++ b/ext/zlib/extconf.rb @@ -70,9 +70,15 @@ if have_zlib $defs.concat(defines.collect{|d|' -D'+d}) - have_func('crc32_combine', 'zlib.h') - have_func('adler32_combine', 'zlib.h') - have_type('z_crc_t', 'zlib.h') + if zsrc + $defs << "-DHAVE_CRC32_COMBINE" + $defs << "-DHAVE_ADLER32_COMBINE" + $defs << "-DHAVE_TYPE_Z_CRC_T" + else + have_func('crc32_combine', 'zlib.h') + have_func('adler32_combine', 'zlib.h') + have_type('z_crc_t', 'zlib.h') + end create_makefile('zlib') {|conf| if zsrc -- cgit v1.2.3