[Python-checkins] CVS: python/dist/src configure.in,1.224,1.225

Fred L. Drake fdrake@users.sourceforge.net
Tue, 10 Jul 2001 23:27:02 -0700


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv10491

Modified Files:
	configure.in 
Log Message:

Check for --with-pydebug earlier, and record the result.

When setting up the basic OPT value for GCC, only use optimization if
not using debugging mode.

Fix a typo in a comment in the IPv6 check.


Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.224
retrieving revision 1.225
diff -C2 -r1.224 -r1.225
*** configure.in	2001/07/10 16:44:35	1.224
--- configure.in	2001/07/11 06:27:00	1.225
***************
*** 304,307 ****
--- 304,317 ----
  fi
  
+ # Check for --with-pydebug
+ AC_MSG_CHECKING(for --with-pydebug)
+ AC_ARG_WITH(pydebug, 
+ [  --with-pydebug                  build with Py_DEBUG defined], [
+ if test "$withval" != no
+ then AC_DEFINE(Py_DEBUG) AC_MSG_RESULT(yes); Py_DEBUG='true'
+ else AC_MSG_RESULT(no); Py_DEBUG='false'
+ fi],
+ [AC_MSG_RESULT(no)])
+ 
  # Optimizer/debugger flags
  AC_SUBST(OPT)
***************
*** 312,320 ****
  		case $ac_cv_prog_cc_g in
  	yes)
! 	    OPT="-g -O2 -Wall -Wstrict-prototypes";;
  	*)
! 	    OPT="-O2 -Wall -Wstrict-prototypes";;
! 		esac
! 		;;
      *)
  	case $ac_sys_system in
--- 322,336 ----
  		case $ac_cv_prog_cc_g in
  	yes)
! 	    if test "$Py_DEBUG" = 'true' ; then
! 		# Optimization messes up debuggers, so turn it off for
! 		# debug builds.
! 		OPT="-g -Wall -Wstrict-prototypes"
! 	    else
! 		OPT="-g -O3 -Wall -Wstrict-prototypes"
! 	    fi;;
  	*)
! 	    OPT="-O3 -Wall -Wstrict-prototypes";;
! 	esac
! 	;;
      *)
  	case $ac_sys_system in
***************
*** 386,390 ****
    esac ],
  
!   AC_TRY_RUN([ /* AF_INET6 avalable check */
  #include <sys/types.h>
  #include <sys/socket.h>
--- 402,406 ----
    esac ],
  
!   AC_TRY_RUN([ /* AF_INET6 available check */
  #include <sys/types.h>
  #include <sys/socket.h>
***************
*** 861,874 ****
  AC_CHECK_LIB(dl, dlopen)	# Dynamic linking for SunOS/Solaris and SYSV
  AC_CHECK_LIB(dld, shl_load)	# Dynamic linking for HP-UX
- 
- # Check for --with-pydebug
- AC_MSG_CHECKING(for --with-pydebug)
- AC_ARG_WITH(pydebug, 
- [  --with-pydebug                  build with Py_DEBUG defined], [
- if test "$withval" != no
- then AC_DEFINE(Py_DEBUG) AC_MSG_RESULT(yes)
- else AC_MSG_RESULT(no)
- fi],
- [AC_MSG_RESULT(no)])
  
  # checks for system dependent C++ extensions support
--- 877,880 ----