home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / OPENSTEP / Languages / Python / python-14-src / Modules / Setup.in < prev    next >
Encoding:
Text File  |  1997-01-17  |  10.6 KB  |  317 lines

  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.  Note that Makefile.pre is created
  6. # from Makefile.pre.in by the toplevel configure script.
  7.  
  8. # (VPATH notes: Setup and Makefile.pre are in the build directory, as
  9. # are Makefile and config.c; the *.in files are in the source
  10. # directory.)
  11.  
  12. # 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. #
  16. # <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
  17. #
  18. # <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
  19. # <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. # (As the makesetup script changes, it may recognize some other
  25. # arguments as well, e.g. *.so and *.sl as libraries.  See the big
  26. # case statement in the makesetup script.)
  27. #
  28. # Lines can also have the form
  29. #
  30. # <name> = <value>
  31. #
  32. # which defines a Make variable definition inserted into Makefile.in
  33. #
  34. # Finally, if a line has the literal form
  35. #
  36. # *shared*
  37. #
  38. # (that is including the '*' and '*' !) then the following modules will
  39. # not be included in the config.c file, nor in the list of objects to be
  40. # added to the library archive, and their linker options won't be added 
  41. # to the linker options, but rules to create their .o files and their
  42. # shared libraries will still be added to the Makefile, and their
  43. # names will be collected in the Make variable SHAREDMODS.  This is
  44. # used to build modules as shared libraries.  (They must be installed
  45. # using "make sharedinstall".)  (For compatibility, *noconfig* has the
  46. # same effect as *shared*.)
  47.  
  48. # NOTE: As a standard policy, as many modules as can be supported by a
  49. # platform should be present.  The distribution comes with all modules
  50. # enabled that are supported by most platforms and don't require you
  51. # to ftp sources from elsewhere.
  52.  
  53.  
  54. # -------> Uncomment this line if you are running AIX    <----------
  55. # -------> and if you are building with shared libraries <----------
  56. #LINKCC= makexp_aix python.exp "" $(MYLIBS) $(ADDOBJS) ; $(CC)
  57.  
  58.  
  59. # Some special rules to define PYTHONPATH.
  60. # Edit the definitions below to indicate which options you are using.
  61. # Don't add any whitespace or comments!
  62.  
  63. # Directories where library files get installed.
  64. # DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
  65. DESTLIB=$(LIBDEST)
  66. MACHDESTLIB=$(BINLIBDEST)
  67.  
  68. # Standard path -- don't edit.
  69. # No leading colon since this is the first entry
  70. DESTPATH=$(DESTLIB)
  71.  
  72. # Site specific path components -- should begin with : if non-empty
  73. SITEPATH=
  74.  
  75. # Standard path components for test modules
  76. TESTPATH=:$(DESTLIB)/test
  77.  
  78. # Path components for machine- or system-dependent modules and shared libraries
  79. MACHDEPPATH=:$(DESTLIB)/$(MACHDEP):$(MACHDESTLIB)/sharedmodules
  80.  
  81. COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
  82. PYTHONPATH=$(COREPYTHONPATH)
  83.  
  84.  
  85. # The modules listed here can't be built as shared libraries for
  86. # various reasons; therefore they are listed here instead of in the
  87. # normal order.
  88.  
  89. # Some modules that are normally always on:
  90.  
  91. posix posixmodule.c        # posix (UNIX) system calls
  92. signal signalmodule.c        # signal(2)
  93.  
  94. # The SGI specific GL module:
  95.  
  96. #gl glmodule.c -lgl -lX11    # Graphics Library -- SGI only
  97.  
  98. # Thread module -- use only if Python has thread support for your OS.
  99. # Note that you must have configured (and built!) Python with the
  100. # --with-thread option passed to the configure script for this to work:
  101.  
  102. #thread threadmodule.c
  103.  
  104. # Uncommenting the following line tells makesetup that all following
  105. # modules are to be built as shared libraries (see above for more
  106. # detail):
  107.  
  108. #*shared*
  109.  
  110.  
  111. # Modules that should always be present (non UNIX dependent):
  112.  
  113. array arraymodule.c    # array objects
  114. cmath cmathmodule.c # -lm # complex math library functions
  115. math mathmodule.c # -lm # math library functions, e.g. sin()
  116. regex regexmodule.c regexpr.c    # Regular expressions, GNU Emacs style
  117. strop stropmodule.c    # fast string operations implemented in C
  118. struct structmodule.c    # binary structure packing/unpacking
  119. time timemodule.c # -lm # time operations and variables
  120. operator operator.c    # operator.add() and similar goodies
  121.  
  122.  
  123. # Modules with some UNIX dependencies -- on by default:
  124. # (If you have a really backward UNIX, select and socket may not be
  125. # supported...)
  126.  
  127. fcntl fcntlmodule.c    # fcntl(2) and ioctl(2)
  128. pwd pwdmodule.c        # pwd(3) 
  129. grp grpmodule.c        # grp(3)
  130. crypt cryptmodule.c # -lcrypt    # crypt(3); needs -lcrypt on some systems
  131. select selectmodule.c    # select(2); not on ancient System V
  132. socket socketmodule.c    # socket(2); not on ancient System V
  133. errno errnomodule.c    # posix (UNIX) errno values
  134.  
  135.  
  136. # Some more UNIX dependent modules -- off by default, since these
  137. # are not supported by all UNIX systems:
  138.  
  139. #dbm dbmmodule.c     # dbm(3) may require -lndbm or similar
  140. #nis nismodule.c     # Sun yellow pages -- not everywhere
  141. #termios termios.c    # Steen Lumholt's termios module
  142. #_xdr _xdrmodule.c # -lnsl # Helper for xdrlib.py
  143.  
  144.  
  145. # Multimedia modules -- on by default.
  146. # These represent audio samples or images as strings:
  147.  
  148. audioop audioop.c    # Operations on audio samples
  149. imageop imageop.c    # Operations on images
  150. rgbimg rgbimgmodule.c   # Read SGI RGB image files (but coded portably)
  151.  
  152.  
  153. # The stdwin module provides a simple, portable (between X11 and Mac)
  154. # windowing interface.  You need to ftp the STDWIN library, e.g. from
  155. # ftp://ftp.cwi.nl/pub/stdwin.  (If you get it elsewhere, be sure to
  156. # get version 1.0 or higher!)  The STDWIN variable must point to the
  157. # STDWIN toplevel directory.
  158.  
  159. # Uncomment and edit as needed:
  160. #STDWIN=/ufs/guido/src/stdwin
  161.  
  162. # Uncomment these lines:
  163. #STDWINPATH=:$(DESTLIB)/stdwin
  164. #LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
  165. #LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
  166. #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
  167.  
  168. # Use this instead of the last two lines above for alphanumeric stdwin:
  169. #LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
  170. #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
  171.  
  172.  
  173. # The md5 module implements the RSA Data Security, Inc. MD5
  174. # Message-Digest Algorithm, described in RFC 1321.  The necessary files
  175. # md5c.c and md5.h are included here.
  176.  
  177. md5 md5module.c md5c.c
  178.  
  179.  
  180. # The mpz module interfaces to the GNU Multiple Precision library.
  181. # You need to ftp the GNU MP library.  
  182. # The GMP variable must point to the GMP source directory.
  183. # This was originally written and tested against GMP 1.2 and 1.3.2.
  184. # It has been modified by Rob Hooft to work with 2.0.2 as well, but I
  185. # haven't tested it recently.
  186.  
  187. # A compatible MP library unencombered by the GPL also exists.  It was
  188. # posted to comp.sources.misc in volume 40 and is widely available from
  189. # FTP archive sites. One URL for it is:
  190. # ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
  191.  
  192. #GMP=/ufs/guido/src/gmp
  193. #mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
  194.  
  195.  
  196. # SGI IRIX specific modules -- off by default.
  197.  
  198. # These module work on any SGI machine:
  199.  
  200. # *** gl must be enabled higher up in this file ***
  201. #fm fmmodule.c -lfm -lgl        # Font Manager
  202. #sgi sgimodule.c            # sgi.nap() and a few more
  203.  
  204. # This module requires the header file
  205. # /usr/people/4Dgifts/iristools/include/izoom.h:
  206.  
  207. #imgfile imgfile.c -limage -lgutil    # Image Processing Utilities
  208.  
  209.  
  210. # These modules require the Multimedia Development Option (I think):
  211.  
  212. #al almodule.c -laudio            # Audio Library
  213. #cd cdmodule.c -lcdaudio -lds -lmediad    # CD Audio Library
  214. #cl clmodule.c -lcl -lawareaudio    # Compression Library
  215. #sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11    # Starter Video
  216.  
  217.  
  218. # The FORMS library, by Mark Overmars, implements user interface
  219. # components such as dialogs and buttons using SGI's GL and FM
  220. # libraries.  You must ftp the FORMS library separately from
  221. # ftp://ftp.cs.ruu.nl/pub/SGI/FORMS.  It was tested with FORMS 2.2a.
  222. # The FORMS variable must point to the FORMS subdirectory of the forms
  223. # toplevel directory:
  224.  
  225. #FORMS=/ufs/guido/src/forms/FORMS
  226. #fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a -lfm -lgl
  227.  
  228.  
  229. # SunOS specific modules -- off by default:
  230.  
  231. #sunaudiodev sunaudiodev.c
  232.  
  233.  
  234. # George Neville-Neil's timing module:
  235.  
  236. #timing timingmodule.c
  237.  
  238.  
  239. # The _tkinter module.
  240. #
  241. # See the section "The Tk interface" in ../README for more info.
  242. #
  243. # Enable the TKPATH line and choose the most applicable _tkinter line.
  244. # You may have to change /usr/local to wherever Tcl/Tk are installed.
  245. # Change the -l arguments to use Tcl 7.4 and Tk 4.0!
  246.  
  247. # *** ALWAYS enable this line:
  248. #TKPATH=:$(DESTLIB)/tkinter
  249.  
  250. # *** Enable *one* of the following lines:
  251. # For Solaris:
  252. #_tkinter _tkinter.c -I/usr/openwin/include -I/usr/local/include -L/usr/openwin/lib -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
  253. # For generic system (may have to add -I/-L options to find X11):
  254. #_tkinter _tkinter.c -I/usr/local/include -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
  255.  
  256.  
  257. # Lance Ellinghaus's modules:
  258.  
  259. rotor rotormodule.c        # enigma-inspired encryption
  260. #syslog syslogmodule.c        # syslog daemon interface
  261.  
  262.  
  263. # Lance's curses module.  This requires the System V version of
  264. # curses, sometimes known as ncurses (e.g. on Linux, link with
  265. # -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
  266. # -L/usr/5lib before -lcurses).
  267.  
  268. #curses cursesmodule.c -lcurses -ltermcap
  269.  
  270.  
  271.  
  272. # Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
  273.  
  274. #new newmodule.c
  275.  
  276.  
  277. # Generic (SunOS / SVR4) dynamic loading module.
  278. # This is not needed for dynamic loading of Python modules --
  279. # it is a highly experimental and dangerous device for calling
  280. # *arbitrary* C functions in *arbitrary* shared libraries:
  281.  
  282. #dl dlmodule.c
  283.  
  284.  
  285. # Anthony Baxter's gdbm module (derived from Jack's dbm module)
  286. # GNU dbm(3) will require -lgdbm:
  287.  
  288. #gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
  289.  
  290.  
  291. # Berkeley DB interface.
  292. #
  293. # This requires the Berkeley DB code, see
  294. # ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
  295. #
  296. # Edit the variables DB and DBPORT to point to the db top directory
  297. # and the subdirectory of PORT where you built it.
  298.  
  299. #DB=/depot/sundry/src/berkeley-db/db.1.85
  300. #DBPORT=$(DB)/PORT/irix.5.3
  301. #bsddb bsddbmodule.o -I$(DBPORT)/include $(DBPORT)/libdb.a
  302.  
  303.  
  304.  
  305. # David Wayne Williams' soundex module
  306. #soundex soundex.c
  307.  
  308. # Helper module for various ascii-encoders
  309. binascii binascii.c
  310.  
  311. # Fred Drake's interface to the Python parser
  312. parser parsermodule.c
  313.  
  314.  
  315. # Example -- included for reference only:
  316. # xx xxmodule.c
  317.