]> granicus.if.org Git - procps-ng/commitdiff
build-sys: Allow enable-watch9bit and with-ncurses
authorCraig Small <csmall@dropbear.xyz>
Wed, 28 Sep 2022 07:42:17 +0000 (17:42 +1000)
committerCraig Small <csmall@dropbear.xyz>
Wed, 28 Sep 2022 07:46:52 +0000 (17:46 +1000)
The commit that changed configure.ac was supposed to check for when
someone removes ncurses using the flag --without-ncurses

Unfortunately the change didn't check if the user was specifying
--without or --with meaning if they didn use --with-ncurses the
configure script would error out.

Signed-off-by: Craig Small <csmall@dropbear.xyz>
References:
  commit 812864181408398af98b217f384205a6f2f9cb68
  procps-ng/procps#251

configure.ac

index 93670fca8e05ee82bef9965fc82c2eb421798f5b..629881a6cbf93a88bd51226d7e7f6d7e6985eac5 100644 (file)
@@ -219,13 +219,13 @@ AC_SUBST([HARDEN_LDFLAGS])
 # Optional packages - AC_ARG_WITH
 AC_ARG_WITH([ncurses],
   AS_HELP_STRING([--without-ncurses], [build only applications not needing ncurses]),
-  [AS_IF([test "x$enable_watch8bit" = "xyes"],
-    [AC_MSG_ERROR([Cannot have both --enable-watch8bit and --without-ncurses])]
-  )],
+  [],
   [with_ncurses=yes]
 )
 if test "x$with_ncurses" = xno; then
   AM_CONDITIONAL(WITH_NCURSES, false)
+  AS_IF([test "x$enable_watch8bit" = "xyes"],
+    [AC_MSG_ERROR([Cannot have both --enable-watch8bit and --without-ncurses])])
 else
   AM_CONDITIONAL(WITH_NCURSES, true)
   PKG_CHECK_MODULES([NCURSES], [ncursesw],