[Python-checkins] CVS: python/dist/src configure.in,1.135,1.136

Vladimir Marangozov python-dev@python.org
2000年7月11日 22:04:47 -0700


Update of /cvsroot/python/python/dist/src
In directory slayer.i.sourceforge.net:/tmp/cvs-serv774
Modified Files:
	configure.in 
Log Message:
Second try: checks whether right shift extends the sign bit. 
Adds caching and reverts back the 'return' to 'exit()' in 
AC_TRY_RUN as recommended by the Autoconf documentation.
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.135
retrieving revision 1.136
diff -C2 -r1.135 -r1.136
*** configure.in	2000年07月12日 03:02:16	1.135
--- configure.in	2000年07月12日 05:04:44	1.136
***************
*** 1140,1152 ****
 # or fills with zeros (like the Cray J90, according to Tim Peters).
 AC_MSG_CHECKING(whether right shift extends the sign bit)
 AC_TRY_RUN([
 int main()
 {
! 	return ((-1)>>3 == -1) ? 1 : 0;
 }
! ],
! [AC_DEFINE(SIGNED_RIGHT_SHIFT_ZERO_FILLS)
! AC_MSG_RESULT(yes)],
! [AC_MSG_RESULT(no)])
 
 # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
--- 1140,1156 ----
 # or fills with zeros (like the Cray J90, according to Tim Peters).
 AC_MSG_CHECKING(whether right shift extends the sign bit)
+ AC_CACHE_VAL(ac_cv_rshift_extends_sign, [
 AC_TRY_RUN([
 int main()
 {
! 	exit(((-1)>>3 == -1) ? 0 : 1);
 }
! ], ac_cv_rshift_extends_sign=yes, ac_cv_rshift_extends_sign=no)])
! AC_MSG_RESULT($ac_cv_rshift_extends_sign)
! if test "$ac_cv_rshift_extends_sign" = no
! then
! AC_DEFINE(SIGNED_RIGHT_SHIFT_ZERO_FILLS)
! fi
! 
 
 # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!

AltStyle によって変換されたページ (->オリジナル) /