Update translations from Transifex
[midnight-commander.git] / m4.include / mc-with-screen-slang.m4
blobc76de6e6f89497e704efa7186d17c34e262d13e2
2 dnl
3 dnl Use the slang library.
4 dnl
5 AC_DEFUN([mc_WITH_SLANG], [
6     with_screen=slang
7     found_slang=no
8     PKG_CHECK_MODULES(SLANG, [slang >= 2.0], [found_slang=yes], [:])
9     if test x"$found_slang" = xno; then
10         AC_MSG_ERROR([S-Lang >= 2.0.0 library not found])
11     fi
13     MCLIBS="$SLANG_LIBS $MCLIBS"
14     CPPFLAGS="$SLANG_CFLAGS $CPPFLAGS"
16     dnl Check if termcap is needed.
17     if test x"$found_slang" = x"yes"; then
18         mc_SLANG_TERMCAP
19         if test x"$mc_cv_slang_termcap"  = x"yes"; then
20             MCLIBS="$MCLIBS -ltermcap"
21         fi
22     fi
24     screen_type=slang
25     screen_msg="S-Lang"
27     AC_DEFINE(HAVE_SLANG, 1, [Define to use S-Lang library for screen management])