]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: ensure BUILD_CFDISK is always defined
authorDave Reisner <dreisner@archlinux.org>
Sat, 30 Jun 2012 16:01:18 +0000 (12:01 -0400)
committerKarel Zak <kzak@redhat.com>
Mon, 9 Jul 2012 15:08:44 +0000 (17:08 +0200)
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 <dreisner@archlinux.org>
configure.ac

index 9f32b824836e16f8d4f0d3699d14bef9d85cdb18..4005768330d17d455977bbc33817a9e76c21b8b2 100644 (file)
@@ -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