From 1daac53ce7f4fa0d8637e48a198cc5a1d896881e Mon Sep 17 00:00:00 2001 From: kouji Date: Tue, 21 Jun 2011 04:20:33 +0000 Subject: * ext/readline/extconf.rb: fixed bug, specify --disable-libedit then disable libedit, does not specify then check readline and libedit if failed checking readline. (fixes #3375) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/readline/extconf.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ext') diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb index 685da8c5bf..b8e9e0fab4 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") || -- cgit v1.2.3