From: Karel Zak Date: Thu, 14 Jun 2007 11:32:32 +0000 (+0200) Subject: build-sys: fix HAVE_NCURSES X-Git-Tag: v2.13-rc1~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4445728f0f5c5f0029b5b95ee280ce5cfc90fd5b;p=thirdparty%2Futil-linux.git build-sys: fix HAVE_NCURSES The HAVE_NCURSES in config.h is required by the misc-utils/cal.c. Signed-off-by: Karel Zak --- diff --git a/configure.ac b/configure.ac index e678773fef..5655bf0b83 100644 --- a/configure.ac +++ b/configure.ac @@ -106,12 +106,16 @@ fi have_ncurses=no AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h], [have_ncurses=yes]) case $have_ncurses in -yes) AC_MSG_NOTICE([you have ncurses]);; -no) AC_MSG_NOTICE([you do not have ncurses]);; +yes) + AC_MSG_NOTICE([you have ncurses]) + AC_DEFINE(HAVE_NCURSES, 1, [Do we have -lncurses?]) + ;; +no) + AC_MSG_NOTICE([you do not have ncurses]) + ;; esac AM_CONDITIONAL(HAVE_NCURSES, test x$have_ncurses = xyes) - AC_ARG_WITH([slang], AS_HELP_STRING([--with-slang], [compile cfdisk with slang]), [], with_slang=no