home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Programming / Python2 / Python20_source / Modules / Setup.in < prev    next >
Encoding:
Text File  |  2000-10-25  |  15.2 KB  |  438 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. # In addition, *static* reverses this effect (negating a previous
  48. # *shared* line).
  49.  
  50. # NOTE: As a standard policy, as many modules as can be supported by a
  51. # platform should be present.  The distribution comes with all modules
  52. # enabled that are supported by most platforms and don't require you
  53. # to ftp sources from elsewhere.
  54.  
  55.  
  56. # Some special rules to define PYTHONPATH.
  57. # Edit the definitions below to indicate which options you are using.
  58. # Don't add any whitespace or comments!
  59.  
  60. # Directories where library files get installed.
  61. # DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
  62. DESTLIB=$(LIBDEST)
  63. MACHDESTLIB=$(BINLIBDEST)
  64.  
  65. # NOTE: all the paths are now relative to the prefix that is computed
  66. # at run time!
  67.  
  68. # Standard path -- don't edit.
  69. # No leading colon since this is the first entry.
  70. # Empty since this is now just the runtime prefix.
  71. DESTPATH=
  72.  
  73. # Site specific path components -- should begin with : if non-empty
  74. SITEPATH=
  75.  
  76. # Standard path components for test modules
  77. TESTPATH=
  78.  
  79. # Path components for machine- or system-dependent modules and shared libraries
  80. MACHDEPPATH=:plat-$(MACHDEP)
  81.  
  82. COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(TKPATH)
  83. PYTHONPATH=$(COREPYTHONPATH)
  84.  
  85.  
  86. # The modules listed here can't be built as shared libraries for
  87. # various reasons; therefore they are listed here instead of in the
  88. # normal order.
  89.  
  90. # Some modules that are normally always on:
  91.  
  92. regex regexmodule.c regexpr.c    # Regular expressions, GNU Emacs style
  93. pcre pcremodule.c pypcre.c    # Regular expressions, Perl style (for re.py)
  94. posix posixmodule.c        # posix (UNIX) system calls
  95. signal signalmodule.c        # signal(2)
  96. _sre _sre.c            # Fredrik Lundh's new regular expressions
  97.  
  98. # The SGI specific GL module:
  99.  
  100. GLHACK=-Dclear=__GLclear
  101. #gl glmodule.c cgensupport.c -I$(srcdir) $(GLHACK) -lgl -lX11
  102.  
  103. # Pure module.  Cannot be linked dynamically.
  104. # -DWITH_QUANTIFY, -DWITH_PURIFY, or -DWITH_ALL_PURE
  105. #WHICH_PURE_PRODUCTS=-DWITH_ALL_PURE
  106. #PURE_INCLS=-I/usr/local/include
  107. #PURE_STUBLIBS=-L/usr/local/lib -lpurify_stubs -lquantify_stubs
  108. #pure puremodule.c $(WHICH_PURE_PRODUCTS) $(PURE_INCLS) $(PURE_STUBLIBS)
  109.  
  110. # Uncommenting the following line tells makesetup that all following
  111. # modules are to be built as shared libraries (see above for more
  112. # detail; also note that *static* reverses this effect):
  113.  
  114. #*shared*
  115.  
  116. # GNU readline.  Unlike previous Python incarnations, GNU readline is
  117. # now incorporated in an optional module, configured in the Setup file
  118. # instead of by a configure script switch.  You may have to insert a
  119. # -L option pointing to the directory where libreadline.* lives,
  120. # and you may have to change -ltermcap to -ltermlib or perhaps remove
  121. # it, depending on your system -- see the GNU readline instructions.
  122. # It's okay for this to be a shared library, too.
  123.  
  124. #readline readline.c -lreadline -ltermcap
  125.  
  126.  
  127. # Modules that should always be present (non UNIX dependent):
  128.  
  129. array arraymodule.c    # array objects
  130. cmath cmathmodule.c # -lm # complex math library functions
  131. math mathmodule.c # -lm # math library functions, e.g. sin()
  132. strop stropmodule.c    # fast string operations implemented in C
  133. struct structmodule.c    # binary structure packing/unpacking
  134. time timemodule.c # -lm # time operations and variables
  135. operator operator.c    # operator.add() and similar goodies
  136. _codecs _codecsmodule.c    # access to the builtin codecs and codec registry
  137.  
  138. unicodedata unicodedata.c unicodedatabase.c
  139.                         # static Unicode character database
  140. ucnhash ucnhash.c # Unicode Character Name expansion hash table
  141.  
  142. _locale _localemodule.c  # access to ISO C locale support
  143.  
  144.  
  145. # Modules with some UNIX dependencies -- on by default:
  146. # (If you have a really backward UNIX, select and socket may not be
  147. # supported...)
  148.  
  149. fcntl fcntlmodule.c    # fcntl(2) and ioctl(2)
  150. pwd pwdmodule.c        # pwd(3) 
  151. grp grpmodule.c        # grp(3)
  152. errno errnomodule.c    # posix (UNIX) errno values
  153. select selectmodule.c    # select(2); not on ancient System V
  154. _socket socketmodule.c    # socket(2)
  155.  
  156. # Memory-mapped files (also works on Win32).
  157. mmap mmapmodule.c
  158.  
  159. # Socket module compiled with SSL support; you must edit the SSL variable:
  160. #SSL=/usr/local/ssl
  161. #_socket socketmodule.c \
  162. #    -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
  163. #    -L$(SSL)/lib -lssl -lcrypto
  164.  
  165. # The crypt module is now disabled by default because it breaks builds
  166. # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
  167. #crypt cryptmodule.c # -lcrypt    # crypt(3); needs -lcrypt on some systems
  168.  
  169.  
  170. # Some more UNIX dependent modules -- off by default, since these
  171. # are not supported by all UNIX systems:
  172.  
  173. #nis nismodule.c -lnsl    # Sun yellow pages -- not everywhere
  174. #termios termios.c    # Steen Lumholt's termios module
  175. #resource resource.c    # Jeremy Hylton's rlimit interface
  176.  
  177.  
  178. # Multimedia modules -- off by default.
  179. # These don't work for 64-bit platforms!!!
  180. # These represent audio samples or images as strings:
  181.  
  182. #audioop audioop.c    # Operations on audio samples
  183. #imageop imageop.c    # Operations on images
  184. #rgbimg rgbimgmodule.c    # Read SGI RGB image files (but coded portably)
  185.  
  186.  
  187. # The md5 module implements the RSA Data Security, Inc. MD5
  188. # Message-Digest Algorithm, described in RFC 1321.  The necessary files
  189. # md5c.c and md5.h are included here.
  190.  
  191. md5 md5module.c md5c.c
  192.  
  193.  
  194. # The sha module implements the SHA checksum algorithm.
  195. # (NIST's Secure Hash Algorithm.)
  196. sha shamodule.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. # Linux specific modules -- off by default:
  257.  
  258. #linuxaudiodev linuxaudiodev.c
  259.  
  260.  
  261. # George Neville-Neil's timing module:
  262.  
  263. #timing timingmodule.c
  264.  
  265.  
  266. # The _tkinter module.
  267. #
  268. # The TKPATH variable is always enabled, to save you the effort.
  269. TKPATH=:lib-tk
  270.  
  271. # The command for _tkinter is long and site specific.  Please
  272. # uncomment and/or edit those parts as indicated.  If you don't have a
  273. # specific extension (e.g. Tix or BLT), leave the corresponding line
  274. # commented out.  (Leave the trailing backslashes in!  If you
  275. # experience strange errors, you may want to join all uncommented
  276. # lines and remove the backslashes -- the backslash interpretation is
  277. # done by the shell's "read" command and it may not be implemented on
  278. # every system.
  279.  
  280. # *** Always uncomment this (leave the leading underscore in!):
  281. # _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
  282. # *** Uncomment and edit to reflect where your Tcl/Tk headers are:
  283. #    -I/usr/local/include \
  284. # *** Uncomment and edit to reflect where your X11 header files are:
  285. #    -I/usr/X11R6/include \
  286. # *** Or uncomment this for Solaris:
  287. #    -I/usr/openwin/include \
  288. # *** Uncomment and edit for Tix extension only:
  289. #    -DWITH_TIX -ltix4.1.8.0 \
  290. # *** Uncomment and edit for BLT extension only:
  291. #    -DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
  292. # *** Uncomment and edit for PIL (TkImaging) extension only:
  293. #    -DWITH_PIL -I../Extensions/Imaging/libImaging  tkImaging.c \
  294. # *** Uncomment and edit for TOGL extension only:
  295. #    -DWITH_TOGL togl.c \
  296. # *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
  297. #    -L/usr/local/lib \
  298. # *** Uncomment and edit to reflect your Tcl/Tk versions:
  299. #    -ltk8.0 -ltcl8.0 \
  300. # *** Uncomment and edit to reflect where your X11 libraries are:
  301. #    -L/usr/X11R6/lib \
  302. # *** Or uncomment this for Solaris:
  303. #    -L/usr/openwin/lib \
  304. # *** Uncomment these for TOGL extension only:
  305. #    -lGL -lGLU -lXext -lXmu \
  306. # *** Uncomment for AIX:
  307. #    -lld \
  308. # *** Always uncomment this; X11 libraries to link with:
  309. #    -lX11
  310.  
  311. # Lance Ellinghaus's modules:
  312.  
  313. rotor rotormodule.c        # enigma-inspired encryption
  314. #syslog syslogmodule.c        # syslog daemon interface
  315.  
  316.  
  317. # Curses support, requring the System V version of curses, often
  318. # provided by the ncurses library.  e.g. on Linux, link with -lncurses
  319. # instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
  320. # -L/usr/5lib before -lcurses).
  321.  
  322. #_curses _cursesmodule.c -lcurses -ltermcap
  323.  
  324.  
  325.  
  326. # Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
  327.  
  328. new newmodule.c
  329.  
  330.  
  331. # Generic (SunOS / SVR4) dynamic loading module.
  332. # This is not needed for dynamic loading of Python modules --
  333. # it is a highly experimental and dangerous device for calling
  334. # *arbitrary* C functions in *arbitrary* shared libraries:
  335.  
  336. #dl dlmodule.c
  337.  
  338.  
  339. # Modules that provide persistent dictionary-like semantics.  You will
  340. # probably want to arrange for at least one of them to be available on
  341. # your machine, though none are defined by default because of library
  342. # dependencies.  The Python module anydbm.py provides an
  343. # implementation independent wrapper for these; dumbdbm.py provides
  344. # similar functionality (but slower of course) implemented in Python.
  345.  
  346. # The standard Unix dbm module:
  347.  
  348. #dbm dbmmodule.c     # dbm(3) may require -lndbm or similar
  349.  
  350. # Anthony Baxter's gdbm module.  GNU dbm(3) will require -lgdbm:
  351.  
  352. #gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
  353.  
  354.  
  355. # Berkeley DB interface.
  356. #
  357. # This requires the Berkeley DB code, see
  358. # ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
  359. #
  360. # Edit the variables DB and DBPORT to point to the db top directory
  361. # and the subdirectory of PORT where you built it.
  362. #
  363. # (See http://electricrain.com/greg/python/bsddb3/ for an interface to
  364. # BSD DB 3.x.)
  365.  
  366. # Note: If a db.h file is found by configure, bsddb will be enabled
  367. # automatically via Setup.config.in.  It only needs to be enabled here
  368. # if it is not automatically enabled there; check the generated
  369. # Setup.config before enabling it here.
  370.  
  371. #DB=/depot/sundry/src/berkeley-db/db.1.85
  372. #DBPORT=$(DB)/PORT/irix.5.3
  373. #bsddb bsddbmodule.c -I$(DBPORT)/include -I$(DBPORT) $(DBPORT)/libdb.a
  374.  
  375.  
  376.  
  377. # David Wayne Williams' soundex module (obsolete -- this will disappear!)
  378. #soundex soundex.c
  379.  
  380. # Helper module for various ascii-encoders
  381. binascii binascii.c
  382.  
  383. # Fred Drake's interface to the Python parser
  384. parser parsermodule.c
  385.  
  386. # Digital Creations' cStringIO and cPickle
  387. cStringIO cStringIO.c
  388. cPickle cPickle.c
  389.  
  390.  
  391. # Lee Busby's SIGFPE modules.
  392. # The library to link fpectl with is platform specific.
  393. # Choose *one* of the options below for fpectl:
  394.  
  395. # For SGI IRIX (tested on 5.3):
  396. #fpectl fpectlmodule.c -lfpe
  397.  
  398. # For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2):
  399. # (Without the compiler you don't have -lsunmath.)
  400. #fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm
  401.  
  402. # For other systems: see instructions in fpectlmodule.c.
  403. #fpectl fpectlmodule.c ...
  404.  
  405. # Test module for fpectl.  No extra libraries needed.
  406. #fpetest fpetestmodule.c
  407.  
  408. # Andrew Kuchling's zlib module.
  409. # This require zlib 1.1.3 (or later).
  410. # See http://www.cdrom.com/pub/infozip/zlib/
  411. #zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
  412.  
  413. # Interface to the Expat XML parser
  414. #
  415. # Expat is written by James Clark and must be downloaded separately
  416. # (see below).  The pyexpat module was written by Paul Prescod after a
  417. # prototype by Jack Jansen.
  418. #
  419. # The Expat dist includes Windows .lib and .dll files.  Home page is at
  420. # http://www.jclark.com/xml/expat.html, the current production release is
  421. # always ftp://ftp.jclark.com/pub/xml/expat.zip.
  422. #
  423. # EXPAT_DIR, below, should point to the expat/ directory created by
  424. # unpacking the Expat source distribution.
  425. #
  426. # Note: the expat build process doesn't yet build a libexpat.a; you can
  427. # do this manually while we try convince the author to add it.  To do so,
  428. # cd to EXPAT_DIR, run "make" if you have not done so, then run:
  429. #
  430. #    ar cr libexpat.a xmltok/*.o xmlparse/*.o
  431. #
  432. #EXPAT_DIR=/usr/local/src/expat
  433. #pyexpat pyexpat.c -I$(EXPAT_DIR)/xmlparse -L$(EXPAT_DIR) -lexpat
  434.  
  435.  
  436. # Example -- included for reference only:
  437. # xx xxmodule.c
  438.