Blame SOURCES/python-2.7.1-config.patch

72be67
diff --git a/Modules/Setup.dist b/Modules/Setup.dist
72be67
index bbc9222..2cf35a9 100644
72be67
--- a/Modules/Setup.dist
72be67
+++ b/Modules/Setup.dist
72be67
@@ -153,7 +153,7 @@ GLHACK=-Dclear=__GLclear
72be67
 # modules are to be built as shared libraries (see above for more
72be67
 # detail; also note that *static* reverses this effect):
72be67
 
72be67
-#*shared*
72be67
+*shared*
72be67
 
72be67
 # GNU readline.  Unlike previous Python incarnations, GNU readline is
72be67
 # now incorporated in an optional module, configured in the Setup file
72be67
@@ -163,33 +163,33 @@ GLHACK=-Dclear=__GLclear
72be67
 # it, depending on your system -- see the GNU readline instructions.
72be67
 # It's okay for this to be a shared library, too.
72be67
 
72be67
-#readline readline.c -lreadline -ltermcap
72be67
+readline readline.c -lreadline -ltermcap
72be67
 
72be67
 
72be67
 # Modules that should always be present (non UNIX dependent):
72be67
 
72be67
-#array arraymodule.c	# array objects
72be67
-#cmath cmathmodule.c _math.c # -lm # complex math library functions
72be67
-#math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
72be67
-#_struct _struct.c	# binary structure packing/unpacking
72be67
-#time timemodule.c # -lm # time operations and variables
72be67
-#operator operator.c	# operator.add() and similar goodies
72be67
-#_testcapi _testcapimodule.c    # Python C API test module
72be67
-#_random _randommodule.c	# Random number generator
72be67
-#_collections _collectionsmodule.c # Container types
72be67
+array arraymodule.c	# array objects
72be67
+cmath cmathmodule.c _math.c # -lm # complex math library functions
72be67
+math mathmodule.c _math.c # -lm # math library functions, e.g. sin()
72be67
+_struct _struct.c	# binary structure packing/unpacking
72be67
+time timemodule.c # -lm # time operations and variables
72be67
+operator operator.c	# operator.add() and similar goodies
72be67
+_testcapi _testcapimodule.c    # Python C API test module
72be67
+_random _randommodule.c	# Random number generator
72be67
+_collections _collectionsmodule.c # Container types
72be67
 #_heapq _heapqmodule.c		# Heapq type
72be67
-#itertools itertoolsmodule.c	# Functions creating iterators for efficient looping 
72be67
-#strop stropmodule.c		# String manipulations
72be67
-#_functools _functoolsmodule.c	# Tools for working with functions and callable objects
72be67
+itertools itertoolsmodule.c	# Functions creating iterators for efficient looping 
72be67
+strop stropmodule.c		# String manipulations
72be67
+_functools _functoolsmodule.c	# Tools for working with functions and callable objects
72be67
 #_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c	# elementtree accelerator
72be67
 #_pickle _pickle.c	# pickle accelerator
72be67
 #datetime datetimemodule.c	# date/time type
72be67
-#_bisect _bisectmodule.c	# Bisection algorithms
72be67
+_bisect _bisectmodule.c	# Bisection algorithms
72be67
 
72be67
-#unicodedata unicodedata.c    # static Unicode character database
72be67
+unicodedata unicodedata.c    # static Unicode character database
72be67
 
72be67
 # access to ISO C locale support
72be67
-#_locale _localemodule.c  # -lintl
72be67
+_locale _localemodule.c  # -lintl
72be67
 
72be67
 # Standard I/O baseline
72be67
 #_io -I$(srcdir)/Modules/_io _io/bufferedio.c _io/bytesio.c _io/fileio.c _io/iobase.c _io/_iomodule.c _io/stringio.c _io/textio.c
72be67
@@ -199,41 +199,41 @@ GLHACK=-Dclear=__GLclear
72be67
 # (If you have a really backward UNIX, select and socket may not be
72be67
 # supported...)
72be67
 
72be67
-#fcntl fcntlmodule.c	# fcntl(2) and ioctl(2)
72be67
-#spwd spwdmodule.c		# spwd(3) 
72be67
-#grp grpmodule.c		# grp(3)
72be67
-#select selectmodule.c	# select(2); not on ancient System V
72be67
+fcntl fcntlmodule.c	# fcntl(2) and ioctl(2)
72be67
+spwd spwdmodule.c		# spwd(3) 
72be67
+grp grpmodule.c		# grp(3)
72be67
+select selectmodule.c	# select(2); not on ancient System V
72be67
 
72be67
 # Memory-mapped files (also works on Win32).
72be67
-#mmap mmapmodule.c
72be67
+mmap mmapmodule.c
72be67
 
72be67
 # CSV file helper
72be67
-#_csv _csv.c
72be67
+_csv _csv.c
72be67
 
72be67
 # Socket module helper for socket(2)
72be67
-#_socket socketmodule.c timemodule.c
72be67
+_socket socketmodule.c timemodule.c
72be67
 
