mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
94d17c1f1f
* ext/extmk.rb (extmake): set library name as source file name in Init_ext(). [ruby-dev:21137] * lib/mkmf.rb (Logging::postpone): postpone logging messages after heading message as the result of the block. * lib/mkmf.rb (macro_defined?): append newline to src unless ended with it. * lib/mkmf.rb (have_library): allow nil function name to just append a library. (ruby-bugs:PR#1083) * lib/mkmf.rb (pkg_config): should append additional libraries to $libs but not $LIBS. [ruby-dev:21137] * ext/io/wait/extconf.rb: check DOSISH macro instead of platform. * ext/digest/sha1/extconf.rb: have_library already appends library name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12 lines
329 B
Ruby
12 lines
329 B
Ruby
require 'mkmf'
|
|
target = "io/wait"
|
|
|
|
unless macro_defined?("DOSISH", "#include <ruby.h>")
|
|
fionread = %w[sys/ioctl.h sys/filio.h].find do |h|
|
|
checking_for("FIONREAD") {macro_defined?("FIONREAD", "#include <#{h}>\n")}
|
|
end
|
|
if fionread
|
|
$defs << "-DFIONREAD_HEADER=\"<#{fionread}>\""
|
|
create_makefile(target)
|
|
end
|
|
end
|