Gentoo-bug: https://bugs.gentoo.org/527118
a
|
b
|
|
101 | 101 | LIBS= |
102 | 102 | AC_SEARCH_LIBS([has_colors], [ncurses], [MCLIBS="$MCLIBS $LIBS"], |
103 | 103 | [AC_MSG_ERROR([Cannot find ncurses library])]) |
| 104 | AC_SEARCH_LIBS([stdscr],[tinfo ncurses],[MCLIBS="$MCLIBS $LIBS"], |
| 105 | [AC_MSG_ERROR([Cannot find a library providing stdscr])]) |
| 106 | |
104 | 107 | |
105 | 108 | screen_type=ncurses |
106 | 109 | screen_msg="Ncurses library" |
… |
… |
|
111 | 114 | AC_SEARCH_LIBS([addwstr], [ncursesw ncurses curses], [MCLIBS="$MCLIBS $LIBS";ncursesw_found=yes], |
112 | 115 | [AC_MSG_WARN([Cannot find ncurses library, that support wide characters])]) |
113 | 116 | |
| 117 | AC_SEARCH_LIBS([stdscr],[tinfo ncursesw ncurses curses],[MCLIBS="$MCLIBS $LIBS"], |
| 118 | [AC_MSG_ERROR([Cannot find a library providing stdscr])]) |
| 119 | |
114 | 120 | if test x"$ncursesw_found" = "x"; then |
115 | 121 | LIBS= |
116 | 122 | AC_SEARCH_LIBS([has_colors], [ncurses curses], [MCLIBS="$MCLIBS $LIBS"], |
117 | 123 | [AC_MSG_ERROR([Cannot find ncurses library])]) |
| 124 | AC_SEARCH_LIBS([stdscr],[tinfo ncurses curses],[MCLIBS="$MCLIBS $LIBS"], |
| 125 | [AC_MSG_ERROR([Cannot find a library providing stdscr])]) |
118 | 126 | fi |
119 | 127 | |
120 | 128 | dnl Check the header |
… |
… |
|
166 | 174 | LIBS= |
167 | 175 | AC_SEARCH_LIBS([has_colors], [ncursesw], [MCLIBS="$MCLIBS $LIBS"], |
168 | 176 | [AC_MSG_ERROR([Cannot find ncursesw library])]) |
| 177 | AC_SEARCH_LIBS([stdscr],[tinfow ncursesw],[MCLIBS="$MCLIBS $LIBS"], |
| 178 | [AC_MSG_ERROR([Cannot find a library providing stdscr])]) |
| 179 | |
169 | 180 | |
170 | 181 | dnl Check the header |
171 | 182 | ncurses_h_found= |