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
|
|
|
|
|
|
|
|
AC_DEFUN([MC_WITH_SCREEN], [
|
|
|
|
|
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)
|
|
|
|
MC_WITH_SLANG
|
2010-06-16 10:51:00 +04:00
|
|
|
;;
|
|
|
|
xncurses)
|
|
|
|
MC_WITH_NCURSES
|
|
|
|
;;
|
|
|
|
xncursesw)
|
|
|
|
MC_WITH_NCURSESW
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
AC_MSG_ERROR([Value of the screen library is incorrect])
|
|
|
|
;;
|
|
|
|
esac
|
2009-05-07 16:38:06 +04:00
|
|
|
])
|