build: let ./configure fail (not just warn) when curses.h is missing

This fixes https://savannah.gnu.org/bugs/?52930.
Reported-by: Michail Tsiolkas <mtsio@cryptolab.net>
master
Benno Schulenberg 2018-01-19 11:11:12 +01:00
parent 6795d079b1
commit ba1f990582
1 changed files with 4 additions and 4 deletions

View File

@ -565,10 +565,10 @@ if eval "test x$CURSES_LIB_NAME = x"; then
fi fi
if eval "test x$CURSES_LIB_NAME = x"; then if eval "test x$CURSES_LIB_NAME = x"; then
AC_MSG_WARN([ AC_MSG_ERROR([
*** No curses lib available. Consider getting the official ncurses *** No curses lib was found. Please install the curses header files
*** distribution from ftp://ftp.gnu.org/pub/gnu/ncurses if you get *** from libncursesw5-dev (Debian), ncurses-devel (Fedora), or similar.
*** errors compiling nano.]) *** (Or install ncurses from https://ftp.gnu.org/gnu/ncurses/.)])
else else
AC_MSG_RESULT([Using $CURSES_LIB_NAME as the curses library]) AC_MSG_RESULT([Using $CURSES_LIB_NAME as the curses library])
fi fi