diff --git a/configure.in b/configure.in index 031487f0..f405a27c 100644 --- a/configure.in +++ b/configure.in @@ -124,14 +124,14 @@ AC_CHECK_HEADER(libaio.h, :, AC_SUBST(AIO_LIBS) NCURSES_LIBS= -AC_CHECK_LIB(ncurses, tgetstr, NCURSES_LIBS=-lncurses) +AC_CHECK_LIB(tinfo, tgetstr, NCURSES_LIBS=-ltinfo) if test "x$NCURSES_LIBS" = "x"; then AC_MSG_ERROR([Unable to find ncurses library]) fi AC_SUBST(NCURSES_LIBS) saved_LDFLAGS="$LDFLAGS" -LDFLAGS="$LDFLAGS -lncurses" +LDFLAGS="$LDFLAGS -ltinfo" READLINE_LIBS= AC_CHECK_LIB(readline, readline, READLINE_LIBS=-lreadline) if test "x$READLINE_LIBS" = "x"; then