Commit fadce3f1 authored by jim warner's avatar jim warner Committed by Craig Small

build-sys: a minimialst approach to ncurses

. 3 pgms require non-wide <curses.h> or <ncurses.h>

This patch represents the tests for a minimal environment
consistent with current ncurses needs.

It should allow a successful configure and build
parent 8348b4cc
......@@ -100,15 +100,13 @@ AC_ARG_WITH([ncurses],
if test "x$with_ncurses" = xno; then
AM_CONDITIONAL(WITH_NCURSES, false)
else
AC_CHECK_LIB(ncursesw, initscr, [have_ncurses=yes], [have_ncurses=no])
AC_CHECK_HEADERS(curses.h, [], [have_ncurses=no])
AC_CHECK_HEADERS(ncurses.h, [], [have_ncurses=no])
AC_CHECK_HEADERS(ncursesw/ncurses.h, [], [have_ncurses=no])
AC_CHECK_LIB(ncurses, initscr, [have_ncurses=yes], [have_ncurses=no])
AC_CHECK_HEADERS(curses.h ncurses.h, [], [have_ncurses=no], AC_INCLUDES_DEFAULT)
if test "x$have_ncurses" = xno; then
AC_MSG_ERROR([ncurses support missing/incomplete (for partial build use --without-ncurses)])
fi
AM_CONDITIONAL(WITH_NCURSES, true)
NCURSES_LIBS="-lncursesw"
NCURSES_LIBS="-lncurses"
fi
AC_SUBST([NCURSES_LIBS])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment