Blame SOURCES/05000-autotool-intermediates.patch

6e8c2f
diff -up ./configure.autotool-intermediates ./configure
6e8c2f
--- ./configure.autotool-intermediates	2013-04-09 11:24:01.024185796 +0200
6e8c2f
+++ ./configure	2013-04-09 11:24:01.780183954 +0200
6e8c2f
@@ -639,6 +639,8 @@ TRUE
6e8c2f
 MACHDEP_OBJS
6e8c2f
 DYNLOADFILE
6e8c2f
 DLINCLDIR
6e8c2f
+DTRACEHDRS
6e8c2f
+DTRACEOBJS
6e8c2f
 THREADOBJ
6e8c2f
 LDLAST
6e8c2f
 USE_THREAD_MODULE
6e8c2f
@@ -659,6 +661,8 @@ OTHER_LIBTOOL_OPT
6e8c2f
 UNIVERSAL_ARCH_FLAGS
6e8c2f
 BASECFLAGS
6e8c2f
 OPT
6e8c2f
+DEBUG_SUFFIX
6e8c2f
+DEBUG_EXT
6e8c2f
 LN
6e8c2f
 MKDIR_P
6e8c2f
 INSTALL_DATA
6e8c2f
@@ -795,8 +799,11 @@ with_pth
6e8c2f
 enable_ipv6
6e8c2f
 with_doc_strings
6e8c2f
 with_tsc
6e8c2f
+with_count_allocs
6e8c2f
+with_call_profile
6e8c2f
 with_pymalloc
6e8c2f
 with_valgrind
6e8c2f
+with_dtrace
6e8c2f
 with_wctype_functions
6e8c2f
 with_fpectl
6e8c2f
 with_libm
6e8c2f
@@ -1472,8 +1479,11 @@ Optional Packages:
6e8c2f
   --with-pth              use GNU pth threading libraries
6e8c2f
   --with(out)-doc-strings disable/enable documentation strings
6e8c2f
   --with(out)-tsc         enable/disable timestamp counter profile
6e8c2f
+  --with(out)count-allocs  enable/disable per-type instance accounting
6e8c2f
+  --with(out)-call-profile  enable/disable statistics on function call invocation
6e8c2f
   --with(out)-pymalloc    disable/enable specialized mallocs
6e8c2f
   --with-valgrind         Enable Valgrind support
6e8c2f
+  --with(out)-dtrace      disable/enable dtrace support
6e8c2f
   --with-wctype-functions use wctype.h functions
6e8c2f
   --with-fpectl           enable SIGFPE catching
6e8c2f
   --with-libm=STRING      math library
6e8c2f
@@ -5171,7 +5181,7 @@ esac
6e8c2f
 $as_echo_n "checking LIBRARY... " >&6; }
6e8c2f
 if test -z "$LIBRARY"
6e8c2f
 then
6e8c2f
-	LIBRARY='libpython$(VERSION).a'
6e8c2f
+	LIBRARY='libpython$(VERSION)$(DEBUG_EXT).a'
6e8c2f
 fi
6e8c2f
 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
6e8c2f
 $as_echo "$LIBRARY" >&6; }
6e8c2f
@@ -5343,8 +5353,8 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>
6e8c2f
 	  INSTSONAME="$LDLIBRARY".$SOVERSION
6e8c2f
           ;;
6e8c2f
     Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*)
6e8c2f
-	  LDLIBRARY='libpython$(VERSION).so'
6e8c2f
-	  BLDLIBRARY='-L. -lpython$(VERSION)'
6e8c2f
+	  LDLIBRARY='libpython$(VERSION)$(DEBUG_EXT).so'
6e8c2f
+	  BLDLIBRARY='-L. -lpython$(VERSION)$(DEBUG_EXT)'
6e8c2f
 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
6e8c2f
 	  case $ac_sys_system in
6e8c2f
 	      FreeBSD*)
6e8c2f
@@ -5367,7 +5377,7 @@ $as_echo "#define Py_ENABLE_SHARED 1" >>
6e8c2f
 	  ;;
6e8c2f
     OSF*)
6e8c2f
 	  LDLIBRARY='libpython$(VERSION).so'
6e8c2f
-	  BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)'
6e8c2f
+	  BLDLIBRARY='-L. -lpython$(VERSION)'
6e8c2f
 	  RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}
6e8c2f
 	  ;;
6e8c2f
     atheos*)
6e8c2f
@@ -5894,6 +5904,14 @@ $as_echo "no" >&6; }
6e8c2f
 fi
6e8c2f
 
6e8c2f
 
6e8c2f
+if test "$Py_DEBUG" = 'true'
6e8c2f
+then
6e8c2f
+	DEBUG_EXT=_d
6e8c2f
+	DEBUG_SUFFIX=-debug
6e8c2f
+fi
6e8c2f
+
6e8c2f
+
6e8c2f
+
6e8c2f
 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
6e8c2f
 # merged with this chunk of code?
6e8c2f
 
6e8c2f
@@ -9958,6 +9976,50 @@ $as_echo "no" >&6; }
6e8c2f
 fi
6e8c2f
 
6e8c2f
 
