From 2dae2af4a48285ace8c3439b5404df0d07393b4e Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 5 Feb 2012 14:13:07 -0600 Subject: [PATCH] Exit with error message if no library could be found with tgetent. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index ba848c3..cee74a8 100644 --- a/configure.ac +++ b/configure.ac @@ -472,6 +472,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. Is there a ncurses-devel '\ +'package that you can install?' + exit 1 +fi + dnl --------------- dnl CHECK FOR ICONV -- 1.7.10.4