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