]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - python3/patches/00113-more-configuration-flags.patch
python3: New package.
[people/ms/ipfire-3.x.git] / python3 / patches / 00113-more-configuration-flags.patch
1 diff -up Python-3.3.0b1/configure.ac.more-configuration-flags Python-3.3.0b1/configure.ac
2 --- Python-3.3.0b1/configure.ac.more-configuration-flags 2012-07-20 13:25:33.232864839 -0400
3 +++ Python-3.3.0b1/configure.ac 2012-07-20 13:25:33.314863815 -0400
4 @@ -2585,6 +2585,30 @@ else AC_MSG_RESULT(no)
5 fi],
6 [AC_MSG_RESULT(no)])
7
8 +AC_MSG_CHECKING(for --with-count-allocs)
9 +AC_ARG_WITH(count-allocs,
10 +[ --with(out)count-allocs enable/disable per-type instance accounting], [
11 +if test "$withval" != no
12 +then
13 + AC_DEFINE(COUNT_ALLOCS, 1,
14 + [Define to keep records of the number of instances of each type])
15 + AC_MSG_RESULT(yes)
16 +else AC_MSG_RESULT(no)
17 +fi],
18 +[AC_MSG_RESULT(no)])
19 +
20 +AC_MSG_CHECKING(for --with-call-profile)
21 +AC_ARG_WITH(call-profile,
22 +[ --with(out)-call-profile enable/disable statistics on function call invocation], [
23 +if test "$withval" != no
24 +then
25 + AC_DEFINE(CALL_PROFILE, 1,
26 + [Define to keep records on function call invocation])
27 + AC_MSG_RESULT(yes)
28 +else AC_MSG_RESULT(no)
29 +fi],
30 +[AC_MSG_RESULT(no)])
31 +
32 # Check for Python-specific malloc support
33 AC_MSG_CHECKING(for --with-pymalloc)
34 AC_ARG_WITH(pymalloc,
35 diff -up Python-3.3.0b1/pyconfig.h.in.more-configuration-flags Python-3.3.0b1/pyconfig.h.in
36 --- Python-3.3.0b1/pyconfig.h.in.more-configuration-flags 2012-07-20 13:25:33.000000000 -0400
37 +++ Python-3.3.0b1/pyconfig.h.in 2012-07-20 13:26:02.826494869 -0400
38 @@ -12,6 +12,12 @@
39 support for AIX C++ shared extension modules. */
40 #undef AIX_GENUINE_CPLUSPLUS
41
42 +/* Define to keep records on function call invocation */
43 +#undef CALL_PROFILE
44 +
45 +/* Define to keep records of the number of instances of each type */
46 +#undef COUNT_ALLOCS
47 +
48 /* Define if C doubles are 64-bit IEEE 754 binary format, stored in ARM
49 mixed-endian order (byte order 45670123) */
50 #undef DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754