From: Dave Reisner Date: Sat, 30 Jun 2012 16:01:18 +0000 (-0400) Subject: build-sys: ensure BUILD_CFDISK is always defined X-Git-Tag: v2.22-rc1~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbd2620d4ed04884116603d250d000c33fc9ea39;p=thirdparty%2Futil-linux.git build-sys: ensure BUILD_CFDISK is always defined This avoids an error when configuring without ncurses: configure: error: conditional "BUILD_CFDISK" was never defined. Usually this means the macro was only invoked conditionally. Signed-off-by: Dave Reisner --- diff --git a/configure.ac b/configure.ac index 9f32b82483..4005768330 100644 --- a/configure.ac +++ b/configure.ac @@ -629,9 +629,7 @@ fi AM_CONDITIONAL(HAVE_SLANG, test "x$have_slang" = xyes) -if test "x$have_slang" = xyes -o "x$have_ncurses" = xyes; then - AM_CONDITIONAL(BUILD_CFDISK, true) -fi +AM_CONDITIONAL(BUILD_CFDISK, test "x$have_slang" = xyes -o "x$have_ncurses" = xyes) have_tinfo=no