From b448acfe8fded2f2b29ae889c734d68245481529 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Tue, 27 Mar 2012 11:34:53 +0200 Subject: [PATCH] Exit with error message if no library could be found with tgetent(). Pulled in from nmh. Thanks to David Levine. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 2595cff..04f23d1 100644 --- a/configure.ac +++ b/configure.ac @@ -394,6 +394,12 @@ for lib in $termcap_curses_order; do AC_CHECK_LIB(${lib}, tgetent, [TERMLIB="-l$lib"; break]) done AC_SUBST(TERMLIB)dnl +if test "x$TERMLIB" = "x"; then + echo 'Could not find tgetent() in any library.' + echo 'Is there a ncurses-devel package that you can install?' + exit 1 +fi + dnl --------------- dnl CHECK FOR ICONV -- 1.7.10.4