mc-with-screen-slang.m4 704 B

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