1 Index: b/Makefile.pre.in
2 ===================================================================
6 # configure script arguments
7 CONFIG_ARGS= @CONFIG_ARGS@
10 +DISABLED_EXTENSIONS= @DISABLED_EXTENSIONS@
12 # Subdirectories with code
16 $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' \
17 _TCLTK_INCLUDES='$(TCLTK_INCLUDES)' _TCLTK_LIBS='$(TCLTK_LIBS)' \
18 + DISABLED_EXTENSIONS="$(DISABLED_EXTENSIONS)" \
19 $(PYTHON_FOR_BUILD) $(srcdir)/setup.py $$quiet build
21 # Build static library
23 # Install the dynamically loadable modules
24 # This goes into $(exec_prefix)
25 sharedinstall: sharedmods
26 - $(RUNSHARED) $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \
27 + $(RUNSHARED) DISABLED_EXTENSIONS="$(DISABLED_EXTENSIONS)" \
28 + $(PYTHON_FOR_BUILD) $(srcdir)/setup.py install \
30 --install-scripts=$(BINDIR) \
31 --install-platlib=$(DESTSHARED) \
33 ===================================================================
40 +AC_SUBST(DISABLED_EXTENSIONS)
42 # Check for use of the system expat library
43 AC_MSG_CHECKING(for --with-system-expat)
44 AC_ARG_WITH(system_expat,
46 ===================================================================
50 COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS"))
52 # This global variable is used to hold the list of modules to be disabled.
53 -disabled_module_list = []
55 + disabled_module_list = sysconfig.get_config_var("DISABLED_EXTENSIONS").split(" ")
57 + disabled_module_list = list()
59 def add_dir_to_list(dirlist, dir):
60 """Add the directory 'dir' to the list 'dirlist' (at the front) if