]> git.sur5r.net Git - kconfig-frontends/commitdiff
configure: look for libtinfo before looking for libncurses
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 4 Jul 2013 19:26:19 +0000 (21:26 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 2 Aug 2016 19:13:14 +0000 (21:13 +0200)
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>
configure.ac

index 2f1817ef69ca9be2c526a2c25ab00dfe6a164f40..1595276a845740985dcadd00c683ab879c0707ff 100644 (file)
@@ -290,6 +290,10 @@ AS_IF(
      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],
@@ -300,10 +304,6 @@ 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])