Change soft-fail to use the config, rather than env
[rbx.git] / stdlib / ext / pty / extconf.rb
blob5e126fe0cfc6bc09224f14762b15e3cc08a7f891
1 require 'mkmf'
3 if /mswin32|mingw|bccwin32/ !~ RUBY_PLATFORM
4   have_header("sys/stropts.h")
5   have_func("setresuid")
6   have_header("libutil.h")
7   have_header("pty.h")
8   have_library("util", "openpty")
9   if have_func("openpty") or
10       have_func("_getpty") or
11       have_func("ptsname") or
12       have_func("ioctl")
13     create_makefile('pty')
14   end
15 end