X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=m4%2Fcurses.m4;h=2e8d151041c9fce008c75a117374421bc2ebebe3;hb=283c5d1cf07f77d29fc1fc2f09532508f5124679;hp=408ae282424f8e6d40261e084b83e883d9c5a7fb;hpb=79e9a4f743b7b59fed968575f6b36171cf4a0063;p=meshlink diff --git a/m4/curses.m4 b/m4/curses.m4 index 408ae282..2e8d1510 100644 --- a/m4/curses.m4 +++ b/m4/curses.m4 @@ -31,12 +31,14 @@ 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.")] + )] ) ]) AC_SUBST(CURSES_LIBS) - AM_CONDITIONAL(CURSES, test "$curses" = true) ])