home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Python 1.1 / Modules / Setup.in < prev    next >
Encoding:
Text File  |  1994-10-06  |  8.6 KB  |  248 lines  |  [TEXT/R*ch]

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