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>
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