From: Karel Zak Date: Thu, 26 Mar 2015 10:50:15 +0000 (+0100) Subject: build-sys: ncurses is optional, don't fail when missing X-Git-Tag: v2.26.2~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c9e161079771e8a1de9561969b1a466bf41dd6eb;p=thirdparty%2Futil-linux.git build-sys: ncurses is optional, don't fail when missing Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index 89629a1124..53bce053c9 100644 --- a/configure.ac +++ b/configure.ac @@ -727,9 +727,10 @@ AS_IF([test "x$with_ncurses" != xno], [ ]) ]) - AS_IF([test "x$have_ncurses" = xno], [ - AC_MSG_ERROR([ncurses or ncursesw selected, but library not found (--without-ncurses to disable)]) - ]) + AS_CASE([$with_ncurses:$have_ncurses], + [yes:no], [AC_MSG_ERROR([ncurses or ncursesw selected, but library not found])] + ) + ]) AC_SUBST([NCURSES_CFLAGS]) AC_SUBST([NCURSES_LIBS])