libgtk3: bump version to 3.22.11
[buildroot-gz.git] / package / python / 0021-Add-an-option-to-disable-the-curses-module.patch
blobc36942ad6beb960172af75bd8d5dd05d43791bcb
1 From dba12f15baad06cc7e17a275201cc022bb6c84f7 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Tue, 7 Mar 2017 22:29:06 +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>
8 ---
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 f7f025f..bd537d9 100644
15 --- a/Makefile.pre.in
16 +++ b/Makefile.pre.in
17 @@ -1050,7 +1050,7 @@ LIBSUBDIRS= site-packages \
18 multiprocessing multiprocessing/dummy \
19 unittest \
20 lib-old \
21 - curses $(MACHDEPS)
22 + $(MACHDEPS)
24 TESTSUBDIRS = test test/audiodata test/capath test/data \
25 test/cjkencodings test/decimaltestdata test/xmltestdata \
26 @@ -1092,6 +1092,10 @@ TESTSUBDIRS += lib-tk/test lib-tk/test/test_tkinter \
27 lib-tk/test/test_ttk
28 endif
30 +ifeq (@CURSES@,yes)
31 +LIBSUBDIRS += curses
32 +endif
34 libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
35 @for i in $(SCRIPTDIR) $(LIBDEST); \
36 do \
37 diff --git a/configure.ac b/configure.ac
38 index d0f032c..ab081bc 100644
39 --- a/configure.ac
40 +++ b/configure.ac
41 @@ -2823,6 +2823,15 @@ if test "$TK" = "no"; then
42 DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"
45 +AC_SUBST(CURSES)
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"
52 +fi
54 AC_SUBST(PYDOC)
56 AC_ARG_ENABLE(pydoc,
57 --
58 2.7.4