summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak2007-06-14 13:32:32 +0200
committerKarel Zak2007-06-14 13:32:32 +0200
commit4445728f0f5c5f0029b5b95ee280ce5cfc90fd5b (patch)
treea3363cd868d0766f9a46feea9fd035d483c21b05
parentswapon: cleanup PATH_ macros and tailing white-spaces (diff)
downloadkernel-qcow2-util-linux-4445728f0f5c5f0029b5b95ee280ce5cfc90fd5b.tar.gz
kernel-qcow2-util-linux-4445728f0f5c5f0029b5b95ee280ce5cfc90fd5b.tar.xz
kernel-qcow2-util-linux-4445728f0f5c5f0029b5b95ee280ce5cfc90fd5b.zip
build-sys: fix HAVE_NCURSES
The HAVE_NCURSES in config.h is required by the misc-utils/cal.c. Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--configure.ac10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index e678773fe..5655bf0b8 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