In case of static linking, we need to check for -ltinfo before
we check for -lncurses, so that -ltinfo comes *after* -lncurses
in the link command.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
AS_CASE(
[$CURSES_LOC],
[ncursesw/*],[ncurses_mconf_CPPFLAGS="$ncurses_mconf_CPPFLAGS -DNCURSES_WIDECHAR=1"])
+ AC_SEARCH_LIBS(
+ [setupterm],
+ [tinfo],
+ [break])
AC_SEARCH_LIBS(
[initscr],
[ncursesw ncurses curses],
[test "$need_curses" = "yes"],
[AC_MSG_ERROR([could not find curses library (frontends: mconf/nconf)])],
[has_curses=no])])
- AC_SEARCH_LIBS(
- [setupterm],
- [tinfo],
- [break])
ncurses_LIBS="$LIBS"
LIBS=$LIBS_old])