72be67
 # Socket module helper for SSL support; you must comment out the other
72be67
 # socket line above, and possibly edit the SSL variable:
72be67
 #SSL=/usr/local/ssl
72be67
-#_ssl _ssl.c \
72be67
-#	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
72be67
-#	-L$(SSL)/lib -lssl -lcrypto
72be67
+_ssl _ssl.c \
72be67
+	-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
72be67
+	-L$(SSL)/lib -lssl -lcrypto
72be67
 
72be67
 # The crypt module is now disabled by default because it breaks builds
72be67
 # on many systems (where -lcrypt is needed), e.g. Linux (I believe).
72be67
 #
72be67
 # First, look at Setup.config; configure may have set this for you.
72be67
 
72be67
-#crypt cryptmodule.c # -lcrypt	# crypt(3); needs -lcrypt on some systems
72be67
+crypt cryptmodule.c # -lcrypt	# crypt(3); needs -lcrypt on some systems
72be67
 
72be67
 
72be67
 # Some more UNIX dependent modules -- off by default, since these
72be67
 # are not supported by all UNIX systems:
72be67
 
72be67
-#nis nismodule.c -lnsl	# Sun yellow pages -- not everywhere
72be67
-#termios termios.c	# Steen Lumholt's termios module
72be67
-#resource resource.c	# Jeremy Hylton's rlimit interface
72be67
+nis nismodule.c -lnsl -ltirpc -I/usr/include/tirpc -I/usr/include/nsl -L/usr/lib/nsl
72be67
+termios termios.c	# Steen Lumholt's termios module
72be67
+resource resource.c	# Jeremy Hylton's rlimit interface
72be67
 
72be67
 
72be67
 # Multimedia modules -- off by default.
72be67
@@ -241,8 +241,8 @@ GLHACK=-Dclear=__GLclear
72be67
 # #993173 says audioop works on 64-bit platforms, though.
72be67
 # These represent audio samples or images as strings:
72be67
 
72be67
-#audioop audioop.c	# Operations on audio samples
72be67
-#imageop imageop.c	# Operations on images
72be67
+audioop audioop.c	# Operations on audio samples
72be67
+imageop imageop.c	# Operations on images
72be67
 
72be67
 
72be67
 # Note that the _md5 and _sha modules are normally only built if the
72be67
@@ -252,14 +252,14 @@ GLHACK=-Dclear=__GLclear
72be67
 # Message-Digest Algorithm, described in RFC 1321.  The necessary files
72be67
 # md5.c and md5.h are included here.
72be67
 
72be67
-#_md5 md5module.c md5.c
72be67
+_md5 md5module.c md5.c
72be67
 
72be67
 
72be67
 # The _sha module implements the SHA checksum algorithms.
72be67
 # (NIST's Secure Hash Algorithms.)
72be67
-#_sha shamodule.c
72be67
-#_sha256 sha256module.c
72be67
-#_sha512 sha512module.c
72be67
+_sha shamodule.c
72be67
+_sha256 sha256module.c
72be67
+_sha512 sha512module.c
72be67
 
72be67
 
72be67
 # SGI IRIX specific modules -- off by default.
72be67
@@ -306,12 +306,12 @@ GLHACK=-Dclear=__GLclear
72be67
 # A Linux specific module -- off by default; this may also work on 
72be67
 # some *BSDs.
72be67
 
72be67
-#linuxaudiodev linuxaudiodev.c
72be67
+linuxaudiodev linuxaudiodev.c
72be67
 
72be67
 
72be67
 # George Neville-Neil's timing module:
72be67
 
72be67
-#timing timingmodule.c
72be67
+timing timingmodule.c
72be67
 
72be67
 
72be67
 # The _tkinter module.
72be67
@@ -326,7 +326,7 @@ GLHACK=-Dclear=__GLclear
72be67
 # every system.
72be67
 
72be67
 # *** Always uncomment this (leave the leading underscore in!):
72be67
-# _tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
72be67
+_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT \
72be67
 # *** Uncomment and edit to reflect where your Tcl/Tk libraries are:
72be67
 #	-L/usr/local/lib \
72be67
 # *** Uncomment and edit to reflect where your Tcl/Tk headers are:
72be67
@@ -336,7 +336,7 @@ GLHACK=-Dclear=__GLclear
72be67
 # *** Or uncomment this for Solaris:
72be67
 #	-I/usr/openwin/include \
72be67
 # *** Uncomment and edit for Tix extension only:
72be67
-#	-DWITH_TIX -ltix8.1.8.2 \
72be67
+	-DWITH_TIX -ltix \
72be67
 # *** Uncomment and edit for BLT extension only:
72be67
 #	-DWITH_BLT -I/usr/local/blt/blt8.0-unoff/include -lBLT8.0 \
72be67
 # *** Uncomment and edit for PIL (TkImaging) extension only:
72be67
@@ -345,7 +345,7 @@ GLHACK=-Dclear=__GLclear
72be67
 # *** Uncomment and edit for TOGL extension only:
