[Python-checkins] CVS: python/dist/src configure,1.126,1.127

Vladimir Marangozov python-dev@python.org
Tue, 11 Jul 2000 22:05:09 -0700


Update of /cvsroot/python/python/dist/src
In directory slayer.i.sourceforge.net:/tmp/cvs-serv794

Modified Files:
	configure 
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
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.126
retrieving revision 1.127
diff -C2 -r1.126 -r1.127
*** configure	2000/07/12 03:02:43	1.126
--- configure	2000/07/12 05:05:06	1.127
***************
*** 1,5 ****
  #! /bin/sh
  
! # From configure.in Revision: 1.135 
  
  # Guess values for system-dependent variables and create Makefiles.
--- 1,5 ----
  #! /bin/sh
  
! # From configure.in Revision: 1.136 
  
  # Guess values for system-dependent variables and create Makefiles.
***************
*** 5605,5637 ****
  echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6
  echo "configure:5607: checking whether right shift extends the sign bit" >&5
  if test "$cross_compiling" = yes; then
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 5612 "configure"
  #include "confdefs.h"
  
  int main()
  {
! 	return ((-1)>>3 == -1) ? 1 : 0;
  }
  
  EOF
! if { (eval echo configure:5621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
!   cat >> confdefs.h <<\EOF
! #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
! EOF
! 
!  echo "$ac_t""yes" 1>&6
  else
    echo "configure: failed program was:" >&5
    cat conftest.$ac_ext >&5
    rm -fr conftest*
!   echo "$ac_t""no" 1>&6
  fi
  rm -fr conftest*
  fi
  
  
  # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
--- 5605,5648 ----
  echo $ac_n "checking whether right shift extends the sign bit""... $ac_c" 1>&6
  echo "configure:5607: checking whether right shift extends the sign bit" >&5
+ if eval "test \"`echo '$''{'ac_cv_rshift_extends_sign'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
  if test "$cross_compiling" = yes; then
      { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
  else
    cat > conftest.$ac_ext <<EOF
! #line 5616 "configure"
  #include "confdefs.h"
  
  int main()
  {
! 	exit(((-1)>>3 == -1) ? 0 : 1);
  }
  
  EOF
! if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  then
!   ac_cv_rshift_extends_sign=yes
  else
    echo "configure: failed program was:" >&5
    cat conftest.$ac_ext >&5
    rm -fr conftest*
!   ac_cv_rshift_extends_sign=no
  fi
  rm -fr conftest*
  fi
  
+ fi
+ 
+ echo "$ac_t""$ac_cv_rshift_extends_sign" 1>&6
+ if test "$ac_cv_rshift_extends_sign" = no
+ then
+   cat >> confdefs.h <<\EOF
+ #define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1
+ EOF
+ 
+ fi
+ 
  
  # THIS MUST BE LAST, IT CAN BREAK OTHER TESTS!
***************
*** 5643,5652 ****
  EOF
  echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
! echo "configure:5646: checking for socklen_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5651 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
--- 5654,5663 ----
  EOF
  echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
! echo "configure:5657: checking for socklen_t" >&5
  if eval "test \"`echo '$''{'ac_cv_type_socklen_t'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
  else
    cat > conftest.$ac_ext <<EOF
! #line 5662 "configure"
  #include "confdefs.h"
  #include <sys/types.h>