From 76c5a97efec9ed66fe44e2766e3675a0ddb70f90 Mon Sep 17 00:00:00 2001 From: Christian Bauer Date: Sun, 28 Oct 2018 13:28:06 +0100 Subject: [PATCH] Fix libreadline detection. --- cxmon/configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cxmon/configure.ac b/cxmon/configure.ac index f93e6c85..a2e7abcb 100644 --- a/cxmon/configure.ac +++ b/cxmon/configure.ac @@ -31,7 +31,8 @@ dnl Checks for libraries. AC_SEARCH_LIBS([tgetent], [ncurses termcap termlib terminfo Hcurses curses], [], [ AC_MSG_ERROR([unable to find the tgetent() function]) ]) -AC_SEARCH_LIBS([readline], [readline], [], [ +AC_SEARCH_LIBS([readline], [readline], [ + AC_DEFINE([HAVE_LIBREADLINE], 1, [Define if you have the Readline library])], [ AC_MSG_ERROR([unable to find the readline() function]) ])