Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 1 | # 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 Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 14 | # 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 Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 18 | # <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...] |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 19 | # |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 20 | # <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files) |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 21 | # <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 Rossum | 7cc5abd | 1994-09-12 10:42:20 +0000 | [diff] [blame^] | 31 | # |
| 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 Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 41 | |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 42 | # 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 Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 50 | # 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) |
| 55 | DESTLIB=$(prefix)/lib/python |
| 56 | |
| 57 | # Standard enabled (tests are always available) |
| 58 | TESTPATH=:$(DESTLIB)/test |
| 59 | |
Guido van Rossum | 7cc5abd | 1994-09-12 10:42:20 +0000 | [diff] [blame^] | 60 | # Path for machine- or system-dependent modules (and shared libraries) |
| 61 | MACHDEPPATH=:$(DESTLIB)/$(MACHDEP) |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 62 | |
Guido van Rossum | 7cc5abd | 1994-09-12 10:42:20 +0000 | [diff] [blame^] | 63 | PYTHONPATH=.:$(DESTLIB)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH) |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 64 | |
| 65 | |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 66 | # Modules that should always be present (non UNIX dependent) |
| 67 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 68 | array arraymodule.c # array objects |
| 69 | math mathmodule.c # math library functions, e.g. sin() |
| 70 | parser parsermodule.c # raw interface to the Python parser |
| 71 | posix posixmodule.c # posix (UNIX) system calls |
| 72 | regex regexmodule.c regexpr.c # Regular expressions, GNU Emacs style |
| 73 | strop stropmodule.c # fast string operations implemented in C |
| 74 | struct structmodule.c # binary structure packing/unpacking |
| 75 | time timemodule.c # time operations and variables |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 76 | |
| 77 | |
| 78 | # Modules with some UNIX dependencies -- on by default. |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 79 | # (If you have a really backward UNIX, select and socket may not be |
| 80 | # supported...) |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 81 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 82 | fcntl fcntlmodule.c # fcntl(2) and ioctl(2) |
| 83 | pwd pwdmodule.c # pwd(3) |
| 84 | grp grpmodule.c # grp(3) |
| 85 | crypt cryptmodule.c # crypt(3) |
| 86 | select selectmodule.c # select(2); not on ancient System V |
| 87 | socket socketmodule.c # socket(2); not on ancient System V |
| 88 | signal signalmodule.c # signal(2) |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 89 | |
| 90 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 91 | # Some more UNIX dependent modules -- off by default, since these |
| 92 | # are not supported by all UNIX systems. |
| 93 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 94 | #dbm dbmmodule.c # dbm(3) may require -lndbm or similar |
| 95 | #nis nismodule.c # Sun yellow pages -- not everywhere |
Guido van Rossum | 7cc5abd | 1994-09-12 10:42:20 +0000 | [diff] [blame^] | 96 | #termios termios.c # Steen Lumholt's termios module |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 97 | |
| 98 | |
| 99 | # Multimedia modules -- on by default. |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 100 | # These represent audio samples or images as strings |
| 101 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 102 | audioop audioop.c # Operations on audio samples |
| 103 | imageop imageop.c # Operations on images |
| 104 | rgbimg rgbimgmodule.c # Read SGI RGB image files (but coded portably) |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 105 | |
| 106 | |
| 107 | # The stdwin module provides a simple, portable (between X11 and Mac) |
| 108 | # windowing interface. You need to ftp the STDWIN library, e.g. from |
| 109 | # ftp://ftp.cwi.nl/pub/stdwin. The STDWIN variable must point to the |
| 110 | # STDWIN toplevel directory. The ARCH variable must be set to the |
| 111 | # architecture identifier used to build STDWIN. NB if you combine this |
Guido van Rossum | e4485b0 | 1994-09-07 14:32:49 +0000 | [diff] [blame] | 112 | # with the gl module on an SGI IRIX 4 machine, you should replace |
| 113 | "-lX11" with "-lX11_s". |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 114 | |
| 115 | #STDWIN=/ufs/guido/src/stdwin |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 116 | #ARCH=??? |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 117 | #stdwin stdwinmodule.c -I$(STDWIN)/H $(STDWIN)/Build/$(ARCH)/x11/lib/lib.a -lX11 |
Guido van Rossum | e4485b0 | 1994-09-07 14:32:49 +0000 | [diff] [blame] | 118 | #STDWINPATH=:$(DESTLIB)/stdwin |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 119 | |
Guido van Rossum | 7cc5abd | 1994-09-12 10:42:20 +0000 | [diff] [blame^] | 120 | # For STDWIN 1.0 it's a bit different: |
| 121 | |
| 122 | #STDWIN=/ufs/guido/src/stdwin |
| 123 | #LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a |
| 124 | #LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a |
| 125 | #LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a |
| 126 | #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11 |
| 127 | |
| 128 | # Or use the following for the alphanumeric version: |
| 129 | |
| 130 | #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap |
| 131 | |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 132 | |
| 133 | # The md5 module implements the RSA Data Security, Inc. MD5 |
| 134 | # Message-Digest Algorithm, described in RFC 1321. The necessary files |
| 135 | # md5c.c and md5.h are included here. |
| 136 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 137 | md5 md5module.c md5c.c |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 138 | |
| 139 | |
| 140 | # The mpz module interfaces to the GNU Multiple Precision library. |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 141 | # You need to ftp the GNU MP library. |
| 142 | # The GMP variable must point to the GMP source directory. |
| 143 | # This was originally written and tested against GMP 1.2. I have |
| 144 | # compiled it against GMP 1.3.2 (the latest I believe) and it seems to |
| 145 | # work OK, but I haven't tested it thoroughly (lacking knowledge about |
| 146 | # it). |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 147 | |
| 148 | #GMP=/ufs/guido/src/gmp |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 149 | #mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 150 | |
| 151 | |
| 152 | # SGI IRIX specific modules -- off by default. |
| 153 | # Switch this on if you have an SGI machine. |
| 154 | # Note that some required libraries and header files aren't always |
| 155 | # installed; you may be better off switching on only 'fm' and 'gl' |
| 156 | # (Font Manager and Graphics Library). |
| 157 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 158 | # # ADD THESE FOR IRIX5: |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 159 | #al almodule.c -laudio |
| 160 | #cd cdmodule.c -lcdaudio -lds # -lmediad |
| 161 | #cl clmodule.c -lcl # -lawareaudio |
| 162 | #fm fmmodule.c -lfm_s -lgl_s |
| 163 | #gl glmodule.c -lgl_s -lX11_s |
| 164 | #imgfile imgfile.c -limage -lgutil |
| 165 | #sgi sgimodule.c |
| 166 | #sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11_s |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 167 | |
| 168 | # The FORMS library, by Mark Overmars, implements user interface |
| 169 | # components such as dialogs and buttons using SGI's GL and FM |
| 170 | # libraries. You must ftp the FORMS library separately from |
| 171 | # ftp://ftp.cs.ruu.nl/pub/SGI/FORMS. It was tested with FORMS 2.2a. |
| 172 | # The FORMS variable must point to the FORMS subdirectory of the forms |
| 173 | # toplevel directory. |
| 174 | |
| 175 | #FORMS=/ufs/guido/src/forms/FORMS |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 176 | #fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 177 | |
| 178 | |
| 179 | # SunOS specific modules -- off by default |
| 180 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 181 | # sunaudiodev sunaudiodev.c |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 182 | |
| 183 | |
| 184 | # Thread module -- works on SGI IRIX and on SunOS 5.x (SOLARIS) only. |
| 185 | # Note that you must have configured (and built!) Python with the |
| 186 | # --with-thread option passed to the configure script for this to work. |
| 187 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 188 | # thread threadmodule.c |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 189 | |
| 190 | |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 191 | # GNN's timing module |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 192 | # timing timingmodule.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 193 | |
| 194 | |
Guido van Rossum | e4485b0 | 1994-09-07 14:32:49 +0000 | [diff] [blame] | 195 | # Steen Lumholt's tkinter module. For use with plain Tk, use the |
| 196 | # first line. For use with extended Tk, edit tkappinit.c, add |
| 197 | # appropriate -DWITH_... and libraries/objects to the second line, and |
| 198 | # use that. In all cases also enable the last line (TKPATH). |
| 199 | |
| 200 | #tkinter tkintermodule.c -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11 |
| 201 | #tkinter tkintermodule.c tkappinit.c -DWITH_APPINIT -I/usr/local/include -L/usr/local/lib -ltk -ltcl -lX11 |
| 202 | #TKPATH=:$(DESTLIB)/tkinter |
| 203 | |
| 204 | |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 205 | # Lance Ellinghouse's modules |
Guido van Rossum | e4485b0 | 1994-09-07 14:32:49 +0000 | [diff] [blame] | 206 | rotor rotormodule.c # enigma-inspired encryption |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 207 | # syslog syslogmodule.c # syslog daemon interface |
| 208 | # curses cursesmodule.c -lcurses -ltermcap # guess what? |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 209 | |
| 210 | |
| 211 | # Tommy Burnette's 'new' module (creates new empty objects of certain kinds) |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 212 | # new newmodule.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 213 | |
| 214 | |
| 215 | # John Redford's sybase module |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 216 | # sybase sybasemodule.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 217 | |
| 218 | |
| 219 | # Generic (SunOS / SVR4) dynamic loading module |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 220 | # dl dlmodule.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 221 | |
| 222 | |
| 223 | # Jack Jansen's imgformat module |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 224 | # imgformat imgformat.c |
Guido van Rossum | b6775db | 1994-08-01 11:34:53 +0000 | [diff] [blame] | 225 | |
| 226 | |
Guido van Rossum | 4b4c664 | 1994-08-08 08:06:37 +0000 | [diff] [blame] | 227 | # Anthony Baxter's gdbm module (derived from Jack's dbm module) |
| 228 | # GNU dbm(3) will require -lgdbm |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 229 | # gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm |
Guido van Rossum | fba715a | 1994-01-02 00:26:09 +0000 | [diff] [blame] | 230 | |
Guido van Rossum | 4b4c664 | 1994-08-08 08:06:37 +0000 | [diff] [blame] | 231 | |
| 232 | # Example -- included for reference only |
Guido van Rossum | f6971e2 | 1994-08-30 12:25:20 +0000 | [diff] [blame] | 233 | # xx xxmodule.c |