From 92155f5e40ed2cf452dc5e2f618e7be6542293e8 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Mon, 20 Feb 2012 16:28:44 +0000 Subject: [PATCH] readline links in -ltermcap -ltinfo too (fixes breakage in static-binary builds) --- config/readline.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/readline.m4 b/config/readline.m4 index ce1d1deda..e97878ffa 100644 --- a/config/readline.m4 +++ b/config/readline.m4 @@ -15,13 +15,13 @@ else fi AC_CHECK_LIB([readline], [readline], [AC_CHECK_HEADER([readline/readline.h], - [READLINE_LIBS="-lreadline -lncurses"], + [READLINE_LIBS="-lreadline -lncurses -ltermcap -ltinfo"], [if test "$with_readline" != check; then AC_MSG_FAILURE([cannot find libreadline!]) fi])], [if test "$with_readline" != check; then AC_MSG_FAILURE([cannot find libreadline!]) - fi], -lncurses) + fi], [-lncurses -ltermcap -ltinfo]) if test -z "$READLINE_LIBS"; then with_readline=no else -- 2.30.2