1 Add an option to disable the curses module
3 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
7 Makefile.pre.in | 6 +++++-
8 configure.ac | 9 +++++++++
9 2 files changed, 14 insertions(+), 1 deletion(-)
11 Index: b/Makefile.pre.in
12 ===================================================================
16 multiprocessing multiprocessing/dummy \
18 venv venv/scripts venv/scripts/posix \
22 TESTSUBDIRS = test test/test_asyncio \
23 test/test_email test/test_email/data \
24 @@ -1218,6 +1218,10 @@
32 ifeq (@TEST_MODULES@,yes)
33 LIBSUBDIRS += $(TESTSUBDIRS)
36 ===================================================================
39 @@ -2693,6 +2693,15 @@
40 DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"
44 +AC_ARG_ENABLE(curses,
45 + AS_HELP_STRING([--disable-curses], [disable curses]),
46 + [ CURSES="${enableval}" ], [ CURSES=yes ])
48 +if test "$CURSES" = "no"; then
49 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel"