Changed check for CURSES_LIBS
Showing
1 changed file
with
4 additions
and
2 deletions
... | @@ -385,8 +385,10 @@ AC_CHECK_FUNC(socket, [true], | ... | @@ -385,8 +385,10 @@ AC_CHECK_FUNC(socket, [true], |
385 | AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS")) | 385 | AC_CHECK_LIB(socket, socket, LIBS="-lsocket $LIBS")) |
386 | 386 | ||
387 | dnl Check for Curses libs. | 387 | dnl Check for Curses libs. |
388 | AC_CHECK_LIB(ncurses, tputs, CURSES_LIBS="-lncurses", | 388 | for lib in ncurses curses termcap |
389 | AC_CHECK_LIB(curses, tputs, CURSES_LIBS="-lcurses")) | 389 | do |
390 | AC_CHECK_LIB($lib, tputs, [CURSES_LIBS="-l$lib"; break]) | ||
391 | done | ||
390 | 392 | ||
391 | AC_SUBST(CURSES_LIBS) | 393 | AC_SUBST(CURSES_LIBS) |
392 | 394 | ... | ... |
-
Please register or sign in to post a comment