2013-05-29 16:36:57 +08:00
|
|
|
Add an option to disable the curses module
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
|
|
|
|
|
|
|
---
|
|
|
|
Makefile.pre.in | 6 +++++-
|
|
|
|
configure.ac | 9 +++++++++
|
|
|
|
2 files changed, 14 insertions(+), 1 deletion(-)
|
|
|
|
|
2014-02-19 04:40:01 +08:00
|
|
|
Index: b/Makefile.pre.in
|
2013-05-29 16:36:57 +08:00
|
|
|
===================================================================
|
2014-02-19 04:40:01 +08:00
|
|
|
--- a/Makefile.pre.in
|
|
|
|
+++ b/Makefile.pre.in
|
|
|
|
@@ -1140,7 +1140,7 @@
|
2013-05-29 16:36:57 +08:00
|
|
|
multiprocessing multiprocessing/dummy \
|
|
|
|
unittest \
|
|
|
|
venv venv/scripts venv/scripts/posix \
|
|
|
|
- curses $(MACHDEPS)
|
|
|
|
+ $(MACHDEPS)
|
|
|
|
|
2014-02-19 04:40:01 +08:00
|
|
|
TESTSUBDIRS = test test/test_asyncio ctypes/test \
|
|
|
|
test/test_email test/test_email/data \
|
|
|
|
@@ -1201,6 +1201,10 @@
|
|
|
|
tkinter/test/test_ttk
|
2013-05-29 16:36:57 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
+ifeq (@CURSES@,yes)
|
|
|
|
+LIBSUBDIRS += curses
|
|
|
|
+endif
|
|
|
|
+
|
2014-02-19 04:40:01 +08:00
|
|
|
ifeq (@TEST_MODULES@,yes)
|
|
|
|
LIBSUBDIRS += $(TESTSUBDIRS)
|
|
|
|
endif
|
|
|
|
Index: b/configure.ac
|
2013-05-29 16:36:57 +08:00
|
|
|
===================================================================
|
2014-02-19 04:40:01 +08:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
|
|
|
@@ -2684,6 +2684,15 @@
|
2013-05-29 16:36:57 +08:00
|
|
|
DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"
|
|
|
|
fi
|
|
|
|
|
|
|
|
+AC_SUBST(CURSES)
|
|
|
|
+AC_ARG_ENABLE(curses,
|
|
|
|
+ AS_HELP_STRING([--disable-curses], [disable curses]),
|
|
|
|
+ [ CURSES="${enableval}" ], [ CURSES=yes ])
|
|
|
|
+
|
|
|
|
+if test "$CURSES" = "no"; then
|
|
|
|
+ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel"
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
AC_SUBST(PYDOC)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(pydoc,
|