slyfox      14/11/01 15:55:26

  Added:                mc-4.8.13-tinfo.patch
  Log:
  Fix tinfo underlinking (bug #527118 by Michael Vasiliev and fix by Jeroen).
  
  (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 
611FF3AA)

Revision  Changes    Path
1.1                  app-misc/mc/files/mc-4.8.13-tinfo.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/files/mc-4.8.13-tinfo.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/mc/files/mc-4.8.13-tinfo.patch?rev=1.1&content-type=text/plain

Index: mc-4.8.13-tinfo.patch
===================================================================
Gentoo-bug: https://bugs.gentoo.org/527118
--- a/m4.include/mc-with-screen-ncurses.m4
+++ b/m4.include/mc-with-screen-ncurses.m4
@@ -101,6 +101,9 @@
         LIBS=
         AC_SEARCH_LIBS([has_colors], [ncurses], [MCLIBS="$MCLIBS $LIBS"], 
                        [AC_MSG_ERROR([Cannot find ncurses library])])
+        AC_SEARCH_LIBS([stdscr],[tinfo ncurses],[MCLIBS="$MCLIBS $LIBS"],
+                       [AC_MSG_ERROR([Cannot find a library providing 
stdscr])])
+
 
         screen_type=ncurses
         screen_msg="Ncurses library"
@@ -111,10 +114,15 @@
         AC_SEARCH_LIBS([addwstr], [ncursesw ncurses curses], [MCLIBS="$MCLIBS 
$LIBS";ncursesw_found=yes],
                        [AC_MSG_WARN([Cannot find ncurses library, that support 
wide characters])])
 
+        AC_SEARCH_LIBS([stdscr],[tinfo ncursesw ncurses 
curses],[MCLIBS="$MCLIBS $LIBS"],
+                       [AC_MSG_ERROR([Cannot find a library providing 
stdscr])])
+
         if test x"$ncursesw_found" = "x"; then
             LIBS=
             AC_SEARCH_LIBS([has_colors], [ncurses curses], [MCLIBS="$MCLIBS 
$LIBS"], 
                            [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])])
         fi
 
         dnl Check the header
@@ -166,6 +174,9 @@
     LIBS=
     AC_SEARCH_LIBS([has_colors], [ncursesw], [MCLIBS="$MCLIBS $LIBS"],
                   [AC_MSG_ERROR([Cannot find ncursesw library])])
+    AC_SEARCH_LIBS([stdscr],[tinfow ncursesw],[MCLIBS="$MCLIBS $LIBS"],
+           [AC_MSG_ERROR([Cannot find a library providing stdscr])])
+
 
     dnl Check the header
     ncurses_h_found=




Reply via email to