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