]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: ncurses is optional, don't fail when missing
authorKarel Zak <kzak@redhat.com>
Thu, 26 Mar 2015 10:50:15 +0000 (11:50 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Mar 2015 10:50:15 +0000 (11:50 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac

index f4a015ebccc85e7eee54746f5eaf68c733de8d83..29ec86d76516135084726a2c994f892b6a9b1b2d 100644 (file)
@@ -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])