home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_python.idb / usr / freeware / lib / python1.5 / config / Setup.z / Setup
Encoding:
Text File  |  1999-04-16  |  14.3 KB  |  406 lines

  1. # -*- makefile -*-
  2. # 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
  6. # Setup to your heart's content.  Note that Makefile.pre is created
  7. # from Makefile.pre.in by the toplevel configure script.
  8.  
  9. # (VPATH notes: Setup and Makefile.pre are in the build directory, as
  10. # are Makefile and config.c; the *.in files are in the source
  11. # directory.)
  12.  
  13. # 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. #
  17. # <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
  18. #
  19. # <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
  20. # <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. #
  25. # (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. #
  29. # Lines can also have the form
  30. #
  31. # <name> = <value>
  32. #
  33. # which defines a Make variable definition inserted into Makefile.in
  34. #
  35. # Finally, if a line contains just the word "*shared*" (without the
  36. # quotes but with the stars), then the following modules will not be
  37. # 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
  39. # added to the linker options, but rules to create their .o files and
  40. # their shared libraries will still be added to the Makefile, and
  41. # their names will be collected in the Make variable SHAREDMODS.  This
  42. # is used to build modules as shared libraries.  (They can be
  43. # installed using "make sharedinstall", which is implied by the
  44. # toplevel "make install" target.)  (For compatibility,
  45. # *noconfig* has the same effect as *shared*.)
  46.  
  47. # NOTE: As a standard policy, as many modules as can be supported by a
  48. # platform should be present.  The distribution comes with all modules
  49. # enabled that are supported by most platforms and don't require you
  50. # to ftp sources from elsewhere.
  51.  
  52.  
  53. # Some special rules to define PYTHONPATH.
  54. # Edit the definitions below to indicate which options you are using.
  55. # Don't add any whitespace or comments!
  56.  
  57. # Directories where library files get installed.
  58. # DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
  59. DESTLIB=$(LIBDEST)
  60. MACHDESTLIB=$(BINLIBDEST)
  61.  
  62. # NOTE: all the paths are now relative to the prefix that is computed
  63. # at run time!
  64.  
  65. # Standard path -- don't edit.
  66. # No leading colon since this is the first entry.
  67. # Empty since this is now just the runtime prefix.
  68. DESTPATH=
  69.  
  70. # Site specific path components -- should begin with : if non-empty
  71. SITEPATH=
  72.  
  73. # Standard path components for test modules
  74. TESTPATH=
  75.  
  76. # Path components for machine- or system-dependent modules and shared libraries
  77. MACHDEPPATH=:plat-$(MACHDEP)
  78.  
  79. COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
  80. PYTHONPATH=$(COREPYTHONPATH)
  81.  
  82.  
  83. # The modules listed here can't be built as shared libraries for
  84. # various reasons; therefore they are listed here instead of in the
  85. # normal order.
  86.  
  87. # Some modules that are normally always on:
  88.  
  89. regex regexmodule.c regexpr.c    # Regular expressions, GNU Emacs style
  90. pcre pcremodule.c pypcre.c    # Regular expressions, Perl style (for re.py)
  91. posix posixmodule.c        # posix (UNIX) system calls
  92. signal signalmodule.c        # signal(2)
  93.  
  94. # The SGI specific GL module:
  95.  
  96. GLHACK=-Dclear=__GLclear
  97. #gl glmodule.c cgensupport.c -I$(srcdir) $(GLHACK) -lgl -lX11
  98.  
  99. # The thread module is now automatically enabled, see Setup.thread.
  100.  
  101. # Pure module.  Cannot be linked dynamically.
  102. # -DWITH_QUANTIFY, -DWITH_PURIFY, or -DWITH_ALL_PURE
  103. #WHICH_PURE_PRODUCTS=-DWITH_ALL_PURE
  104. #PURE_INCLS=-I/usr/local/include
  105. #PURE_STUBLIBS=-L/usr/local/lib -lpurify_stubs -lquantify_stubs
  106. #pure puremodule.c $(WHICH_PURE_PRODUCTS) $(PURE_INCLS) $(PURE_STUBLIBS)
  107.  
  108. # Uncommenting the following line tells makesetup that all following
  109. # modules are to be built as shared libraries (see above for more
  110. # detail):
  111.  
  112. #*shared*
  113.  
  114. # GNU readline.  Unlike previous Python incarnations, GNU readline is
  115. # now incorporated in an optional module, configured in the Setup file
  116. # instead of by a configure script switch.  You may have to insert a
  117. # -L option pointing to the directory where libreadline.* lives,
  118. # and you may have to change -ltermcap to -ltermlib or perhaps remove
  119. # it, depending on your system -- see the GNU readline instructions.
  120. # It's okay for this to be a shared library, too.
  121.  
  122. #readline readline.c -lreadline -ltermcap
  123.  
  124.  
  125. # Modules that should always be present (non UNIX dependent):
  126.  
  127. array arraymodule.c    # array objects
  128. cmath cmathmodule.c # -lm # complex math library functions
  129. math mathmodule.c # -lm # math library functions, e.g. sin()
  130. strop stropmodule.c    # fast string operations implemented in C
  131. struct structmodule.c    # binary structure packing/unpacking
  132. time timemodule.c # -lm # time operations and variables
  133. operator operator.c    # operator.add() and similar goodies
  134.  
  135. #_locale _localemodule.c  # access to ISO C locale support
  136.  
  137.  
  138. # Modules with some UNIX dependencies -- on by default:
  139. # (If you have a really backward UNIX, select and socket may not be
  140. # supported...)
  141.  
  142. fcntl fcntlmodule.c    # fcntl(2) and ioctl(2)
  143. pwd pwdmodule.c        # pwd(3) 
  144. grp grpmodule.c        # grp(3)
  145. select selectmodule.c    # select(2); not on ancient System V
  146. socket socketmodule.c    # socket(2); not on ancient System V
  147. #_socket socketmodule.c    # socket(2); use this one for BeOS sockets
  148. errno errnomodule.c    # posix (UNIX) errno values
  149.  
  150. # The crypt module is now disabled by default because it breaks builds
  151. # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
  152. #crypt cryptmodule.c # -lcrypt    # crypt(3); needs -lcrypt on some systems
  153.  
  154.  
  155. # Some more UNIX dependent modules -- off by default, since these
  156. # are not supported by all UNIX systems:
  157.  
  158. #nis nismodule.c     # Sun yellow pages -- not everywhere
  159. #termios termios.c    # Steen Lumholt's termios module
  160. #resource resource.c    # Jeremy Hylton's rlimit interface
  161.  
  162.  
  163. # Multimedia modules -- off by default.
  164. # These don't work for 64-bit platforms!!!
  165. # These represent audio samples or images as strings:
  166.  
  167. #audioop audioop.c    # Operations on audio samples
  168. #imageop imageop.c    # Operations on images
  169. #rgbimg rgbimgmodule.c   # Read SGI RGB image files (but coded portably)
  170.  
  171.  
  172. # The stdwin module provides a simple, portable (between X11 and Mac)
  173. # windowing interface.  You need to ftp the STDWIN library, e.g. from
  174. # ftp://ftp.cwi.nl/pub/stdwin.  (If you get it elsewhere, be sure to
  175. # get version 1.0 or higher!)  The STDWIN variable must point to the
  176. # STDWIN toplevel directory.
  177.  
  178. # Uncomment and edit as needed:
  179. #STDWIN=/ufs/guido/src/stdwin
  180.  
  181. # Uncomment these lines:
  182. #STDWINPATH=:lib-stdwin
  183. #LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
  184. #LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
  185. #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
  186.  
  187. # Use this instead of the last two lines above for alphanumeric stdwin:
  188. #LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
  189. #stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
  190.  
  191.  
  192. # The md5 module implements the RSA Data Security, Inc. MD5
  193. # Message-Digest Algorithm, described in RFC 1321.  The necessary files
  194. # md5c.c and md5.h are included here.
  195.  
  196. md5 md5module.c md5c.c
  197.  
  198.  
  199. # The mpz module interfaces to the GNU Multiple Precision library.
  200. # You need to ftp the GNU MP library.  
  201. # The GMP variable must point to the GMP source directory.
  202. # This was originally written and tested against GMP 1.2 and 1.3.2.
  203. # It has been modified by Rob Hooft to work with 2.0.2 as well, but I
  204. # haven't tested it recently.
  205.  
  206. # A compatible MP library unencombered by the GPL also exists.  It was
  207. # posted to comp.sources.misc in volume 40 and is widely available from
  208. # FTP archive sites. One URL for it is:
  209. # ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
  210.  
  211. #GMP=/ufs/guido/src/gmp
  212. #mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
  213.  
  214.  
  215. # SGI IRIX specific modules -- off by default.
  216.  
  217. # These module work on any SGI machine:
  218.  
  219. # *** gl must be enabled higher up in this file ***
  220. #fm fmmodule.c $(GLHACK) -lfm -lgl        # Font Manager
  221. #sgi sgimodule.c            # sgi.nap() and a few more
  222.  
  223. # This module requires the header file
  224. # /usr/people/4Dgifts/iristools/include/izoom.h:
  225. #imgfile imgfile.c -limage -lgutil -lgl -lm    # Image Processing Utilities
  226.  
  227.  
  228. # These modules require the Multimedia Development Option (I think):
  229.  
  230. #al almodule.c -laudio            # Audio Library
  231. #cd cdmodule.c -lcdaudio -lds -lmediad    # CD Audio Library
  232. #cl clmodule.c -lcl -lawareaudio    # Compression Library
  233. #sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11    # Starter Video
  234.  
  235.  
  236. # The FORMS library, by Mark Overmars, implements user interface
  237. # components such as dialogs and buttons using SGI's GL and FM
  238. # libraries.  You must ftp the FORMS library separately from
  239. # ftp://ftp.cs.ruu.nl/pub/SGI/FORMS.  It was tested with FORMS 2.2a.
  240. # NOTE: if you want to be able to use FORMS and curses simultaneously
  241. # (or both link them statically into the same binary), you must
  242. # compile all of FORMS with the cc option "-Dclear=__GLclear".
  243.  
  244. # The FORMS variable must point to the FORMS subdirectory of the forms
  245. # toplevel directory:
  246.  
  247. #FORMS=/ufs/guido/src/forms/FORMS
  248. #fl flmodule.c -I$(FORMS) $(GLHACK) $(FORMS)/libforms.a -lfm -lgl
  249.  
  250.  
  251. # SunOS specific modules -- off by default:
  252.  
  253. #sunaudiodev sunaudiodev.c
  254.  
  255.  
  256. # George Neville-Neil's timing module:
  257.  
  258. #timing timingmodule.c
  259.  
  260.  
  261. # The _tkinter module.
  262. #
  263. # The TKPATH variable is always enabled, to save you the effort.
  264. TKPATH=:lib-tk
  265.  
  266. # The command for _tkinter is long and site specific.  Please
  267. # uncomment and/or edit those parts as indicated.  If you don't have a
  268. # specific extension (e.g. Tix or BLT), leave the corresponding line
  269. # commented out.  (Leave the trailing backslashes in!  If you
  270. # experience strange errors, you may want to join all uncommented
  271. # lines and remove the backslashes -- the backslash interpretation is
  272. # done by the shell's "read" command and it may not be implemented on
  273. # every system.
  274.  
  275. # *** Always uncomment this (leave the leading underscore in!):
  276. # _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
  277. # *** Uncomment and edit to reflect where your Tcl/Tk headers are:
  278. #    -I/usr/local/include \
  279. # *** Uncomment and edit to reflect where your X11 header files are:
  280. #    -I/usr/X11R6/include \
  281. # *** Or uncomment this for Solaris:
  282. #    -I/usr/openwin/include \
  283. # *** Uncomment and edit for Tix extension only:
  284. #    -DWITH_TIX -ltix4.1.8.0 \
  285. # *** Uncomment and edit for BLT extension only:
  286. #    -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
  287. # *** Uncomment and edit for PIL (TkImaging) extension only:
  288. #    -DWITH_PIL -I../Extensions/Imaging/libImaging  tkImaging.c \
  289. # *** Uncomment and edit for TOGL extension only:
  290. #    -DWITH_TOGL togl.c \
  291. # *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
  292. #    -L/usr/local/lib \
  293. # *** Uncomment and edit to reflect your Tcl/Tk versions:
  294. #    -ltk8.0 -ltcl8.0 \
  295. # *** Uncomment and edit to reflect where your X11 libraries are:
  296. #    -L/usr/X11R6/lib \
  297. # *** Or uncomment this for Solaris:
  298. #    -L/usr/openwin/lib \
  299. # *** Uncomment these for TOGL extension only:
  300. #    -lGL -lGLU -lXext -lXmu \
  301. # *** Uncomment for AIX:
  302. #    -lld \
  303. # *** Always uncomment this; X11 libraries to link with:
  304. #    -lX11
  305.  
  306. # Lance Ellinghaus's modules:
  307.  
  308. rotor rotormodule.c        # enigma-inspired encryption
  309. #syslog syslogmodule.c        # syslog daemon interface
  310.  
  311.  
  312. # Lance's curses module.  This requires the System V version of
  313. # curses, sometimes known as ncurses (e.g. on Linux, link with
  314. # -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
  315. # -L/usr/5lib before -lcurses).
  316.  
  317. #curses cursesmodule.c -lcurses -ltermcap
  318.  
  319.  
  320.  
  321. # Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
  322.  
  323. new newmodule.c
  324.  
  325.  
  326. # Generic (SunOS / SVR4) dynamic loading module.
  327. # This is not needed for dynamic loading of Python modules --
  328. # it is a highly experimental and dangerous device for calling
  329. # *arbitrary* C functions in *arbitrary* shared libraries:
  330.  
  331. #dl dlmodule.c
  332.  
  333.  
  334. # Modules that provide persistent dictionary-like semantics.  You will
  335. # probably want to arrange for at least one of them to be available on
  336. # your machine, though none are defined by default because of library
  337. # dependencies.  The Python module anydbm.py provides an
  338. # implementation independent wrapper for these; dumbdbm.py provides
  339. # similar functionality (but slower of course) implemented in Python.
  340.  
  341. # The standard Unix dbm module:
  342.  
  343. #dbm dbmmodule.c     # dbm(3) may require -lndbm or similar
  344.  
  345. # Anthony Baxter's gdbm module.  GNU dbm(3) will require -lgdbm:
  346.  
  347. #gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
  348.  
  349.  
  350. # Berkeley DB interface.
  351. #
  352. # This requires the Berkeley DB code, see
  353. # ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
  354. #
  355. # Edit the variables DB and DBPORT to point to the db top directory
  356. # and the subdirectory of PORT where you built it.
  357. #
  358. # (See http://www.jenkon-dev.com/~rd/python/ for an interface to
  359. # BSD DB 2.1.0.)
  360.  
  361. #DB=/depot/sundry/src/berkeley-db/db.1.85
  362. #DBPORT=$(DB)/PORT/irix.5.3
  363. #bsddb bsddbmodule.c -I$(DBPORT)/include -I$(DBPORT) $(DBPORT)/libdb.a
  364.  
  365.  
  366.  
  367. # David Wayne Williams' soundex module (obsolete -- this will disappear!)
  368. #soundex soundex.c
  369.  
  370. # Helper module for various ascii-encoders
  371. binascii binascii.c
  372.  
  373. # Fred Drake's interface to the Python parser
  374. parser parsermodule.c
  375.  
  376. # Digital Creations' cStringIO and cPickle
  377. cStringIO cStringIO.c
  378. cPickle cPickle.c
  379.  
  380.  
  381. # Lee Busby's SIGFPE modules.
  382. # The library to link fpectl with is platform specific.
  383. # Choose *one* of the options below for fpectl:
  384.  
  385. # For SGI IRIX (tested on 5.3):
  386. #fpectl fpectlmodule.c -lfpe
  387.  
  388. # For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2):
  389. # (Without the compiler you don't have -lsunmath.)
  390. #fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm
  391.  
  392. # For other systems: see instructions in fpectlmodule.c.
  393. #fpectl fpectlmodule.c ...
  394.  
  395. # Test module for fpectl.  No extra libraries needed.
  396. #fpetest fpetestmodule.c
  397.  
  398. # Andrew Kuchling's zlib module.
  399. # This require zlib 1.0.4 (or later).  See http://quest.jpl.nasa.gov/zlib/
  400. # See http://www.cdrom.com/pub/infozip/zlib/
  401. #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
  402.  
  403.  
  404. # Example -- included for reference only:
  405. # xx xxmodule.c
  406.