]> granicus.if.org Git - procps-ng/commitdiff
watch: Support wide char ncurses on mac with enable-watch8bit
authorNipunn Koorapati <nipunn@dropbox.com>
Mon, 13 Jul 2020 05:08:24 +0000 (22:08 -0700)
committerCraig Small <csmall@dropbear.xyz>
Tue, 22 Dec 2020 00:45:20 +0000 (11:45 +1100)
Fixes #47

configure.ac

index a5a644e061be18cf330b21694c959e918c432bf3..e5ed2aa890eae5d5e5487c66b7fbec4f1ab7f7f4 100644 (file)
@@ -163,8 +163,11 @@ else
   if test "$enable_watch8bit" = yes; then
     PKG_CHECK_MODULES([NCURSESW], [ncursesw], [WATCH_NCURSES_LIBS="$NCURSESW_LIBS"]
     [WATCH_NCURSES_CFLAGS="$NCURSESW_CFLAGS"], [
-      AC_CHECK_LIB([ncursesw], [addwstr], [WATCH_NCURSES_LIBS=-lncursesw],
-                   [AC_MSG_ERROR([Cannot find ncurses wide library ncursesw with --enable-watch8bit])])
+      AC_CHECK_LIB([ncursesw], [addwstr], [WATCH_NCURSES_LIBS=-lncursesw], [
+        AC_CHECK_LIB([ncurses], [addwstr], [WATCH_NCURSES_LIBS=-lncurses], [
+          AC_MSG_ERROR([Cannot find ncurses wide library ncursesw with --enable-watch8bit])
+        ])
+      ])
     ])
   else
     WATCH_NCURSES_LIBS="$NCURSES_LIBS"