Blame SOURCES/05000-autotool-intermediates.patch

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