1 diff -ru Python-2.6.7-orig/configure.in Python-2.6.7/configure.in 2 --- Python-2.6.7-orig/configure.in 2010-05-25 02:27:03.000000000 +0000 3 +++ Python-2.6.7/configure.in 2012-02-16 04:16:13.796197134 +0000 4 @@ -372,7 +372,7 @@ 5 # except for Solaris 10, where it must not be defined, 6 # as it implies XPG4.2 7 case $ac_sys_system/$ac_sys_release in 8 - SunOS/5.10) 9 + SunOS/5.10|SunOS/5.11) 10 ;; 11 *) 12 AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, 13 diff -ru Python-2.6.7-orig/Lib/distutils/sysconfig.py Python-2.6.7/Lib/distutils/sysconfig.py 14 --- Python-2.6.7-orig/Lib/distutils/sysconfig.py 2010-08-03 21:18:06.000000000 +0000 15 +++ Python-2.6.7/Lib/distutils/sysconfig.py 2012-02-16 04:19:04.453088064 +0000 16 @@ -225,7 +225,9 @@ 17 return os.path.join(os.path.dirname(os.path.realpath(sys.executable)), 18 "Makefile") 19 lib_dir = get_python_lib(plat_specific=1, standard_lib=1) 20 - return os.path.join(lib_dir, "config", "Makefile") 21 + if sys.maxint == 2147483647L: 22 + return os.path.join(lib_dir, "config", "Makefile") 23 + return os.path.join(lib_dir, "config", "Makefile.64") 24 25 26 def parse_config_h(fp, g=None):