churchyard / rpms / python3

Forked from rpms/python3 6 years ago
Clone

Blame autotool-intermediates.patch

7eb10c8
diff -up ./configure.autotool-intermediates ./configure
cce760d
--- ./configure.autotool-intermediates	2011-07-11 11:50:06.910425999 -0400
cce760d
+++ ./configure	2011-07-11 11:50:13.492426001 -0400
cce760d
@@ -619,6 +619,8 @@ TRUE
7eb10c8
 MACHDEP_OBJS
7eb10c8
 DYNLOADFILE
7eb10c8
 DLINCLDIR
7eb10c8
+DTRACEHDRS
7eb10c8
+DTRACEOBJS
7eb10c8
 THREADOBJ
7eb10c8
 LDLAST
7eb10c8
 USE_THREAD_MODULE
cce760d
@@ -764,8 +766,11 @@ with_thread
7eb10c8
 enable_ipv6
7eb10c8
 with_doc_strings
7eb10c8
 with_tsc
7eb10c8
+with_count_allocs
7eb10c8
+with_call_profile
7eb10c8
 with_pymalloc
7eb10c8
 with_valgrind
7eb10c8
+with_dtrace
7eb10c8
 with_fpectl
7eb10c8
 with_libm
5080ffc
 with_libc
cce760d
@@ -781,7 +786,8 @@ CFLAGS
cce760d
 LDFLAGS
cce760d
 LIBS
cce760d
 CPPFLAGS
cce760d
-CPP'
cce760d
+CPP
cce760d
+CPPFLAGS'
3f75b3e
 
3f75b3e
 
cce760d
 # Initialize some variables set by options.
cce760d
@@ -1437,8 +1443,11 @@ Optional Packages:
7eb10c8
                           deprecated; use --with(out)-threads
7eb10c8
   --with(out)-doc-strings disable/enable documentation strings
7eb10c8
   --with(out)-tsc         enable/disable timestamp counter profile
7eb10c8
+  --with(out)count-allocs  enable/disable per-type instance accounting
7eb10c8
+  --with(out)-call-profile  enable/disable statistics on function call invocation
7eb10c8
   --with(out)-pymalloc    disable/enable specialized mallocs
7eb10c8
   --with-valgrind         Enable Valgrind support
7eb10c8
+  --with(out)-dtrace      disable/enable dtrace support
7eb10c8
   --with-fpectl           enable SIGFPE catching
7eb10c8
   --with-libm=STRING      math library
5080ffc
   --with-libc=STRING      C library
cce760d
@@ -9284,6 +9293,50 @@ $as_echo "no" >&6; }
7eb10c8
 fi
7eb10c8
 
7eb10c8
 
7eb10c8
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-count-allocs" >&5
7eb10c8
+$as_echo_n "checking for --with-count-allocs... " >&6; }
7eb10c8
+
7eb10c8
+# Check whether --with-count-allocs was given.
7eb10c8
+if test "${with_count_allocs+set}" = set; then :
7eb10c8
+  withval=$with_count_allocs;
7eb10c8
+if test "$withval" != no
7eb10c8
+then
7eb10c8
+
7eb10c8
+$as_echo "#define COUNT_ALLOCS 1" >>confdefs.h
7eb10c8
+
7eb10c8
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7eb10c8
+$as_echo "yes" >&6; }
7eb10c8
+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7eb10c8
+$as_echo "no" >&6; }
7eb10c8
+fi
7eb10c8
+else
7eb10c8
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7eb10c8
+$as_echo "no" >&6; }
7eb10c8
+fi
7eb10c8
+
7eb10c8
+
7eb10c8
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-call-profile" >&5
7eb10c8
+$as_echo_n "checking for --with-call-profile... " >&6; }
7eb10c8
+
7eb10c8
+# Check whether --with-call-profile was given.
7eb10c8
+if test "${with_call_profile+set}" = set; then :
7eb10c8
+  withval=$with_call_profile;
7eb10c8
+if test "$withval" != no
7eb10c8
+then
7eb10c8
+
7eb10c8
+$as_echo "#define CALL_PROFILE 1" >>confdefs.h
7eb10c8
+
7eb10c8
+    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7eb10c8
+$as_echo "yes" >&6; }
7eb10c8
+else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7eb10c8
+$as_echo "no" >&6; }
7eb10c8
+fi
7eb10c8
+else
7eb10c8
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7eb10c8
+$as_echo "no" >&6; }
7eb10c8
+fi
7eb10c8
+
7eb10c8
+
7eb10c8
 # Check for Python-specific malloc support
7eb10c8
 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
7eb10c8
 $as_echo_n "checking for --with-pymalloc... " >&6; }
cce760d
@@ -9336,6 +9389,46 @@ fi
7eb10c8
     OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
7eb10c8
 fi
7eb10c8
 
7eb10c8
+# Check for dtrace support
7eb10c8
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
7eb10c8
+$as_echo_n "checking for --with-dtrace... " >&6; }
7eb10c8
+
7eb10c8
+# Check whether --with-dtrace was given.
7eb10c8
+if test "${with_dtrace+set}" = set; then :
7eb10c8
+  withval=$with_dtrace;
7eb10c8
+fi
7eb10c8
+
7eb10c8
+
7eb10c8
+if test ! -z "$with_dtrace"
7eb10c8
+then
7eb10c8
+    if dtrace -G -o /dev/null -s $srcdir/Include/pydtrace.d 2>/dev/null
7eb10c8
+    then
7eb10c8
+
7eb10c8
+$as_echo "#define WITH_DTRACE 1" >>confdefs.h
7eb10c8
+
7eb10c8
+	with_dtrace="Sun"
7eb10c8
+	DTRACEOBJS="Python/dtrace.o"
7eb10c8
+	DTRADEHDRS=""
7eb10c8
+    elif dtrace -h -o /dev/null -s $srcdir/Include/pydtrace.d
7eb10c8
+   then
7eb10c8
+
7eb10c8
+$as_echo "#define WITH_DTRACE 1" >>confdefs.h
7eb10c8
+
7eb10c8
+	with_dtrace="Apple"
7eb10c8
+	DTRACEOBJS=""
7eb10c8
+	DTRADEHDRS="pydtrace.h"
7eb10c8
+    else
7eb10c8
+	with_dtrace="no"
7eb10c8
+    fi
7eb10c8
+else
7eb10c8
+    with_dtrace="no"
7eb10c8
+fi
7eb10c8
+
7eb10c8
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
7eb10c8
+$as_echo "$with_dtrace" >&6; }
7eb10c8
+
7eb10c8
+
7eb10c8
+
5080ffc
 # -I${DLINCLDIR} is added to the compile rule for importdl.o
5080ffc
 
5080ffc
 DLINCLDIR=.
7eb10c8
diff -up ./pyconfig.h.in.autotool-intermediates ./pyconfig.h.in
cce760d
--- ./pyconfig.h.in.autotool-intermediates	2011-07-11 11:50:06.896426002 -0400
cce760d
+++ ./pyconfig.h.in	2011-07-11 11:50:13.965426001 -0400
7eb10c8
@@ -12,15 +12,15 @@
7eb10c8
    support for AIX C++ shared extension modules. */
7eb10c8
 #undef AIX_GENUINE_CPLUSPLUS
7eb10c8
 
7eb10c8
-/* Define if you have the Mach cthreads package */
7eb10c8
-#undef C_THREADS
7eb10c8
-
7eb10c8
 /* Define to keep records on function call invocation */
7eb10c8
 #undef CALL_PROFILE
7eb10c8
 
7eb10c8
 /* Define to keep records of the number of instances of each type */
7eb10c8
 #undef COUNT_ALLOCS
7eb10c8
 
7eb10c8
+/* Define if you have the Mach cthreads package */
7eb10c8
+#undef C_THREADS
7eb10c8
+
7eb10c8
 /* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM
7eb10c8
    mixed-endian order (byte order 45670123) */
7eb10c8
 #undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754