mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-24 04:50:27 +02:00
24160: build terminfo module if ncursesw is present but curses.h is not.
This commit is contained in:
parent
4592751f32
commit
6dc3cbafb1
3 changed files with 30 additions and 2 deletions
|
|
@ -49,7 +49,28 @@
|
|||
# undef offsetof
|
||||
# endif
|
||||
|
||||
# include <curses.h>
|
||||
#ifdef ZSH_IGNORE_NCURSES
|
||||
# ifdef HAVE_CURSES_H
|
||||
# include <curses.h>
|
||||
# endif
|
||||
#else
|
||||
# ifdef HAVE_NCURSESW_NCURSES_H
|
||||
# include <ncursesw/ncurses.h>
|
||||
# else
|
||||
# ifdef HAVE_NCURSES_NCURSES_H
|
||||
# include <ncurses/ncurses.h>
|
||||
# else
|
||||
# ifdef HAVE_NCURSES_H
|
||||
# include <ncurses.h>
|
||||
# else
|
||||
# ifdef HAVE_CURSES_H
|
||||
# include <curses.h>
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
# ifdef HAVE_TERM_H
|
||||
# include <term.h>
|
||||
# endif
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
name=zsh/terminfo
|
||||
|
||||
link='if test "x$ac_cv_func_tigetflag" = xyes -a "x$ac_cv_header_curses_h" = xyes; then
|
||||
link='if test "x$ac_cv_func_tigetflag" = xyes -a "x$ac_cv_header_curses_h" = xyes ||
|
||||
test x$ac_cv_header_ncurses_h = xyes || test x$ac_cv_header_ncurses_ncurses_h = xyes ||
|
||||
test x$ac_cv_header_ncursesw_ncurses_h = xyes; then
|
||||
if test "x$zsh_cv_shared_tigetstr" = xyes; then
|
||||
echo either
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue