[Python-checkins] CVS: python/dist/src configure.in,1.134,1.135
Vladimir Marangozov
python-dev@python.org
Tue, 11 Jul 2000 20:02:19 -0700
Update of /cvsroot/python/python/dist/src
In directory slayer.i.sourceforge.net:/tmp/cvs-serv12123
Modified Files:
configure.in
Log Message:
Checks whether right shift extends the sign bit.
Patch by Thomas Wouters <thomas@xs4all.net> with small changes of mine
(in main(), use return instead of exit).
Closes patch #100832
(but I can't assign it to myself, nor close it -- sorry)
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.134
retrieving revision 1.135
diff -C2 -r1.134 -r1.135
*** configure.in 2000/07/09 14:39:29 1.134
--- configure.in 2000/07/12 03:02:16 1.135
***************
*** 1137,1140 ****
--- 1137,1153 ----
AC_C_BIGENDIAN
+ # Check whether right shifting a negative integer extends the sign bit
+ # 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!
# Add sys/socket.h to confdefs.h