1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/curses/extconf.rb

28 lines
700 B
Ruby
Raw Normal View History

require 'mkmf'
if( ! $CPPFLAGS )
$CPPFLAGS = ""
end
make=false
have_library("mytinfo", "tgetent") if /bow/ =~ RUBY_PLATFORM
if have_header("ncurses.h") and have_library("ncurses", "initscr")
make=true
elsif have_header("ncurses/curses.h") and have_library("ncurses", "initscr")
make=true
elsif have_header("curses_colr/curses.h") and have_library("cur_colr", "initscr")
make=true
else
have_library("termcap", "tgetent")
if have_header("curses") and have_library("curses", "initscr")
make=true
end
end
if make
for f in %w(isendwin ungetch beep getnstr wgetnstr doupdate flash deleteln wdeleteln keypad keyname init_color)
have_func(f)
end
create_makefile("curses")
end