2010-06-16 11:24:00 +04:00
|
|
|
|
2010-06-16 10:51:00 +04:00
|
|
|
dnl
|
2021-03-21 15:48:09 +03:00
|
|
|
dnl Use the slang library.
|
2010-06-16 10:51:00 +04:00
|
|
|
dnl
|
2021-03-21 15:48:09 +03:00
|
|
|
AC_DEFUN([mc_WITH_SLANG], [
|
|
|
|
with_screen=slang
|
|
|
|
found_slang=no
|
|
|
|
PKG_CHECK_MODULES(SLANG, [slang >= 2.0], [found_slang=yes], [:])
|
|
|
|
if test x"$found_slang" = xno; then
|
|
|
|
AC_MSG_ERROR([S-Lang >= 2.0.0 library not found])
|
2010-06-16 10:51:00 +04:00
|
|
|
fi
|
|
|
|
|
2021-03-21 15:48:09 +03:00
|
|
|
MCLIBS="$SLANG_LIBS $MCLIBS"
|
|
|
|
CPPFLAGS="$SLANG_CFLAGS $CPPFLAGS"
|
2010-06-16 10:51:00 +04:00
|
|
|
|
|
|
|
dnl Check if termcap is needed.
|
|
|
|
if test x"$found_slang" = x"yes"; then
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_SLANG_TERMCAP
|
2010-06-16 10:51:00 +04:00
|
|
|
fi
|
|
|
|
|
2016-03-16 19:47:22 +03:00
|
|
|
screen_type=slang
|
2016-03-19 10:58:00 +03:00
|
|
|
screen_msg="S-Lang"
|
2010-06-16 11:24:00 +04:00
|
|
|
|
2021-03-21 15:48:09 +03:00
|
|
|
AC_DEFINE(HAVE_SLANG, 1, [Define to use S-Lang library for screen management])
|
2010-06-16 10:51:00 +04:00
|
|
|
])
|