]> git.sur5r.net Git - kconfig-frontends/commitdiff
configure: also search for libtinfo if needed
authorYann E. MORIN" <yann.morin.1998@free.fr>
Tue, 5 Mar 2013 00:08:27 +0000 (01:08 +0100)
committerYann E. MORIN" <yann.morin.1998@free.fr>
Tue, 5 Mar 2013 00:08:27 +0000 (01:08 +0100)
As Justin says:

    When building ncurses with --with-termlib several symbols get moved from
    libncurses.so to libtinfo.so. Thus when linking with libncurses.so, one
    additionally needs to link with libtinfo.so.

Contrary to the Linux kernel (that is on the verge of using pkg-config or
the ncurses*-config scripts), we simply see if we need to link against
libtinfo to get a symbol known to get moved there.

Reported-by: Justin <jlec@gentoo.org>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
configure.ac

index 8b5bc5d0bd94f6d9e4b817e996cf894b1d6ae581..e90fd177a2a6af66656ee2f52e263727cbf8d36b 100644 (file)
@@ -283,6 +283,10 @@ AS_IF(
             [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])