1 Add option to disable the sqlite3 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 | 24 +++++++++++++++++-------
8 configure.in | 9 +++++++++
9 2 file changed, 9 insertions(+)
12 ===================================================================
15 @@ -2627,6 +2627,15 @@
16 AC_CHECK_FUNCS(pthread_atfork)
20 +AC_ARG_ENABLE(sqlite3,
21 + AS_HELP_STRING([--disable-sqlite3], [disable sqlite3]),
22 + [ SQLITE3="${enableval}" ], [ SQLITE3=yes ])
24 +if test "$SQLITE3" = "no" ; then
25 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3"
31 Index: b/Makefile.pre.in
32 ===================================================================
37 ensurepip ensurepip/_bundled \
40 logging bsddb csv importlib wsgiref \
41 ctypes ctypes/macholib \
42 idlelib idlelib/Icons \
45 email/test email/test/data \
51 @@ -1006,6 +1004,11 @@
52 lib2to3/tests/data/fixers/myfixes
56 +LIBSUBDIRS += sqlite3
57 +TESTSUBDIRS += sqlite3/test
60 libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
61 @for i in $(SCRIPTDIR) $(LIBDEST); \