* ext/io/wait/extconf.rb: removed unnecessary backward compatibility stuff.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4f0f5abf34
commit
85aa73835e
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jul 24 11:21:10 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||||
|
|
||||||
|
* ext/io/wait/extconf.rb: removed unnecessary backward
|
||||||
|
compatibility stuff.
|
||||||
|
|
||||||
Thu Jul 24 11:09:10 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
Thu Jul 24 11:09:10 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* ext/openssl/extconf.rb: revert use of dir_config.
|
* ext/openssl/extconf.rb: revert use of dir_config.
|
||||||
|
@ -1,28 +1,12 @@
|
|||||||
require 'mkmf'
|
require 'mkmf'
|
||||||
target = "io/wait"
|
target = "io/wait"
|
||||||
unless defined?(checking_for)
|
|
||||||
def checking_for(msg)
|
|
||||||
STDOUT.print "checking for ", msg, "..."
|
|
||||||
STDOUT.flush
|
|
||||||
STDOUT.puts((r = yield) ? "yes" : "no")
|
|
||||||
r
|
|
||||||
end
|
|
||||||
end
|
|
||||||
unless defined?(macro_defined?)
|
|
||||||
def macro_defined?(macro, src, opt="")
|
|
||||||
try_cpp(src + <<"SRC", opt)
|
|
||||||
#ifndef #{macro}
|
|
||||||
# error
|
|
||||||
#endif
|
|
||||||
SRC
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
unless /djgpp|mswin|mingw|human/ =~ RUBY_PLATFORM
|
unless /djgpp|mswin|mingw|human/ =~ RUBY_PLATFORM
|
||||||
fionread = %w[sys/ioctl.h sys/filio.h].find do |h|
|
fionread = %w[sys/ioctl.h sys/filio.h].find do |h|
|
||||||
checking_for("FIONREAD") {macro_defined?("FIONREAD", "#include <#{h}>\n")}
|
checking_for("FIONREAD") {macro_defined?("FIONREAD", "#include <#{h}>\n")}
|
||||||
end
|
end
|
||||||
exit 1 unless fionread
|
if fionread
|
||||||
$defs << "-DFIONREAD_HEADER=\"<#{fionread}>\""
|
$defs << "-DFIONREAD_HEADER=\"<#{fionread}>\""
|
||||||
create_makefile(target)
|
create_makefile(target)
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user