72be67
 #	-DWITH_TOGL togl.c \
72be67
 # *** Uncomment and edit to reflect your Tcl/Tk versions:
72be67
-#	-ltk8.2 -ltcl8.2 \
72be67
+	-ltk -ltcl \
72be67
 # *** Uncomment and edit to reflect where your X11 libraries are:
72be67
 #	-L/usr/X11R6/lib \
72be67
 # *** Or uncomment this for Solaris:
72be67
@@ -355,7 +355,7 @@ GLHACK=-Dclear=__GLclear
72be67
 # *** Uncomment for AIX:
72be67
 #	-lld \
72be67
 # *** Always uncomment this; X11 libraries to link with:
72be67
-#	-lX11
72be67
+	-lX11
72be67
 
72be67
 # Lance Ellinghaus's syslog module
72be67
 #syslog syslogmodule.c		# syslog daemon interface
72be67
@@ -377,7 +377,7 @@ GLHACK=-Dclear=__GLclear
72be67
 # it is a highly experimental and dangerous device for calling
72be67
 # *arbitrary* C functions in *arbitrary* shared libraries:
72be67
 
72be67
-#dl dlmodule.c
72be67
+dl dlmodule.c
72be67
 
72be67
 
72be67
 # Modules that provide persistent dictionary-like semantics.  You will
72be67
@@ -400,7 +400,7 @@ GLHACK=-Dclear=__GLclear
72be67
 #
72be67
 # First, look at Setup.config; configure may have set this for you.
72be67
 
72be67
-#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
72be67
+gdbm gdbmmodule.c -lgdbm
72be67
 
72be67
 
72be67
 # Sleepycat Berkeley DB interface.
72be67
@@ -415,11 +415,9 @@ GLHACK=-Dclear=__GLclear
72be67
 #
72be67
 # Edit the variables DB and DBLIBVERto point to the db top directory
72be67
 # and the subdirectory of PORT where you built it.
72be67
-#DB=/usr/local/BerkeleyDB.4.0
72be67
-#DBLIBVER=4.0
72be67
-#DBINC=$(DB)/include
72be67
-#DBLIB=$(DB)/lib
72be67
-#_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb-$(DBLIBVER)
72be67
+DBINC=/usr/include/libdb
72be67
+DBLIB=/usr/lib
72be67
+_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb
72be67
 
72be67
 # Historical Berkeley DB 1.85
72be67
 #
72be67
@@ -434,14 +432,14 @@ GLHACK=-Dclear=__GLclear
72be67
 
72be67
 
72be67
 # Helper module for various ascii-encoders
72be67
-#binascii binascii.c
72be67
+binascii binascii.c
72be67
 
72be67
 # Fred Drake's interface to the Python parser
72be67
-#parser parsermodule.c
72be67
+parser parsermodule.c
72be67
 
72be67
 # cStringIO and cPickle
72be67
-#cStringIO cStringIO.c
72be67
-#cPickle cPickle.c
72be67
+cStringIO cStringIO.c
72be67
+cPickle cPickle.c
72be67
 
72be67
 
72be67
 # Lee Busby's SIGFPE modules.
72be67
@@ -464,7 +462,7 @@ GLHACK=-Dclear=__GLclear
72be67
 # Andrew Kuchling's zlib module.
72be67
 # This require zlib 1.1.3 (or later).
72be67
 # See http://www.gzip.org/zlib/
72be67
-#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
72be67
+zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
72be67
 
72be67
 # Interface to the Expat XML parser
72be67
 # More information on Expat can be found at www.libexpat.org.
72be67
@@ -475,14 +473,14 @@ GLHACK=-Dclear=__GLclear
72be67
 # Hye-Shik Chang's CJKCodecs
72be67
 
72be67
 # multibytecodec is required for all the other CJK codec modules
72be67
-#_multibytecodec cjkcodecs/multibytecodec.c
72be67
-
72be67
-#_codecs_cn cjkcodecs/_codecs_cn.c
72be67
-#_codecs_hk cjkcodecs/_codecs_hk.c
72be67
-#_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
72be67
-#_codecs_jp cjkcodecs/_codecs_jp.c
72be67
-#_codecs_kr cjkcodecs/_codecs_kr.c
72be67
-#_codecs_tw cjkcodecs/_codecs_tw.c
72be67
+_multibytecodec cjkcodecs/multibytecodec.c
72be67
+
72be67
+_codecs_cn cjkcodecs/_codecs_cn.c
72be67
+_codecs_hk cjkcodecs/_codecs_hk.c
72be67
+_codecs_iso2022 cjkcodecs/_codecs_iso2022.c
72be67
+_codecs_jp cjkcodecs/_codecs_jp.c
72be67
+_codecs_kr cjkcodecs/_codecs_kr.c
72be67
+_codecs_tw cjkcodecs/_codecs_tw.c
72be67
 
72be67
 # Example -- included for reference only:
72be67
 # xx xxmodule.c