Enhanced detection for ncurses

This commit is contained in:
Jaroslav Kysela 2003-03-17 10:33:39 +00:00
parent 3924ff0921
commit 093a701102

View file

@ -15,7 +15,8 @@ AC_HEADER_STDC
AC_CHECK_LIB(ncurses, initscr,
[ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; ], [
AC_CHECK_LIB(curses, initscr,
[ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ])
[ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ],
AC_MSG_ERROR(this packages requires a curses library))
])
AC_SUBST(CURSESINC)