changeset 2332:645d3ef1c88e default tip

Link against tinfo _or_ tinfow When linking againt libraries for wide characters, only libtinfow should be linked.
author franky
date Mon, 25 Nov 2019 21:40:51 +0100
parents e872a169fb6e
children
files mcabber/configure.ac
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/configure.ac	Wed Sep 04 13:38:55 2019 +0200
+++ b/mcabber/configure.ac	Mon Nov 25 21:40:51 2019 +0100
@@ -100,13 +100,13 @@
     AC_CHECK_LIB($cf_ncurses, initscr,
         [LIBS="$LIBS -l$cf_ncurses"
 
-         AC_CHECK_LIB(tinfo, tgetent, [LIBS="$LIBS -ltinfo"])
-
          if test "$cf_ncurses" = ncursesw; then
-            AC_CHECK_HEADERS([ncursesw/ncurses.h ncursesw/panel.h],,
+             AC_CHECK_LIB(tinfow, tgetent, [LIBS="$LIBS -ltinfow"])
+             AC_CHECK_HEADERS([ncursesw/ncurses.h ncursesw/panel.h],,
                  [AC_CHECK_HEADERS([ncurses.h panel.h],,
                                    AC_MSG_ERROR([Missing header file]))])
          else
+             AC_CHECK_LIB(tinfo, tgetent, [LIBS="$LIBS -ltinfo"])
              AC_CHECK_HEADERS([ncurses/ncurses.h ncurses/panel.h],,
                  [AC_CHECK_HEADERS([ncurses.h panel.h],,
                                    AC_MSG_ERROR([Missing header file]))])