fix variable reference to fix --enable-profiling (closes #17550)

This commit is contained in:
Benjamin Peterson 2013-03-26 08:55:37 -04:00
parent da2c7ebd23
commit b9be7bbe2e
3 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,11 @@ What's New in Python 2.7.4?
*Release date: XXXX-XX-XX*
Build
-----
- Issue #17550: Fix the --enable-profiling configure switch.
Core and Builtins
-----------------

2
configure vendored
View File

@ -5281,7 +5281,7 @@ fi
if test "x$enable_profiling" = xyes; then
ac_save_cc="$CC"
CC="$(CC) -pg"
CC="$CC -pg"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int main() { return 0; }

View File

@ -833,7 +833,7 @@ AC_ARG_ENABLE(profiling,
AS_HELP_STRING([--enable-profiling], [enable C-level code profiling]))
if test "x$enable_profiling" = xyes; then
ac_save_cc="$CC"
CC="$(CC) -pg"
CC="$CC -pg"
AC_LINK_IFELSE([AC_LANG_SOURCE([[int main() { return 0; }]])],
[],
[enable_profiling=no])