blob: 18b52793724fb2d8830f144565b3813f6309436e [file] [log] [blame]
Guido van Rossum159b77f1997-03-04 23:44:15 +00001# -*- shell-script -*-
Guido van Rossumb6775db1994-08-01 11:34:53 +00002# The file Setup is used by the makesetup script to construct the files
3# Makefile and config.c, from Makefile.pre and config.c.in,
4# respectively. The file Setup itself is initially copied from
5# Setup.in; once it exists it will not be overwritten, so you can edit
Guido van Rossumf4449de1995-04-10 11:37:18 +00006# Setup to your heart's content. Note that Makefile.pre is created
7# from Makefile.pre.in by the toplevel configure script.
Guido van Rossumb6775db1994-08-01 11:34:53 +00008
9# (VPATH notes: Setup and Makefile.pre are in the build directory, as
Guido van Rossumf4449de1995-04-10 11:37:18 +000010# are Makefile and config.c; the *.in files are in the source
Guido van Rossumb6775db1994-08-01 11:34:53 +000011# directory.)
12
Guido van Rossumfba715a1994-01-02 00:26:09 +000013# Each line in this file describes one or more optional modules.
14# Comment out lines to suppress modules.
15# Lines have the following structure:
16#
Guido van Rossumf6971e21994-08-30 12:25:20 +000017# <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
Guido van Rossumfba715a1994-01-02 00:26:09 +000018#
Guido van Rossumf6971e21994-08-30 12:25:20 +000019# <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
Guido van Rossumfba715a1994-01-02 00:26:09 +000020# <cpparg> is anything starting with -I, -D, -U or -C
21# <library> is anything ending in .a or beginning with -l or -L
22# <module> is anything else but should be a valid Python
23# identifier (letters, digits, underscores, beginning with non-digit)
24#
Guido van Rossum613b9431996-08-20 19:50:17 +000025# (As the makesetup script changes, it may recognize some other
26# arguments as well, e.g. *.so and *.sl as libraries. See the big
27# case statement in the makesetup script.)
28#
Guido van Rossumfba715a1994-01-02 00:26:09 +000029# Lines can also have the form
30#
31# <name> = <value>
32#
33# which defines a Make variable definition inserted into Makefile.in
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000034#
35# Finally, if a line has the literal form
36#
Guido van Rossum613b9431996-08-20 19:50:17 +000037# *shared*
Guido van Rossum7cc5abd1994-09-12 10:42:20 +000038#
39# (that is including the '*' and '*' !) then the following modules will
40# not be included in the config.c file, nor in the list of objects to be
41# added to the library archive, and their linker options won't be added
42# to the linker options, but rules to create their .o files and their
Guido van Rossumf4449de1995-04-10 11:37:18 +000043# shared libraries will still be added to the Makefile, and their
44# names will be collected in the Make variable SHAREDMODS. This is
45# used to build modules as shared libraries. (They must be installed
Guido van Rossum613b9431996-08-20 19:50:17 +000046# using "make sharedinstall".) (For compatibility, *noconfig* has the
47# same effect as *shared*.)
Guido van Rossumb6775db1994-08-01 11:34:53 +000048
Guido van Rossumfba715a1994-01-02 00:26:09 +000049# NOTE: As a standard policy, as many modules as can be supported by a
50# platform should be present. The distribution comes with all modules
51# enabled that are supported by most platforms and don't require you
Guido van Rossumf4449de1995-04-10 11:37:18 +000052# to ftp sources from elsewhere.
Guido van Rossumfba715a1994-01-02 00:26:09 +000053
54
Guido van Rossum02530b01996-07-31 22:43:38 +000055# -------> Uncomment this line if you are running AIX <----------
56# -------> and if you are building with shared libraries <----------
57#LINKCC= makexp_aix python.exp "" $(MYLIBS) $(ADDOBJS) ; $(CC)
58
59
Guido van Rossumb6775db1994-08-01 11:34:53 +000060# Some special rules to define PYTHONPATH.
61# Edit the definitions below to indicate which options you are using.
62# Don't add any whitespace or comments!
63
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000064# Directories where library files get installed.
65# DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
66DESTLIB=$(LIBDEST)
67MACHDESTLIB=$(BINLIBDEST)
Guido van Rossumb6775db1994-08-01 11:34:53 +000068
Guido van Rossum97227811997-04-11 17:19:54 +000069# NOTE: all the paths are now relative to the prefix that is computed
70# at run time!
71
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000072# Standard path -- don't edit.
Guido van Rossum97227811997-04-11 17:19:54 +000073# No leading colon since this is the first entry.
74# Empty since this is now just the runtime prefix.
75DESTPATH=
Guido van Rossum1c206481995-09-13 18:39:04 +000076
Guido van Rossum0c5e3c81996-07-31 17:49:01 +000077# Site specific path components -- should begin with : if non-empty
78SITEPATH=
79
80# Standard path components for test modules
Guido van Rossum97227811997-04-11 17:19:54 +000081TESTPATH=:test
Guido van Rossumb6775db1994-08-01 11:34:53 +000082
Guido van Rossumd3c1bd31996-07-30 16:54:03 +000083# Path components for machine- or system-dependent modules and shared libraries
Guido van Rossum97227811997-04-11 17:19:54 +000084MACHDEPPATH=:$(MACHDEP):sharedmodules
Guido van Rossumb6775db1994-08-01 11:34:53 +000085
Guido van Rossum02ca3ab1996-07-30 20:36:59 +000086COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
Guido van Rossumf5e0ea81994-09-12 15:35:36 +000087PYTHONPATH=$(COREPYTHONPATH)
Guido van Rossumb6775db1994-08-01 11:34:53 +000088
89
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000090# The modules listed here can't be built as shared libraries for
91# various reasons; therefore they are listed here instead of in the
92# normal order.
Guido van Rossum05bf2801994-10-20 22:01:38 +000093
Guido van Rossumf4449de1995-04-10 11:37:18 +000094# Some modules that are normally always on:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +000095
96posix posixmodule.c # posix (UNIX) system calls
97signal signalmodule.c # signal(2)
98
Guido van Rossumf4449de1995-04-10 11:37:18 +000099# The SGI specific GL module:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +0000100
Guido van Rossum05bf2801994-10-20 22:01:38 +0000101#gl glmodule.c -lgl -lX11 # Graphics Library -- SGI only
Guido van Rossumcaffcdf1995-03-10 15:14:13 +0000102
Guido van Rossumd3c1bd31996-07-30 16:54:03 +0000103# Thread module -- use only if Python has thread support for your OS.
Guido van Rossumcaffcdf1995-03-10 15:14:13 +0000104# Note that you must have configured (and built!) Python with the
Guido van Rossumf4449de1995-04-10 11:37:18 +0000105# --with-thread option passed to the configure script for this to work:
Guido van Rossumcaffcdf1995-03-10 15:14:13 +0000106
107#thread threadmodule.c
Guido van Rossum05bf2801994-10-20 22:01:38 +0000108
Barry Warsawe886ea91997-01-17 00:01:33 +0000109# Pure module. Cannot be linked dynamically.
110# -DWITH_QUANTIFY, -DWITH_PURIFY, or -DWITH_ALL_PURE
111#WHICH_PURE_PRODUCTS=-DWITH_ALL_PURE
112#PURE_INCLS=-I/usr/local/include
113#PURE_STUBLIBS=-L/usr/local/lib -lpurify_stubs -lquantify_stubs
114#pure puremodule.c $(WHICH_PURE_PRODUCTS) $(PURE_INCLS) $(PURE_STUBLIBS)
115
Guido van Rossum05bf2801994-10-20 22:01:38 +0000116# Uncommenting the following line tells makesetup that all following
Guido van Rossumf4449de1995-04-10 11:37:18 +0000117# modules are to be built as shared libraries (see above for more
118# detail):
Guido van Rossum05bf2801994-10-20 22:01:38 +0000119
Guido van Rossum613b9431996-08-20 19:50:17 +0000120#*shared*
Guido van Rossum05bf2801994-10-20 22:01:38 +0000121
122
Guido van Rossumf4449de1995-04-10 11:37:18 +0000123# Modules that should always be present (non UNIX dependent):
Guido van Rossumfba715a1994-01-02 00:26:09 +0000124
Guido van Rossumf6971e21994-08-30 12:25:20 +0000125array arraymodule.c # array objects
Guido van Rossum613b9431996-08-20 19:50:17 +0000126cmath cmathmodule.c # -lm # complex math library functions
127math mathmodule.c # -lm # math library functions, e.g. sin()
Guido van Rossumf6971e21994-08-30 12:25:20 +0000128regex regexmodule.c regexpr.c # Regular expressions, GNU Emacs style
129strop stropmodule.c # fast string operations implemented in C
130struct structmodule.c # binary structure packing/unpacking
Guido van Rossum613b9431996-08-20 19:50:17 +0000131time timemodule.c # -lm # time operations and variables
Guido van Rossumd3c1bd31996-07-30 16:54:03 +0000132operator operator.c # operator.add() and similar goodies
Guido van Rossumfba715a1994-01-02 00:26:09 +0000133
134
Guido van Rossumf4449de1995-04-10 11:37:18 +0000135# Modules with some UNIX dependencies -- on by default:
Guido van Rossumb6775db1994-08-01 11:34:53 +0000136# (If you have a really backward UNIX, select and socket may not be
137# supported...)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000138
Guido van Rossumf6971e21994-08-30 12:25:20 +0000139fcntl fcntlmodule.c # fcntl(2) and ioctl(2)
140pwd pwdmodule.c # pwd(3)
141grp grpmodule.c # grp(3)
Guido van Rossumd4837da1995-02-14 09:43:25 +0000142crypt cryptmodule.c # -lcrypt # crypt(3); needs -lcrypt on some systems
Guido van Rossumf6971e21994-08-30 12:25:20 +0000143select selectmodule.c # select(2); not on ancient System V
144socket socketmodule.c # socket(2); not on ancient System V
Guido van Rossumd3c1bd31996-07-30 16:54:03 +0000145errno errnomodule.c # posix (UNIX) errno values
Guido van Rossumfba715a1994-01-02 00:26:09 +0000146
147
Guido van Rossumb6775db1994-08-01 11:34:53 +0000148# Some more UNIX dependent modules -- off by default, since these
Guido van Rossumf4449de1995-04-10 11:37:18 +0000149# are not supported by all UNIX systems:
Guido van Rossumb6775db1994-08-01 11:34:53 +0000150
Guido van Rossumf6971e21994-08-30 12:25:20 +0000151#dbm dbmmodule.c # dbm(3) may require -lndbm or similar
152#nis nismodule.c # Sun yellow pages -- not everywhere
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000153#termios termios.c # Steen Lumholt's termios module
Guido van Rossum2e631391996-12-18 18:37:27 +0000154#resource resource.c # Jeremy Hylton's rlimit interface
Guido van Rossumb6775db1994-08-01 11:34:53 +0000155
156
157# Multimedia modules -- on by default.
Guido van Rossumf4449de1995-04-10 11:37:18 +0000158# These represent audio samples or images as strings:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000159
Guido van Rossumf6971e21994-08-30 12:25:20 +0000160audioop audioop.c # Operations on audio samples
161imageop imageop.c # Operations on images
162rgbimg rgbimgmodule.c # Read SGI RGB image files (but coded portably)
Guido van Rossumfba715a1994-01-02 00:26:09 +0000163
164
165# The stdwin module provides a simple, portable (between X11 and Mac)
166# windowing interface. You need to ftp the STDWIN library, e.g. from
Guido van Rossumf4449de1995-04-10 11:37:18 +0000167# ftp://ftp.cwi.nl/pub/stdwin. (If you get it elsewhere, be sure to
168# get version 1.0 or higher!) The STDWIN variable must point to the
169# STDWIN toplevel directory.
Guido van Rossumfba715a1994-01-02 00:26:09 +0000170
Guido van Rossumf4449de1995-04-10 11:37:18 +0000171# Uncomment and edit as needed:
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000172#STDWIN=/ufs/guido/src/stdwin
Guido van Rossumf4449de1995-04-10 11:37:18 +0000173
174# Uncomment these lines:
Guido van Rossum97227811997-04-11 17:19:54 +0000175#STDWINPATH=:stdwin
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000176#LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
177#LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000178#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
179
Guido van Rossumf4449de1995-04-10 11:37:18 +0000180# Use this instead of the last two lines above for alphanumeric stdwin:
181#LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
Guido van Rossum7cc5abd1994-09-12 10:42:20 +0000182#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
183
Guido van Rossumfba715a1994-01-02 00:26:09 +0000184
185# The md5 module implements the RSA Data Security, Inc. MD5
186# Message-Digest Algorithm, described in RFC 1321. The necessary files
187# md5c.c and md5.h are included here.
188
Guido van Rossumf6971e21994-08-30 12:25:20 +0000189md5 md5module.c md5c.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000190
191
192# The mpz module interfaces to the GNU Multiple Precision library.
Guido van Rossumb6775db1994-08-01 11:34:53 +0000193# You need to ftp the GNU MP library.
194# The GMP variable must point to the GMP source directory.
Guido van Rossum272841c1996-08-19 23:06:45 +0000195# This was originally written and tested against GMP 1.2 and 1.3.2.
196# It has been modified by Rob Hooft to work with 2.0.2 as well, but I
197# haven't tested it recently.
Guido van Rossumfba715a1994-01-02 00:26:09 +0000198
Guido van Rossumc3706071994-10-06 16:12:06 +0000199# A compatible MP library unencombered by the GPL also exists. It was
200# posted to comp.sources.misc in volume 40 and is widely available from
201# FTP archive sites. One URL for it is:
202# ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
203
Guido van Rossumfba715a1994-01-02 00:26:09 +0000204#GMP=/ufs/guido/src/gmp
Guido van Rossumf6971e21994-08-30 12:25:20 +0000205#mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
Guido van Rossumfba715a1994-01-02 00:26:09 +0000206
207
208# SGI IRIX specific modules -- off by default.
Guido van Rossum05bf2801994-10-20 22:01:38 +0000209
Guido van Rossumf4449de1995-04-10 11:37:18 +0000210# These module work on any SGI machine:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000211
Guido van Rossumcaffcdf1995-03-10 15:14:13 +0000212# *** gl must be enabled higher up in this file ***
Guido van Rossum05bf2801994-10-20 22:01:38 +0000213#fm fmmodule.c -lfm -lgl # Font Manager
Guido van Rossum05bf2801994-10-20 22:01:38 +0000214#sgi sgimodule.c # sgi.nap() and a few more
215
216# This module requires the header file
Guido van Rossumf4449de1995-04-10 11:37:18 +0000217# /usr/people/4Dgifts/iristools/include/izoom.h:
Guido van Rossum05bf2801994-10-20 22:01:38 +0000218
Guido van Rossum02530b01996-07-31 22:43:38 +0000219#imgfile imgfile.c -limage -lgutil # Image Processing Utilities
Guido van Rossum05bf2801994-10-20 22:01:38 +0000220
221
Guido van Rossumf4449de1995-04-10 11:37:18 +0000222# These modules require the Multimedia Development Option (I think):
Guido van Rossum05bf2801994-10-20 22:01:38 +0000223
224#al almodule.c -laudio # Audio Library
225#cd cdmodule.c -lcdaudio -lds -lmediad # CD Audio Library
226#cl clmodule.c -lcl -lawareaudio # Compression Library
227#sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11 # Starter Video
228
Guido van Rossumfba715a1994-01-02 00:26:09 +0000229
230# The FORMS library, by Mark Overmars, implements user interface
231# components such as dialogs and buttons using SGI's GL and FM
232# libraries. You must ftp the FORMS library separately from
233# ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a.
234# The FORMS variable must point to the FORMS subdirectory of the forms
Guido van Rossumf4449de1995-04-10 11:37:18 +0000235# toplevel directory:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000236
237#FORMS=/ufs/guido/src/forms/FORMS
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000238#fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a -lfm -lgl
Guido van Rossumfba715a1994-01-02 00:26:09 +0000239
240
Guido van Rossumf4449de1995-04-10 11:37:18 +0000241# SunOS specific modules -- off by default:
Guido van Rossumfba715a1994-01-02 00:26:09 +0000242
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000243#sunaudiodev sunaudiodev.c
Guido van Rossumfba715a1994-01-02 00:26:09 +0000244
245
Guido van Rossumf4449de1995-04-10 11:37:18 +0000246# George Neville-Neil's timing module:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000247
248#timing timingmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000249
250
Guido van Rossum82df03e1996-08-08 19:08:47 +0000251# The _tkinter module.
Guido van Rossumd4837da1995-02-14 09:43:25 +0000252#
Guido van Rossumae75f491995-07-18 18:18:11 +0000253# See the section "The Tk interface" in ../README for more info.
Guido van Rossum82df03e1996-08-08 19:08:47 +0000254#
255# Enable the TKPATH line and choose the most applicable _tkinter line.
256# You may have to change /usr/local to wherever Tcl/Tk are installed.
257# Change the -l arguments to use Tcl 7.4 and Tk 4.0!
Guido van Rossume4485b01994-09-07 14:32:49 +0000258
Guido van Rossum82df03e1996-08-08 19:08:47 +0000259# *** ALWAYS enable this line:
Guido van Rossum97227811997-04-11 17:19:54 +0000260#TKPATH=:tkinter
Guido van Rossume4485b01994-09-07 14:32:49 +0000261
Guido van Rossum82df03e1996-08-08 19:08:47 +0000262# *** Enable *one* of the following lines:
263# For Solaris:
264#_tkinter _tkinter.c -I/usr/openwin/include -I/usr/local/include -L/usr/openwin/lib -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
265# For generic system (may have to add -I/-L options to find X11):
266#_tkinter _tkinter.c -I/usr/local/include -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
267
Guido van Rossume4485b01994-09-07 14:32:49 +0000268
Guido van Rossumf4449de1995-04-10 11:37:18 +0000269# Lance Ellinghaus's modules:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000270
Guido van Rossume4485b01994-09-07 14:32:49 +0000271rotor rotormodule.c # enigma-inspired encryption
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000272#syslog syslogmodule.c # syslog daemon interface
Guido van Rossumf8afdcf1995-07-26 17:31:41 +0000273
274
275# Lance's curses module. This requires the System V version of
276# curses, sometimes known as ncurses (e.g. on Linux, link with
Guido van Rossum37ba0bc1995-08-04 04:20:45 +0000277# -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
278# -L/usr/5lib before -lcurses).
Guido van Rossumf8afdcf1995-07-26 17:31:41 +0000279
280#curses cursesmodule.c -lcurses -ltermcap
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000281
Guido van Rossumb6775db1994-08-01 11:34:53 +0000282
283
Guido van Rossumf4449de1995-04-10 11:37:18 +0000284# Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000285
286#new newmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000287
288
Guido van Rossuma3c04b01995-01-12 11:29:01 +0000289# Generic (SunOS / SVR4) dynamic loading module.
290# This is not needed for dynamic loading of Python modules --
291# it is a highly experimental and dangerous device for calling
Guido van Rossumf4449de1995-04-10 11:37:18 +0000292# *arbitrary* C functions in *arbitrary* shared libraries:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000293
294#dl dlmodule.c
Guido van Rossumb6775db1994-08-01 11:34:53 +0000295
296
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000297# Anthony Baxter's gdbm module (derived from Jack's dbm module)
Guido van Rossumf4449de1995-04-10 11:37:18 +0000298# GNU dbm(3) will require -lgdbm:
Guido van Rossumbe9f1491994-09-21 12:31:05 +0000299
300#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
Guido van Rossumfba715a1994-01-02 00:26:09 +0000301
Guido van Rossum4b4c6641994-08-08 08:06:37 +0000302
Guido van Rossumd639b451995-08-28 02:59:06 +0000303# Berkeley DB interface.
Guido van Rossumae75f491995-07-18 18:18:11 +0000304#
305# This requires the Berkeley DB code, see
306# ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
307#
308# Edit the variables DB and DBPORT to point to the db top directory
309# and the subdirectory of PORT where you built it.
310
Guido van Rossum9687a921996-07-24 00:42:42 +0000311#DB=/depot/sundry/src/berkeley-db/db.1.85
312#DBPORT=$(DB)/PORT/irix.5.3
Guido van Rossum47110d71997-01-28 02:21:56 +0000313#bsddb bsddbmodule.c -I$(DBPORT)/include $(DBPORT)/libdb.a
Guido van Rossumae75f491995-07-18 18:18:11 +0000314
315
316
Guido van Rossum31affb21995-06-14 22:31:38 +0000317# David Wayne Williams' soundex module
318#soundex soundex.c
319
Jack Jansen72781191995-08-07 14:34:15 +0000320# Helper module for various ascii-encoders
Guido van Rossumb50667d1995-10-12 00:41:40 +0000321binascii binascii.c
322
Guido van Rossumf00eb711996-08-21 22:11:54 +0000323# Fred Drake's interface to the Python parser
324parser parsermodule.c
Jack Jansen72781191995-08-07 14:34:15 +0000325
Guido van Rossumee88ff91997-01-11 19:29:30 +0000326# Digital Creations' cStringIO and cPickle
327cStringIO cStringIO.c
328cPickle cPickle.c
Guido van Rossum31affb21995-06-14 22:31:38 +0000329
Guido van Rossum53bb5501997-03-04 23:36:04 +0000330
Guido van Rossum10efb051997-02-14 23:03:31 +0000331# Lee Busby's SIGFPE modules.
332# The library to link fpectl with is platform specific.
Guido van Rossum53bb5501997-03-04 23:36:04 +0000333# Choose *one* of the options below for fpectl:
Guido van Rossum10efb051997-02-14 23:03:31 +0000334
Guido van Rossum53bb5501997-03-04 23:36:04 +0000335# For SGI IRIX (tested on 5.3):
336#fpectl fpectlmodule.c -lfpe
337
Guido van Rossum159b77f1997-03-04 23:44:15 +0000338# For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2):
339# (Without the compiler you don't have -lsunmath.)
Guido van Rossum53bb5501997-03-04 23:36:04 +0000340#fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm
341
342# For other systems: see instructions in fpectlmodule.c.
343#fpectl fpectlmodule.c ...
344
345# Test module for fpectl. No extra libraries needed.
Guido van Rossum10efb051997-02-14 23:03:31 +0000346#fpetest fpetestmodule.c
347
Guido van Rossum53bb5501997-03-04 23:36:04 +0000348
Guido van Rossumf4449de1995-04-10 11:37:18 +0000349# Example -- included for reference only:
Guido van Rossumf6971e21994-08-30 12:25:20 +0000350# xx xxmodule.c