blob: 28b7e84b89371b25754218f995558889ee5ef5bd [file] [log] [blame]
Guido van Rossumb6775db1994-08-01 11:34:53 +00001# The file Setup is used by the makesetup script to construct the files
2# Makefile and config.c, from Makefile.pre and config.c.in,
3# respectively. The file Setup itself is initially copied from
4# Setup.in; once it exists it will not be overwritten, so you can edit
Guido van Rossumf4449de1995-04-10 11:37:18 +00005# Setup to your heart's content. Note that Makefile.pre is created
6# from Makefile.pre.in by the toplevel configure script.
Guido van Rossumb6775db1994-08-01 11:34:53 +00007
8# (VPATH notes: Setup and Makefile.pre are in the build directory, as
Guido van Rossumf4449de1995-04-10 11:37:18 +00009# are Makefile and config.c; the *.in files are in the source
Guido van Rossumb6775db1994-08-01 11:34:53 +000010# directory.)
11
Guido van Rossumfba715a1994-01-02 00:26:09 +000012# Each line in this file describes one or more optional modules.
13# Comment out lines to suppress modules.
14# Lines have the following structure:
15#
Guido van Rossumf6971e21994-08-30 12:25:20 +000016# <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
Guido van Rossumfba715a1994-01-02 00:26:09 +000017#
Guido van Rossumf6971e21994-08-30 12:25:20 +000018# <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
Guido van Rossumfba715a1994-01-02 00:26:09 +000019# <cpparg> is anything starting with -I, -D, -U or -C
20# <library> is anything ending in .a or beginning with -l or -L
21# <module> is anything else but should be a valid Python
22# identifier (letters, digits, underscores, beginning with non-digit)
23#
24# Lines can also have the form
25#
26# <name> = <value>
27#
28# which defines a Make variable definition inserted into Makefile.in
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000029#
30# Finally, if a line has the literal form
31#
32# *noconfig*
33#
34# (that is including the '*' and '*' !) then the following modules will
35# not be included in the config.c file, nor in the list of objects to be
36# added to the library archive, and their linker options won't be added
37# to the linker options, but rules to create their .o files and their
Guido van Rossumf4449de1995-04-10 11:37:18 +000038# shared libraries will still be added to the Makefile, and their
39# names will be collected in the Make variable SHAREDMODS. This is
40# used to build modules as shared libraries. (They must be installed
41# using "make sharedinstall".)
Guido van Rossumb6775db1994-08-01 11:34:53 +000042
Guido van Rossumfba715a1994-01-02 00:26:09 +000043# NOTE: As a standard policy, as many modules as can be supported by a
44# platform should be present. The distribution comes with all modules
45# enabled that are supported by most platforms and don't require you
Guido van Rossumf4449de1995-04-10 11:37:18 +000046# to ftp sources from elsewhere.
Guido van Rossumfba715a1994-01-02 00:26:09 +000047
48
Guido van Rossumb6775db1994-08-01 11:34:53 +000049# Some special rules to define PYTHONPATH.
50# Edit the definitions below to indicate which options you are using.
51# Don't add any whitespace or comments!
52
53# Don't edit this (usually)
54DESTLIB=$(prefix)/lib/python
55
56# Standard enabled (tests are always available)
57TESTPATH=:$(DESTLIB)/test
58
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000059# Path for machine- or system-dependent modules (and shared libraries)
60MACHDEPPATH=:$(DESTLIB)/$(MACHDEP)
Guido van Rossumb6775db1994-08-01 11:34:53 +000061
Guido van Rossumf5e0ea81994-09-12 15:35:36 +000062COREPYTHONPATH=.:$(DESTLIB)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
63PYTHONPATH=$(COREPYTHONPATH)
Guido van Rossumb6775db1994-08-01 11:34:53 +000064
65
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000066# The modules listed here can't be built as shared libraries for
67# various reasons; therefore they are listed here instead of in the
68# normal order.
Guido van Rossum05bf2801994-10-20 22:01:38 +000069
Guido van Rossumf4449de1995-04-10 11:37:18 +000070# Some modules that are normally always on:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000071
72posix posixmodule.c # posix (UNIX) system calls
73signal signalmodule.c # signal(2)
74
Guido van Rossumf4449de1995-04-10 11:37:18 +000075# The SGI specific GL module:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000076
Guido van Rossum05bf2801994-10-20 22:01:38 +000077#gl glmodule.c -lgl -lX11 # Graphics Library -- SGI only
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000078
79# Thread module -- works on selected systems only, e.g. SGI IRIX and
80# on SunOS 5.x (SOLARIS) only.
81# Note that you must have configured (and built!) Python with the
Guido van Rossumf4449de1995-04-10 11:37:18 +000082# --with-thread option passed to the configure script for this to work:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000083
84#thread threadmodule.c
Guido van Rossum05bf2801994-10-20 22:01:38 +000085
86# Uncommenting the following line tells makesetup that all following
Guido van Rossumf4449de1995-04-10 11:37:18 +000087# modules are to be built as shared libraries (see above for more
88# detail):
Guido van Rossum05bf2801994-10-20 22:01:38 +000089
90#*noconfig*
91
92
Guido van Rossumf4449de1995-04-10 11:37:18 +000093# Modules that should always be present (non UNIX dependent):
Guido van Rossumfba715a1994-01-02 00:26:09 +000094
Guido van Rossumf6971e21994-08-30 12:25:20 +000095array arraymodule.c # array objects
Guido van Rossumf5e0ea81994-09-12 15:35:36 +000096math mathmodule.c -lm # math library functions, e.g. sin()
Guido van Rossumf6971e21994-08-30 12:25:20 +000097parser parsermodule.c # raw interface to the Python parser
Guido van Rossumf6971e21994-08-30 12:25:20 +000098regex regexmodule.c regexpr.c # Regular expressions, GNU Emacs style
99strop stropmodule.c # fast string operations implemented in C
100struct structmodule.c # binary structure packing/unpacking
101time timemodule.c # time operations and variables
Guido van Rossumfba715a1994-01-02 00:26:09 +0000102
103
Guido van Rossumf4449de1995-04-10 11:37:18 +0000104# Modules with some UNIX dependencies -- on by default:
Guido van Rossumb6775db1994-08-01 11:34:53 +0000105# (If you have a really backward UNIX, select and socket may not be
106# supported...)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000107
Guido van Rossumf6971e21994-08-30 12:25:20 +0000108fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
109pwd pwdmodule.c # pwd(3)
110grp grpmodule.c # grp(3)
Guido van Rossumd4837da1995-02-14 09:43:25 +0000111crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems
Guido van Rossumf6971e21994-08-30 12:25:20 +0000112select selectmodule.c # select(2); not on ancient System V
113socket socketmodule.c # socket(2); not on ancient System V
Guido van Rossumfba715a1994-01-02 00:26:09 +0000114
115
Guido van Rossumb6775db1994-08-01 11:34:53 +0000116# Some more UNIX dependent modules -- off by default, since these
Guido van Rossumf4449de1995-04-10 11:37:18 +0000117# are not supported by all UNIX systems:
Guido van Rossumb6775db1994-08-01 11:34:53 +0000118
Guido van Rossumf6971e21994-08-30 12:25:20 +0000119#dbm dbmmodule.c # dbm(3) may require -lndbm or similar
120#nis nismodule.c # Sun yellow pages -- not everywhere
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000121#termios termios.c # Steen Lumholt's termios module
Guido van Rossumb6775db1994-08-01 11:34:53 +0000122
123
124# Multimedia modules -- on by default.
Guido van Rossumf4449de1995-04-10 11:37:18 +0000125# These represent audio samples or images as strings:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000126
Guido van Rossumf6971e21994-08-30 12:25:20 +0000127audioop audioop.c # Operations on audio samples
128imageop imageop.c # Operations on images
129rgbimg rgbimgmodule.c # Read SGI RGB image files (but coded portably)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000130
131
132# The stdwin module provides a simple, portable (between X11 and Mac)
133# windowing interface. You need to ftp the STDWIN library, e.g. from
Guido van Rossumf4449de1995-04-10 11:37:18 +0000134# ftp://ftp.cwi.nl/pub/stdwin. (If you get it elsewhere, be sure to
135# get version 1.0 or higher!) The STDWIN variable must point to the
136# STDWIN toplevel directory.
Guido van Rossumfba715a1994-01-02 00:26:09 +0000137
Guido van Rossumf4449de1995-04-10 11:37:18 +0000138# Uncomment and edit as needed:
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000139#STDWIN=/ufs/guido/src/stdwin
Guido van Rossumf4449de1995-04-10 11:37:18 +0000140
141# Uncomment these lines:
142#STDWINPATH=:$(DESTLIB)/stdwin
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000143#LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
144#LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000145#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
146
Guido van Rossumf4449de1995-04-10 11:37:18 +0000147# Use this instead of the last two lines above for alphanumeric stdwin:
148#LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000149#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
150
Guido van Rossumfba715a1994-01-02 00:26:09 +0000151
152# The md5 module implements the RSA Data Security, Inc. MD5
153# Message-Digest Algorithm, described in RFC 1321. The necessary files
154# md5c.c and md5.h are included here.
155
Guido van Rossumf6971e21994-08-30 12:25:20 +0000156md5 md5module.c md5c.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000157
158
159# The mpz module interfaces to the GNU Multiple Precision library.
Guido van Rossumb6775db1994-08-01 11:34:53 +0000160# You need to ftp the GNU MP library.
161# The GMP variable must point to the GMP source directory.
162# This was originally written and tested against GMP 1.2. I have
163# compiled it against GMP 1.3.2 (the latest I believe) and it seems to
164# work OK, but I haven't tested it thoroughly (lacking knowledge about
165# it).
Guido van Rossumfba715a1994-01-02 00:26:09 +0000166
Guido van Rossumc3706071994-10-06 16:12:06 +0000167# A compatible MP library unencombered by the GPL also exists. It was
168# posted to comp.sources.misc in volume 40 and is widely available from
169# FTP archive sites. One URL for it is:
170# ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
171
Guido van Rossumfba715a1994-01-02 00:26:09 +0000172#GMP=/ufs/guido/src/gmp
Guido van Rossumf6971e21994-08-30 12:25:20 +0000173#mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
Guido van Rossumfba715a1994-01-02 00:26:09 +0000174
175
176# SGI IRIX specific modules -- off by default.
Guido van Rossum05bf2801994-10-20 22:01:38 +0000177
Guido van Rossumf4449de1995-04-10 11:37:18 +0000178# These module work on any SGI machine:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000179
Guido van Rossumcaffcdf1995-03-10 15:14:13 +0000180# *** gl must be enabled higher up in this file ***
Guido van Rossum05bf2801994-10-20 22:01:38 +0000181#fm fmmodule.c -lfm -lgl # Font Manager
Guido van Rossum05bf2801994-10-20 22:01:38 +0000182#sgi sgimodule.c # sgi.nap() and a few more
183
184# This module requires the header file
Guido van Rossumf4449de1995-04-10 11:37:18 +0000185# /usr/people/4Dgifts/iristools/include/izoom.h:
Guido van Rossum05bf2801994-10-20 22:01:38 +0000186
187#imgfile imgfile.c -limage -lgutil -lm # Image Processing Utilities
188
189
Guido van Rossumf4449de1995-04-10 11:37:18 +0000190# These modules require the Multimedia Development Option (I think):
Guido van Rossum05bf2801994-10-20 22:01:38 +0000191
192#al almodule.c -laudio # Audio Library
193#cd cdmodule.c -lcdaudio -lds -lmediad # CD Audio Library
194#cl clmodule.c -lcl -lawareaudio # Compression Library
195#sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11 # Starter Video
196
Guido van Rossumfba715a1994-01-02 00:26:09 +0000197
198# The FORMS library, by Mark Overmars, implements user interface
199# components such as dialogs and buttons using SGI's GL and FM
200# libraries. You must ftp the FORMS library separately from
201# ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a.
202# The FORMS variable must point to the FORMS subdirectory of the forms
Guido van Rossumf4449de1995-04-10 11:37:18 +0000203# toplevel directory:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000204
205#FORMS=/ufs/guido/src/forms/FORMS
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000206#fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a -lfm -lgl
Guido van Rossumfba715a1994-01-02 00:26:09 +0000207
208
Guido van Rossumf4449de1995-04-10 11:37:18 +0000209# SunOS specific modules -- off by default:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000210
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000211#sunaudiodev sunaudiodev.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000212
213
Guido van Rossumf4449de1995-04-10 11:37:18 +0000214# George Neville-Neil's timing module:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000215
216#timing timingmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000217
218
Guido van Rossum524b5881995-01-04 19:10:35 +0000219# Steen Lumholt's tkinter module.
220#
221# For use with plain Tk, use the first line.
222#
223# For use with extended Tk (i.e. if you have added extra widgets to
224# the Tk library, such as the common "studButton" and "triButton"
225# extensions), edit tkappinit.c, add appropriate -DWITH_... and
226# libraries/objects to the second line, and use that.
227#
228# In all cases also enable the last line (TKPATH).
Guido van Rossumd4837da1995-02-14 09:43:25 +0000229#
Guido van Rossumae75f491995-07-18 18:18:11 +0000230# See the section "The Tk interface" in ../README for more info.
Guido van Rossume4485b01994-09-07 14:32:49 +0000231
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000232# *** Use ONE of the following two lines, see previous comments ***
Guido van Rossume4485b01994-09-07 14:32:49 +0000233#tkinter tkintermodule.c -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
234#tkinter tkintermodule.c tkappinit.c -DWITH_APPINIT -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000235
Guido van Rossum524b5881995-01-04 19:10:35 +0000236# *** ALWAYS use this line as well ***
Guido van Rossume4485b01994-09-07 14:32:49 +0000237#TKPATH=:$(DESTLIB)/tkinter
238
239
Guido van Rossumf4449de1995-04-10 11:37:18 +0000240# Lance Ellinghaus's modules:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000241
Guido van Rossume4485b01994-09-07 14:32:49 +0000242rotor rotormodule.c # enigma-inspired encryption
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000243#syslog syslogmodule.c # syslog daemon interface
244#curses cursesmodule.c -lcurses -ltermcap # guess what?
Guido van Rossumf4449de1995-04-10 11:37:18 +0000245 # (On Linux, try -lncurses)
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000246
Guido van Rossumb6775db1994-08-01 11:34:53 +0000247
248
Guido van Rossumf4449de1995-04-10 11:37:18 +0000249# Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000250
251#new newmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000252
253
Guido van Rossumf4449de1995-04-10 11:37:18 +0000254# John Redford's sybase module (requires sybase):
Guido van Rossumae75f491995-07-18 18:18:11 +0000255# (Unfortunately this code is orphaned. Read the source for documentation.)
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000256
257#sybase sybasemodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000258
259
Guido van Rossuma3c04b01995-01-12 11:29:01 +0000260# Generic (SunOS / SVR4) dynamic loading module.
261# This is not needed for dynamic loading of Python modules --
262# it is a highly experimental and dangerous device for calling
Guido van Rossumf4449de1995-04-10 11:37:18 +0000263# *arbitrary* C functions in *arbitrary* shared libraries:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000264
265#dl dlmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000266
267
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000268# Anthony Baxter's gdbm module (derived from Jack's dbm module)
Guido van Rossumf4449de1995-04-10 11:37:18 +0000269# GNU dbm(3) will require -lgdbm:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000270
271#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
Guido van Rossumfba715a1994-01-02 00:26:09 +0000272
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000273
Guido van Rossumae75f491995-07-18 18:18:11 +0000274# Berkeley DB hash interface.
275#
276# This requires the Berkeley DB code, see
277# ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
278#
279# Edit the variables DB and DBPORT to point to the db top directory
280# and the subdirectory of PORT where you built it.
281
282#DB=/depot/sundry/db
283#DBPORT=$(DB)/PORT/sunos.5.2
284#dbhash dbhashmodule.o -I$(DB)/include -I$(DBPORT) $(DBPORT)/libdb.a
285
286
287
Guido van Rossum31affb21995-06-14 22:31:38 +0000288# Andy Bensky's "environment" module (contains putenv())
289#environment environment.c
290
291# David Wayne Williams' soundex module
292#soundex soundex.c
293
294
Guido van Rossumf4449de1995-04-10 11:37:18 +0000295# Example -- included for reference only:
Guido van Rossumf6971e21994-08-30 12:25:20 +0000296# xx xxmodule.c