]> git.deb.at Git - pkg/abook.git/blobdiff - configure.in
fixed an error in readline detection
[pkg/abook.git] / configure.in
index 0ad64bc510ea9ba3e84660488ee22e3d2e0d6c8c..d4556b9352bab3567e7c322ea8a28826b5162c7d 100644 (file)
@@ -46,6 +46,14 @@ dnl --------------------------
 dnl end of (n)curses detection
 dnl --------------------------
 
+AC_LIB_READLINE
+
+if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
+       AC_MSG_ERROR([*** readline library not found or it doesn't support history ***])
+fi
+
+LDFLAGS="$ac_cv_lib_readline $LDFLAGS"
+
 AC_CHECK_FUNCS(resizeterm)
 
 AC_CHECK_FUNC(snprintf, [AC_DEFINE(HAVE_SNPRINTF)],)