mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-26 05:02:03 +03:00
Merge branch '4463_ncurses_libs'
* 4463_ncurses_libs: Ticket #4463: ncurses library is duplicated in MCLIBS.
This commit is contained in:
commit
f17ebfd2a5
@ -98,32 +98,33 @@ AC_DEFUN([mc_WITH_NCURSES], [
|
||||
dnl check the user supplied location
|
||||
mc_CHECK_NCURSES_BY_PATH([$ac_ncurses_inc_path],[$ac_ncurses_lib_path])
|
||||
|
||||
LIBS=
|
||||
AC_SEARCH_LIBS([has_colors], [ncurses], [MCLIBS="$MCLIBS $LIBS"],
|
||||
LIBS="$MCLIBS"
|
||||
AC_SEARCH_LIBS([has_colors], [ncurses], [],
|
||||
[AC_MSG_ERROR([Cannot find ncurses library])])
|
||||
AC_SEARCH_LIBS([stdscr], [tinfo ncurses], [MCLIBS="$MCLIBS $LIBS"],
|
||||
AC_SEARCH_LIBS([stdscr], [tinfo], [],
|
||||
[AC_MSG_ERROR([Cannot find a library providing stdscr])])
|
||||
|
||||
MCLIBS="$LIBS"
|
||||
|
||||
screen_type=ncurses
|
||||
screen_msg="NCurses"
|
||||
AC_DEFINE(USE_NCURSES, 1,
|
||||
[Define to use ncurses for screen management])
|
||||
else
|
||||
LIBS=
|
||||
AC_SEARCH_LIBS([addwstr], [ncursesw ncurses curses], [MCLIBS="$MCLIBS $LIBS";ncursesw_found=yes],
|
||||
LIBS="$MCLIBS"
|
||||
AC_SEARCH_LIBS([addwstr], [ncursesw ncurses curses], [ncursesw_found=yes],
|
||||
[AC_MSG_WARN([Cannot find ncurses library, that support wide characters])])
|
||||
|
||||
AC_SEARCH_LIBS([stdscr], [tinfow tinfo ncursesw ncurses curses], [MCLIBS="$MCLIBS $LIBS"],
|
||||
[AC_MSG_ERROR([Cannot find a library providing stdscr])])
|
||||
MCLIBS="$LIBS"
|
||||
|
||||
if test x"$ncursesw_found" = "x"; then
|
||||
LIBS=
|
||||
AC_SEARCH_LIBS([has_colors], [ncurses curses], [MCLIBS="$MCLIBS $LIBS"],
|
||||
LIBS="$MCLIBS"
|
||||
AC_SEARCH_LIBS([has_colors], [ncurses curses], [],
|
||||
[AC_MSG_ERROR([Cannot find ncurses library])])
|
||||
AC_SEARCH_LIBS([stdscr], [tinfo ncurses curses], [MCLIBS="$MCLIBS $LIBS"],
|
||||
[AC_MSG_ERROR([Cannot find a library providing stdscr])])
|
||||
MCLIBS="$LIBS"
|
||||
fi
|
||||
LIBS="$MCLIBS"
|
||||
AC_SEARCH_LIBS([stdscr], [tinfow tinfo], [MCLIBS="$MCLIBS $LIBS"],
|
||||
[AC_MSG_ERROR([Cannot find a library providing stdscr])])
|
||||
MCLIBS="$LIBS"
|
||||
|
||||
dnl Check the header
|
||||
ncurses_h_found=
|
||||
|
Loading…
Reference in New Issue
Block a user