6e8c2f
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-count-allocs" >&5
6e8c2f
+$as_echo_n "checking for --with-count-allocs... " >&6; }
6e8c2f
+
6e8c2f
+# Check whether --with-count-allocs was given.
6e8c2f
+if test "${with_count_allocs+set}" = set; then :
6e8c2f
+  withval=$with_count_allocs;
6e8c2f
+if test "$withval" != no
6e8c2f
+then
6e8c2f
+
6e8c2f
+$as_echo "#define COUNT_ALLOCS 1" >>confdefs.h
6e8c2f
+
6e8c2f
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6e8c2f
+$as_echo "yes" >&6; }
6e8c2f
+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6e8c2f
+$as_echo "no" >&6; }
6e8c2f
+fi
6e8c2f
+else
6e8c2f
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6e8c2f
+$as_echo "no" >&6; }
6e8c2f
+fi
6e8c2f
+
6e8c2f
+
6e8c2f
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-call-profile" >&5
6e8c2f
+$as_echo_n "checking for --with-call-profile... " >&6; }
6e8c2f
+
6e8c2f
+# Check whether --with-call-profile was given.
6e8c2f
+if test "${with_call_profile+set}" = set; then :
6e8c2f
+  withval=$with_call_profile;
6e8c2f
+if test "$withval" != no
6e8c2f
+then
6e8c2f
+
6e8c2f
+$as_echo "#define CALL_PROFILE 1" >>confdefs.h
6e8c2f
+
6e8c2f
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6e8c2f
+$as_echo "yes" >&6; }
6e8c2f
+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6e8c2f
+$as_echo "no" >&6; }
6e8c2f
+fi
6e8c2f
+else
6e8c2f
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6e8c2f
+$as_echo "no" >&6; }
6e8c2f
+fi
6e8c2f
+
6e8c2f
+
6e8c2f
 # Check for Python-specific malloc support
6e8c2f
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
6e8c2f
 $as_echo_n "checking for --with-pymalloc... " >&6; }
6e8c2f
@@ -10007,6 +10069,46 @@ fi
6e8c2f
 
6e8c2f
 fi
6e8c2f
 
6e8c2f
+# Check for dtrace support
6e8c2f
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
6e8c2f
+$as_echo_n "checking for --with-dtrace... " >&6; }
6e8c2f
+
6e8c2f
+# Check whether --with-dtrace was given.
6e8c2f
+if test "${with_dtrace+set}" = set; then :
6e8c2f
+  withval=$with_dtrace;
6e8c2f
+fi
6e8c2f
+
6e8c2f
+
6e8c2f
+if test ! -z "$with_dtrace"
6e8c2f
+then
6e8c2f
+    if dtrace -G -o /dev/null -s $srcdir/Include/pydtrace.d 2>/dev/null
6e8c2f
+    then
6e8c2f
+
6e8c2f
+$as_echo "#define WITH_DTRACE 1" >>confdefs.h
6e8c2f
+
6e8c2f
+	with_dtrace="Sun"
6e8c2f
+	DTRACEOBJS="Python/dtrace.o"
6e8c2f
+	DTRADEHDRS=""
6e8c2f
+    elif dtrace -h -o /dev/null -s $srcdir/Include/pydtrace.d
6e8c2f
+    then
6e8c2f
+
6e8c2f
+$as_echo "#define WITH_DTRACE 1" >>confdefs.h
6e8c2f
+
6e8c2f
+	with_dtrace="Apple"
6e8c2f
+	DTRACEOBJS=""
6e8c2f
+	DTRADEHDRS="pydtrace.h"
6e8c2f
+    else
6e8c2f
+	with_dtrace="no"
6e8c2f
+    fi
6e8c2f
+else
6e8c2f
+    with_dtrace="no"
6e8c2f
+fi
6e8c2f
+
6e8c2f
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
6e8c2f
+$as_echo "$with_dtrace" >&6; }
6e8c2f
+
6e8c2f
+
6e8c2f
+
6e8c2f
 # Check for --with-wctype-functions
6e8c2f
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5
6e8c2f
 $as_echo_n "checking for --with-wctype-functions... " >&6; }
6e8c2f
diff -up ./pyconfig.h.in.autotool-intermediates ./pyconfig.h.in
6e8c2f
--- ./pyconfig.h.in.autotool-intermediates	2013-04-09 11:24:01.020185806 +0200
6e8c2f
+++ ./pyconfig.h.in	2013-04-09 11:24:02.088183204 +0200
6e8c2f
@@ -18,6 +18,12 @@
6e8c2f
 /* Define this if you have BeOS threads. */
6e8c2f
 #undef BEOS_THREADS
6e8c2f
 
6e8c2f
+/* Define to keep records on function call invocation */
6e8c2f
+#undef CALL_PROFILE
6e8c2f
+
6e8c2f
+/* Define to keep records of the number of instances of each type */
6e8c2f
+#undef COUNT_ALLOCS
6e8c2f
+
6e8c2f
 /* Define if you have the Mach cthreads package */
6e8c2f
 #undef C_THREADS
6e8c2f
 
6e8c2f
@@ -1119,12 +1125,6 @@
6e8c2f
 /* Define to profile with the Pentium timestamp counter */
6e8c2f
 #undef WITH_TSC
6e8c2f
 
6e8c2f
-/* Define to keep records of the number of instances of each type */
6e8c2f
-#undef COUNT_ALLOCS
6e8c2f
-
6e8c2f
-/* Define to keep records on function call invocation */
6e8c2f
-#undef CALL_PROFILE
6e8c2f
-
6e8c2f
 /* Define if you want pymalloc to be disabled when running under valgrind */
6e8c2f
 #undef WITH_VALGRIND
6e8c2f