Merge branch '2509_diff_quick_move'
[pantumic.git] / m4.include / mc-with-screen.m4
blob03c5a9dd1ac59f38fd4691e32f2ef973cda368cc
1 m4_include([m4.include/mc-with-screen-ncurses.m4])
2 m4_include([m4.include/mc-with-screen-slang.m4])
4 dnl
5 dnl Select the screen library.
6 dnl
8 AC_DEFUN([MC_WITH_SCREEN], [
10     AC_ARG_WITH(screen,
11         [  --with-screen=LIB        Compile with screen library: slang or
12                            ncurses [[slang if found]]])
14     case x$with_screen in
15     xslang)
16         MC_WITH_SLANG(strict)
17         ;;
18     xncurses)
19         MC_WITH_NCURSES
20         ;;
21     xncursesw)
22         MC_WITH_NCURSESW
23         ;;
24     x)
25         MC_WITH_SLANG
26         ;;
27     *)
28         AC_MSG_ERROR([Value of the screen library is incorrect])
29         ;;
30     esac