blob: ffbf64ff5fbc32828c4b4f5b8a3b06f59d4dc786 [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
5# Setup to your heart's content. One possibility is to overwrite it
6# with a copy of Setup.sgi or Setup.sunos[45] before you start editing.
7# Note that Makefile.pre is created from Makefile.pre.in by the toplevel
8# configure script.
9
10# (VPATH notes: Setup and Makefile.pre are in the build directory, as
11# are Makefile and config.c; Setup.in and config.c.in are in the source
12# directory.)
13
Guido van Rossumfba715a1994-01-02 00:26:09 +000014# Each line in this file describes one or more optional modules.
15# Comment out lines to suppress modules.
16# Lines have the following structure:
17#
Guido van Rossumf6971e21994-08-30 12:25:20 +000018# <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
Guido van Rossumfba715a1994-01-02 00:26:09 +000019#
Guido van Rossumf6971e21994-08-30 12:25:20 +000020# <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
Guido van Rossumfba715a1994-01-02 00:26:09 +000021# <cpparg> is anything starting with -I, -D, -U or -C
22# <library> is anything ending in .a or beginning with -l or -L
23# <module> is anything else but should be a valid Python
24# identifier (letters, digits, underscores, beginning with non-digit)
25#
26# Lines can also have the form
27#
28# <name> = <value>
29#
30# which defines a Make variable definition inserted into Makefile.in
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000031#
32# Finally, if a line has the literal form
33#
34# *noconfig*
35#
36# (that is including the '*' and '*' !) then the following modules will
37# not be included in the config.c file, nor in the list of objects to be
38# added to the library archive, and their linker options won't be added
39# to the linker options, but rules to create their .o files and their
40# shared libraries will still be added to the Makefile
Guido van Rossumb6775db1994-08-01 11:34:53 +000041
Guido van Rossumfba715a1994-01-02 00:26:09 +000042# NOTE: As a standard policy, as many modules as can be supported by a
43# platform should be present. The distribution comes with all modules
44# enabled that are supported by most platforms and don't require you
45# to ftp sources from elsewhere. To make this easier for SGI
46# platforms, you can copy Setup.sgi to Setup (or edit Makefile.in.in
47# to use Setup.sgi instead of Setup).
48
49
Guido van Rossumb6775db1994-08-01 11:34:53 +000050# Some special rules to define PYTHONPATH.
51# Edit the definitions below to indicate which options you are using.
52# Don't add any whitespace or comments!
53
54# Don't edit this (usually)
55DESTLIB=$(prefix)/lib/python
56
57# Standard enabled (tests are always available)
58TESTPATH=:$(DESTLIB)/test
59
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000060# Path for machine- or system-dependent modules (and shared libraries)
61MACHDEPPATH=:$(DESTLIB)/$(MACHDEP)
Guido van Rossumb6775db1994-08-01 11:34:53 +000062
Guido van Rossumf5e0ea81994-09-12 15:35:36 +000063COREPYTHONPATH=.:$(DESTLIB)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
64PYTHONPATH=$(COREPYTHONPATH)
Guido van Rossumb6775db1994-08-01 11:34:53 +000065
66
Guido van Rossumfba715a1994-01-02 00:26:09 +000067# Modules that should always be present (non UNIX dependent)
68
Guido van Rossumf6971e21994-08-30 12:25:20 +000069array arraymodule.c # array objects
Guido van Rossumf5e0ea81994-09-12 15:35:36 +000070math mathmodule.c -lm # math library functions, e.g. sin()
Guido van Rossumf6971e21994-08-30 12:25:20 +000071parser parsermodule.c # raw interface to the Python parser
72posix posixmodule.c # posix (UNIX) system calls
73regex regexmodule.c regexpr.c # Regular expressions, GNU Emacs style
74strop stropmodule.c # fast string operations implemented in C
75struct structmodule.c # binary structure packing/unpacking
76time timemodule.c # time operations and variables
Guido van Rossumfba715a1994-01-02 00:26:09 +000077
78
79# Modules with some UNIX dependencies -- on by default.
Guido van Rossumb6775db1994-08-01 11:34:53 +000080# (If you have a really backward UNIX, select and socket may not be
81# supported...)
Guido van Rossumfba715a1994-01-02 00:26:09 +000082
Guido van Rossumf6971e21994-08-30 12:25:20 +000083fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
84pwd pwdmodule.c # pwd(3)
85grp grpmodule.c # grp(3)
86crypt cryptmodule.c # crypt(3)
87select selectmodule.c # select(2); not on ancient System V
88socket socketmodule.c # socket(2); not on ancient System V
89signal signalmodule.c # signal(2)
Guido van Rossumfba715a1994-01-02 00:26:09 +000090
91
Guido van Rossumb6775db1994-08-01 11:34:53 +000092# Some more UNIX dependent modules -- off by default, since these
93# are not supported by all UNIX systems.
94
Guido van Rossumf6971e21994-08-30 12:25:20 +000095#dbm dbmmodule.c # dbm(3) may require -lndbm or similar
96#nis nismodule.c # Sun yellow pages -- not everywhere
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000097#termios termios.c # Steen Lumholt's termios module
Guido van Rossumb6775db1994-08-01 11:34:53 +000098
99
100# Multimedia modules -- on by default.
Guido van Rossumfba715a1994-01-02 00:26:09 +0000101# These represent audio samples or images as strings
102
Guido van Rossumf6971e21994-08-30 12:25:20 +0000103audioop audioop.c # Operations on audio samples
104imageop imageop.c # Operations on images
105rgbimg rgbimgmodule.c # Read SGI RGB image files (but coded portably)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000106
107
108# The stdwin module provides a simple, portable (between X11 and Mac)
109# windowing interface. You need to ftp the STDWIN library, e.g. from
110# ftp://ftp.cwi.nl/pub/stdwin. The STDWIN variable must point to the
111# STDWIN toplevel directory. The ARCH variable must be set to the
112# architecture identifier used to build STDWIN. NB if you combine this
Guido van Rossume4485b01994-09-07 14:32:49 +0000113# with the gl module on an SGI IRIX 4 machine, you should replace
114"-lX11" with "-lX11_s".
Guido van Rossumfba715a1994-01-02 00:26:09 +0000115
116#STDWIN=/ufs/guido/src/stdwin
Guido van Rossumb6775db1994-08-01 11:34:53 +0000117#ARCH=???
Guido van Rossumf6971e21994-08-30 12:25:20 +0000118#stdwin stdwinmodule.c -I$(STDWIN)/H $(STDWIN)/Build/$(ARCH)/x11/lib/lib.a -lX11
Guido van Rossume4485b01994-09-07 14:32:49 +0000119#STDWINPATH=:$(DESTLIB)/stdwin
Guido van Rossumfba715a1994-01-02 00:26:09 +0000120
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000121# For STDWIN 1.0 it's a bit different:
122
123#STDWIN=/ufs/guido/src/stdwin
124#LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
125#LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
126#LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
127#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
128
129# Or use the following for the alphanumeric version:
130
131#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
132
Guido van Rossumfba715a1994-01-02 00:26:09 +0000133
134# The md5 module implements the RSA Data Security, Inc. MD5
135# Message-Digest Algorithm, described in RFC 1321. The necessary files
136# md5c.c and md5.h are included here.
137
Guido van Rossumf6971e21994-08-30 12:25:20 +0000138md5 md5module.c md5c.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000139
140
141# The mpz module interfaces to the GNU Multiple Precision library.
Guido van Rossumb6775db1994-08-01 11:34:53 +0000142# You need to ftp the GNU MP library.
143# The GMP variable must point to the GMP source directory.
144# This was originally written and tested against GMP 1.2. I have
145# compiled it against GMP 1.3.2 (the latest I believe) and it seems to
146# work OK, but I haven't tested it thoroughly (lacking knowledge about
147# it).
Guido van Rossumfba715a1994-01-02 00:26:09 +0000148
149#GMP=/ufs/guido/src/gmp
Guido van Rossumf6971e21994-08-30 12:25:20 +0000150#mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
Guido van Rossumfba715a1994-01-02 00:26:09 +0000151
152
153# SGI IRIX specific modules -- off by default.
154# Switch this on if you have an SGI machine.
155# Note that some required libraries and header files aren't always
156# installed; you may be better off switching on only 'fm' and 'gl'
157# (Font Manager and Graphics Library).
158
Guido van Rossumb6775db1994-08-01 11:34:53 +0000159# # ADD THESE FOR IRIX5:
Guido van Rossumf6971e21994-08-30 12:25:20 +0000160#al almodule.c -laudio
161#cd cdmodule.c -lcdaudio -lds # -lmediad
162#cl clmodule.c -lcl # -lawareaudio
163#fm fmmodule.c -lfm_s -lgl_s
164#gl glmodule.c -lgl_s -lX11_s
165#imgfile imgfile.c -limage -lgutil
166#sgi sgimodule.c
167#sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11_s
Guido van Rossumfba715a1994-01-02 00:26:09 +0000168
169# The FORMS library, by Mark Overmars, implements user interface
170# components such as dialogs and buttons using SGI's GL and FM
171# libraries. You must ftp the FORMS library separately from
172# ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a.
173# The FORMS variable must point to the FORMS subdirectory of the forms
174# toplevel directory.
175
176#FORMS=/ufs/guido/src/forms/FORMS
Guido van Rossumf6971e21994-08-30 12:25:20 +0000177#fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a
Guido van Rossumfba715a1994-01-02 00:26:09 +0000178
179
180# SunOS specific modules -- off by default
181
Guido van Rossumf6971e21994-08-30 12:25:20 +0000182# sunaudiodev sunaudiodev.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000183
184
185# Thread module -- works on SGI IRIX and on SunOS 5.x (SOLARIS) only.
186# Note that you must have configured (and built!) Python with the
187# --with-thread option passed to the configure script for this to work.
188
Guido van Rossumf6971e21994-08-30 12:25:20 +0000189# thread threadmodule.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000190
191
Guido van Rossumb6775db1994-08-01 11:34:53 +0000192# GNN's timing module
Guido van Rossumf6971e21994-08-30 12:25:20 +0000193# timing timingmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000194
195
Guido van Rossume4485b01994-09-07 14:32:49 +0000196# Steen Lumholt's tkinter module. For use with plain Tk, use the
197# first line. For use with extended Tk, edit tkappinit.c, add
198# appropriate -DWITH_... and libraries/objects to the second line, and
199# use that. In all cases also enable the last line (TKPATH).
200
201#tkinter tkintermodule.c -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
202#tkinter tkintermodule.c tkappinit.c -DWITH_APPINIT -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11
203#TKPATH=:$(DESTLIB)/tkinter
204
205
Guido van Rossumf6971e21994-08-30 12:25:20 +0000206# Lance Ellinghouse's modules
Guido van Rossume4485b01994-09-07 14:32:49 +0000207rotor rotormodule.c # enigma-inspired encryption
Guido van Rossumf6971e21994-08-30 12:25:20 +0000208# syslog syslogmodule.c # syslog daemon interface
209# curses cursesmodule.c -lcurses -ltermcap # guess what?
Guido van Rossumb6775db1994-08-01 11:34:53 +0000210
211
212# Tommy Burnette's 'new' module (creates new empty objects of certain kinds)
Guido van Rossumf6971e21994-08-30 12:25:20 +0000213# new newmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000214
215
216# John Redford's sybase module
Guido van Rossumf6971e21994-08-30 12:25:20 +0000217# sybase sybasemodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000218
219
220# Generic (SunOS / SVR4) dynamic loading module
Guido van Rossumf6971e21994-08-30 12:25:20 +0000221# dl dlmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000222
223
224# Jack Jansen's imgformat module
Guido van Rossumf6971e21994-08-30 12:25:20 +0000225# imgformat imgformat.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000226
227
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000228# Anthony Baxter's gdbm module (derived from Jack's dbm module)
229# GNU dbm(3) will require -lgdbm
Guido van Rossumf6971e21994-08-30 12:25:20 +0000230# gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
Guido van Rossumfba715a1994-01-02 00:26:09 +0000231
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000232
233# Example -- included for reference only
Guido van Rossumf6971e21994-08-30 12:25:20 +0000234# xx xxmodule.c