extconf.rb in ncursesw-1.4.7 vs extconf.rb in ncursesw-1.4.8
- old
+ new
@@ -130,18 +130,18 @@
puts "checking for other functions that appeared after ncurses version 5.0..."
have_func("assume_default_colors")
have_func("attr_get")
puts "checking for the panel library..."
-if have_header("panel.h")
+if have_header("panel.h") or have_header("ncursesw/panel.h")
have_library("panelw", "panel_hidden")
else
raise "panel library not found"
end
puts "checking for the form library..."
-if have_header("form.h")
+if have_header("form.h") or have_header("ncursesw/form.h")
if not have_library("formw", "new_form")
raise "formw library not found"
end
else
raise "form library not found."
@@ -150,10 +150,10 @@
if have_library("formw", "form_driver_w")
$CFLAGS += " -DHAVE_FORM_DRIVER_W"
end
puts "checking for the menu library..."
-if have_header("menu.h")
+if have_header("menu.h") or have_header("ncursesw/menu.h")
have_library("menu", "new_menu")
else
raise "menu library not found."
end