From 43cc76e2631f3b0255bb4817d59d98746f1c309b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 26 Mar 2015 11:50:15 +0100 Subject: build-sys: ncurses is optional, don't fail when missing Signed-off-by: Karel Zak --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f4a015ebc..29ec86d76 100644 --- a/configure.ac +++ b/configure.ac @@ -755,9 +755,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]) -- cgit v1.2.3-55-g7522