blob: 075a1479374029050dbc890107b4083f793794bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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.h") 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
|