From: David Levine Date: Sun, 5 Feb 2012 20:13:07 +0000 (-0600) Subject: Exit with error message if no library could be found with tgetent. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/2dae2af4a48285ace8c3439b5404df0d07393b4e?hp=2645f808bdcc325e143a9c6300ff97b813e5429f Exit with error message if no library could be found with tgetent. --- diff --git a/configure.ac b/configure.ac index ba848c35..cee74a8a 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