extconf.rb in ncursesw-0.9.2 vs extconf.rb in ncursesw-1.2.4.1
- old
+ new
@@ -1,10 +1,10 @@
#!/usr/bin/env ruby
# ncurses-ruby is a ruby module for accessing the FSF's ncurses library
# (C) 2002, 2004 Tobias Peters <t-peters@users.berlios.de>
-# (C) 2005 Tobias Herzke
+# (C) 2005, 2009 Tobias Herzke
#
# This module is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
@@ -16,18 +16,20 @@
#
# You should have received a copy of the GNU Lesser General Public
# License along with this module; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-# $Id: extconf.rb,v 1.11 2005/02/26 22:51:45 t-peters Exp $
+# $Id: extconf.rb,v 1.14 2009/05/03 14:13:27 t-peters Exp $
require "mkmf"
$CFLAGS += " -g"
$CXXFLAGS = $CFLAGS
have_header("unistd.h")
+have_header("locale.h")
+
if have_header("ncurses.h")
curses_header = "ncurses.h"
elsif have_header("ncurses/curses.h")
curses_header = "ncurses/curses.h"
elsif have_header("curses.h")
@@ -124,8 +126,12 @@
have_library("panelw", "panel_hidden")
end
puts "checking for the form library..."
if have_header("form.h")
have_library("formw", "new_form")
+end
+puts "checking for the menu library..."
+if have_header("menu.h")
+ have_library("menu", "new_menu")
end
create_makefile('ncursesw_bin')