Sha256: 36db523d2296c2dca331c2904cbf45033dc4cd65b50e6d6edf24ee523528096b
Contents?: true
Size: 1.9 KB
Versions: 2
Compression:
Stored size: 1.9 KB
Contents
require "mkmf" $readline_headers = ["stdio.h"] def have_readline_header(header) if have_header(header) $readline_headers.push(header) return true else return false end end def have_readline_var(var) return have_var(var, $readline_headers) end dir_config('curses') dir_config('ncurses') dir_config('termcap') dir_config("readline") enable_libedit = enable_config("libedit") have_library("user32", nil) if /cygwin/ === RUBY_PLATFORM have_library("ncurses", "tgetnum") || have_library("termcap", "tgetnum") || have_library("curses", "tgetnum") if enable_libedit unless (have_readline_header("editline/readline.h") || have_readline_header("readline/readline.h")) && have_library("edit", "readline") exit end else unless ((have_readline_header("readline/readline.h") && have_readline_header("readline/history.h")) && (have_library("readline", "readline") || have_library("edit", "readline"))) || (have_readline_header("editline/readline.h") && have_library("edit", "readline")) exit end end have_func("rl_filename_completion_function") have_func("rl_username_completion_function") have_func("rl_completion_matches") have_readline_var("rl_deprep_term_function") have_readline_var("rl_completion_append_character") have_readline_var("rl_basic_word_break_characters") have_readline_var("rl_completer_word_break_characters") have_readline_var("rl_basic_quote_characters") have_readline_var("rl_completer_quote_characters") have_readline_var("rl_filename_quote_characters") have_readline_var("rl_attempted_completion_over") have_readline_var("rl_library_version") have_readline_var("rl_event_hook") have_func("rl_cleanup_after_signal") have_func("rl_clear_signals") have_func("rl_vi_editing_mode") have_func("rl_emacs_editing_mode") have_func("replace_history_entry") have_func("remove_history") create_makefile("readline/readline")
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubysl-readline-1.0.1 | ext/rubysl/readline/extconf.rb |
rubysl-readline-1.0.0 | ext/rubysl/readline/extconf.rb |