summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/extconf.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb
index 63ece61464..7db62745f3 100644
--- a/ext/readline/extconf.rb
+++ b/ext/readline/extconf.rb
@@ -2,9 +2,10 @@ require "mkmf"
dir_config("readline")
have_library("user32", nil) if /cygwin/ === RUBY_PLATFORM
-have_library("termcap", "tgetnum") or
- have_library("curses", "tgetnum") or
- have_library("ncurses", "tgetnum")
+have_library("ncurses", "tgetnum") or
+ have_library("termcap", "tgetnum") or
+ have_library("curses", "tgetnum")
+
if have_header("readline/readline.h") and
have_header("readline/history.h") and
have_library("readline", "readline")