]> granicus.if.org Git - procps-ng/commitdiff
fix AC_ARG_WITH(ncurses) handling
authorMike Frysinger <vapier@gentoo.org>
Tue, 24 Jan 2012 18:01:14 +0000 (13:01 -0500)
committerSami Kerola <kerolasa@iki.fi>
Thu, 26 Jan 2012 20:16:59 +0000 (21:16 +0100)
The third arg is for "the user has specified some flag", not "the user
has disabled things", so use $withval.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
configure.ac

index 838d4a45297ba314149d2d235462afda49e27163..f6a24a64096e151218069db839c043bc1642bccd 100644 (file)
@@ -127,7 +127,7 @@ AC_TRY_COMPILE([#include <argp.h>],
 
 AC_ARG_WITH([ncurses],
   AS_HELP_STRING([--without-ncurses], [build only applications not needing ncurses]),
-  [with_ncurses=no], [with_ncurses=yes]
+  [with_ncurses=$withval], [with_ncurses=yes]
 )
 
 if test "x$with_ncurses" = xno; then