From: Guus Sliepen Date: Sat, 7 Dec 2013 21:59:37 +0000 (+0100) Subject: Prefer ncurses over curses. X-Git-Tag: release-1.1pre10~31 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=19b97e79aa63bcb6f81c2dbfd7ca91d89a230387;p=tinc Prefer ncurses over curses. --- diff --git a/m4/curses.m4 b/m4/curses.m4 index 50a90a5a..2e8d1510 100644 --- a/m4/curses.m4 +++ b/m4/curses.m4 @@ -31,9 +31,12 @@ AC_DEFUN([tinc_CURSES], [AC_MSG_ERROR("curses header files not found."); break] ) - AC_CHECK_LIB(curses, initscr, - [CURSES_LIBS="-lcurses"], - [AC_MSG_ERROR("curses libraries not found.")] + AC_CHECK_LIB(ncurses, initscr, + [CURSES_LIBS="-lncurses"], + [AC_CHECK_LIB(curses, initscr, + [CURSES_LIBS="-lcurses"], + [AC_MSG_ERROR("curses libraries not found.")] + )] ) ])