summaryrefslogtreecommitdiff
blob: 7c0ce2813c623cd54966e90f4c6a1bacaf550d0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/m4/guestfs_misc_libraries.m4 b/m4/guestfs_misc_libraries.m4
index 9b22670..3f81396 100644
--- a/m4/guestfs_misc_libraries.m4
+++ b/m4/guestfs_misc_libraries.m4
@@ -50,7 +50,7 @@ AC_ARG_WITH([readline],[
 LIBREADLINE=
 AS_IF([test "x$with_readline" != xno],[
     AC_CHECK_LIB([readline], [main],
-        [AC_SUBST([LIBREADLINE], ["-lreadline -lncurses"])
+        [AC_SUBST([LIBREADLINE], ["-lreadline -lncurses $LIBTINFO_LIBS"])
          AC_DEFINE([HAVE_LIBREADLINE], [1],
                    [Define if you have libreadline.])
         ],