From 185c678ccd84e5664aee84f179e88e1bca7bf7d7 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 1 Dec 2013 12:11:46 +0100 Subject: [PATCH] build: Don't insist on curses for CLI support. On systems without curses headers/libs, support for interactive cli tools is deactivated and a message is shown which claims that readline depends on the curses library. This is not true: readline uses the termcap functions, but does not link with the termcap or curses library itself. Applications must choose an appropriate library that provides these functions. This change should enable readline support on systems that have libtermcap but no curses library. --- configure.ac | 6 ------ 1 file changed, 6 deletions(-) diff --git a/configure.ac b/configure.ac index 4dd5c6da..36eab114 100644 --- a/configure.ac +++ b/configure.ac @@ -727,12 +727,6 @@ AC_CHECK_HEADERS([readline/readline.h], [ AC_MSG_WARN([readline/readline.h not found, $msg]) ]) -if test "$have_curses" != "yes"; then - have_readline="no" - AC_MSG_WARN([interactive cli support depends on curses,]) - AC_MSG_WARN([but no curses lib was detected, $msg]) -fi - if test "$have_readline" = "yes"; then readline_ldflags="$readline_libs -lreadline" AC_SEARCH_LIBS([rl_free_keymap], [readline], [], [have_readline="no"]) -- 2.39.5