2010-06-16 10:51:00 +04:00
|
|
|
m4_include([m4.include/mc-with-screen-ncurses.m4])
|
|
|
|
m4_include([m4.include/mc-with-screen-slang.m4])
|
|
|
|
|
|
|
|
dnl
|
|
|
|
dnl Select the screen library.
|
|
|
|
dnl
|
|
|
|
|
2016-01-04 21:43:19 +03:00
|
|
|
AC_DEFUN([mc_WITH_SCREEN], [
|
2010-06-16 10:51:00 +04:00
|
|
|
|
2012-08-10 10:32:58 +04:00
|
|
|
AC_ARG_WITH([screen],
|
|
|
|
AS_HELP_STRING([--with-screen=@<:@LIB@:>@],
|
|
|
|
[Compile with screen library: slang or ncurses @<:@slang if found@:>@]))
|
2010-06-16 10:51:00 +04:00
|
|
|
|
|
|
|
case x$with_screen in
|
2012-08-10 10:32:58 +04:00
|
|
|
x | xslang)
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_WITH_SLANG
|
2010-06-16 10:51:00 +04:00
|
|
|
;;
|
|
|
|
xncurses)
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_WITH_NCURSES
|
2010-06-16 10:51:00 +04:00
|
|
|
;;
|
|
|
|
xncursesw)
|
2016-01-04 21:43:19 +03:00
|
|
|
mc_WITH_NCURSESW
|
2010-06-16 10:51:00 +04:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR([Value of the screen library is incorrect])
|
|
|
|
;;
|
|
|
|
esac
|
2009-05-07 16:38:06 +04:00
|
|
|
])
|