Ticket #4462: FTBFS if ncurses used without --with-ncurses-includes= configure parameter.

If ncurses location is not specified by configure parameters like
'--with-ncurses-includes=/some/dir' then automatic detection at compiler
default location is used. With automatic detection the header
'ncurses/term.h' is not checked therefore macro HAVE_NCURSES_TERM_H is
not defined.

Closes MidnightCommander/mc#186.

Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Evgeny Grin 2023-05-19 20:12:14 +03:00 committed by Andrew Borodin
parent 08be8094ca
commit 1f732f0a14

View File

@ -134,6 +134,8 @@ AC_DEFUN([mc_WITH_NCURSES], [
AC_MSG_ERROR([Cannot find ncurses header file])
fi
AC_CHECK_HEADERS([ncurses/term.h])
screen_type=ncurses
screen_msg="NCurses"
AC_DEFINE(USE_NCURSES, 1,