[Python-checkins] python/dist/src configure, 1.446, 1.447 configure.in, 1.457, 1.458

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Thu Jun 17 22:47:25 EDT 2004


Update of /cvsroot/python/python/dist/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18448

Modified Files:
	configure configure.in 
Log Message:
allow developers to more easily build a profiling version of the interpreter
and modules by configuring with the --enable-profiling flag.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.446
retrieving revision 1.447
diff -C2 -d -r1.446 -r1.447
*** configure	8 Jun 2004 08:17:34 -0000	1.446
--- configure	18 Jun 2004 02:47:15 -0000	1.447
***************
*** 1,9 ****
  #! /bin/sh
! # From configure.in Revision: 1.456 .
  # Guess values for system-dependent variables and create Makefiles.
! # Generated by GNU Autoconf 2.57 for python 2.4.
  #
! # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
! # Free Software Foundation, Inc.
  # This configure script is free software; the Free Software Foundation
  # gives unlimited permission to copy, distribute and modify it.
--- 1,8 ----
[...12639 lines suppressed...]
      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
***************
*** 19178,19185 ****
        as_dir=`(dirname "$as_dir") 2>/dev/null ||
  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
!          X"$as_dir" : 'X\(//\)[^/]' \| \
!          X"$as_dir" : 'X\(//\)$' \| \
!          X"$as_dir" : 'X\(/\)' \| \
!          .     : '\(.\)' 2>/dev/null ||
  echo X"$as_dir" |
      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
--- 21003,21010 ----
        as_dir=`(dirname "$as_dir") 2>/dev/null ||
  $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
! 	 X"$as_dir" : 'X\(//\)[^/]' \| \
! 	 X"$as_dir" : 'X\(//\)$' \| \
! 	 X"$as_dir" : 'X\(/\)' \| \
! 	 .     : '\(.\)' 2>/dev/null ||
  echo X"$as_dir" |
      sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.457
retrieving revision 1.458
diff -C2 -d -r1.457 -r1.458
*** configure.in	8 Jun 2004 08:17:41 -0000	1.457
--- configure.in	18 Jun 2004 02:47:21 -0000	1.458
***************
*** 486,489 ****
--- 486,507 ----
  AC_MSG_RESULT($enable_shared)
  
+ AC_MSG_CHECKING(for --enable-profiling)
+ AC_ARG_ENABLE(profiling,
+               AC_HELP_STRING(--enable-profiling, enable C-level code profiling),
+ [ac_save_cc="$CC"
+  CC="$CC -pg"
+  AC_TRY_RUN([int main() { return 0; }],
+    ac_enable_profiling="yes",
+    ac_enable_profiling="no",
+    ac_enable_profiling="no")
+  CC="$ac_save_cc"])
+ AC_MSG_RESULT($ac_enable_profiling)
+ 
+ case "$ac_enable_profiling" in
+     "yes")
+ 	BASECFLAGS="-pg $BASECFLAGS"
+ 	LDFLAGS="-pg $LDFLAGS"
+     ;;
+ esac
  
  AC_MSG_CHECKING(LDLIBRARY)




More information about the Python-checkins mailing list