mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-01 13:45:29 +03:00

AC_SEARCH_LIBS macro adds required library to 'LIBS' variable. Currently 'LIBS' could be appended to 'MCLIBS' several times leading to duplication of found values. Also fixed duplication for 'stdscr' function detection. Additionally fixed potential problematic situation when 'addwstr' or 'has_colors' detected in one ncurses library (for example 'ncurses'), while 'stdscr' detected in other ncurses library (for example 'curses'). Such combination leads to problems. Closes MidnightCommander/mc#187. Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>