1 From d04ec780bf7c0825ab260bd1d6b7292141b2dcde Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Wed, 23 Dec 2015 11:49:30 +0100
4 Subject: [PATCH] Add an option to disable the curses module
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
9 Makefile.pre.in | 6 +++++-
10 configure.ac | 9 +++++++++
11 2 files changed, 14 insertions(+), 1 deletion(-)
13 diff --git a/Makefile.pre.in b/Makefile.pre.in
14 index 0a93c27..b97c21e 100644
17 @@ -1186,7 +1186,7 @@ LIBSUBDIRS= \
18 multiprocessing multiprocessing/dummy \
20 venv venv/scripts venv/scripts/posix \
24 TESTSUBDIRS = test test/test_asyncio \
25 test/test_email test/test_email/data \
26 @@ -1253,6 +1253,10 @@ TESTSUBDIRS += tkinter/test tkinter/test/test_tkinter \
34 ifeq (@TEST_MODULES@,yes)
35 LIBSUBDIRS += $(TESTSUBDIRS)
37 diff --git a/configure.ac b/configure.ac
38 index 787b185..0be47b2 100644
41 @@ -2912,6 +2912,15 @@ if test "$TK" = "no"; then
42 DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"
46 +AC_ARG_ENABLE(curses,
47 + AS_HELP_STRING([--disable-curses], [disable curses]),
48 + [ CURSES="${enableval}" ], [ CURSES=yes ])
50 +if test "$CURSES" = "no"; then
51 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel"