summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/extconf.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb
index 685da8c..b8e9e0f 100644
--- a/ext/readline/extconf.rb
+++ b/ext/readline/extconf.rb
@@ -36,18 +36,21 @@ have_library("ncurses", "tgetnum") ||
case enable_libedit
when true
+ # --enable-libedit
unless (have_readline_header("editline/readline.h") ||
have_readline_header("readline/readline.h")) &&
have_library("edit", "readline")
exit
end
-when nil
+when false
+ # --disable-libedit
unless ((have_readline_header("readline/readline.h") &&
have_readline_header("readline/history.h")) &&
have_library("readline", "readline"))
exit
end
else
+ # does not specify
unless ((have_readline_header("readline/readline.h") &&
have_readline_header("readline/history.h")) &&
(have_library("readline", "readline") ||