summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-01-18 15:32:01 (GMT)
committerGuido van Rossum <guido@python.org>1991-01-18 15:32:01 (GMT)
commit28a83ab393740e92b94f63a24ab95e132150f2c9 (patch)
treeddf64607604aa94044fb06100d13549b91a4c4e6 /Modules
parente8e7cf49c5b8aabaa0e58e163690662769474718 (diff)
downloadcpython-28a83ab393740e92b94f63a24ab95e132150f2c9.zip
cpython-28a83ab393740e92b94f63a24ab95e132150f2c9.tar.gz
cpython-28a83ab393740e92b94f63a24ab95e132150f2c9.tar.bz2
Made all configurable options optional (see Makefile).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/config.c.in21
1 files changed, 16 insertions, 5 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index 1ddc518..60e1967 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -1,11 +1,10 @@
-/* Configuration containing EVERYTHING */
+/* Configurable Python configuration file */
-/* At CWI, this implies stdwin, audio, Amoeba and the NASA Panel Library */
-#define USE_AUDIO
-#define USE_AMOEBA
-#define USE_PANEL
+#ifdef USE_STDWIN
+#include <stdwin.h>
static int use_stdwin;
+#endif
/*ARGSUSED*/
void
@@ -13,6 +12,7 @@ initargs(p_argc, p_argv)
int *p_argc;
char ***p_argv;
{
+#ifdef USE_STDWIN
extern char *getenv();
char *display;
@@ -44,6 +44,7 @@ initargs(p_argc, p_argv)
if (use_stdwin)
winitargs(p_argc, p_argv);
+#endif
}
void
@@ -53,25 +54,35 @@ initcalls()
initmath();
initregexp();
initposix();
+
#ifdef USE_AUDIO
initaudio();
#endif
+
#ifdef USE_AMOEBA
initamoeba();
#endif
+
+#ifdef USE_GL
initgl();
#ifdef USE_PANEL
initpanel();
#endif
+#endif
+
+#ifdef USE_STDWIN
if (use_stdwin)
initstdwin();
+#endif
}
void
donecalls()
{
+#ifdef USE_STDWIN
if (use_stdwin)
wdone();
+#endif
#ifdef USE_AUDIO
asa_done();
#endif