[Python-checkins] CVS: python/dist/src configure,1.251,1.252 configure.in,1.259,1.260

Guido van Rossum gvanrossum@users.sourceforge.net
Sun, 16 Sep 2001 21:03:17 -0700


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

Modified Files:
	configure configure.in 
Log Message:
Add cross-compilation defaults to most AC_TRY_RUN values.  The
supplied values are the most "normal" or "common" values found for
recent 32 bit machines.  This now seems to work to build Python 2.2
for the ARM processor used on the iPAQ.



Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.251
retrieving revision 1.252
diff -C2 -d -r1.251 -r1.252
*** configure	2001/09/11 14:41:54	1.251
--- configure	2001/09/17 04:03:14	1.252
***************
*** 1,5 ****
  #! /bin/sh
  
! # From configure.in Revision: 1.258 
  
  # Guess values for system-dependent variables and create Makefiles.
--- 1,5 ----
  #! /bin/sh
  
! # From configure.in Revision: 1.260 
  
  # Guess values for system-dependent variables and create Makefiles.
***************
*** 1680,1684 ****
  CC="$CC -OPT:Olimit=0"
  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
--- 1680,1684 ----
  CC="$CC -OPT:Olimit=0"
  if test "$cross_compiling" = yes; then
!   ac_cv_opt_olimit_ok=no
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 1717,1721 ****
    CC="$CC -Olimit 1500"
    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
--- 1717,1721 ----
    CC="$CC -Olimit 1500"
    if test "$cross_compiling" = yes; then
!   ac_cv_olimit_ok=no
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2319,2323 ****
  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
--- 2319,2323 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_int=4
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2358,2362 ****
  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
--- 2358,2362 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_long=4
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2397,2401 ****
  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
--- 2397,2401 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_void_p=4
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2436,2440 ****
  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
--- 2436,2440 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_char=1
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2475,2479 ****
  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
--- 2475,2479 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_short=2
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2514,2518 ****
  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
--- 2514,2518 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_float=4
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2553,2557 ****
  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
--- 2553,2557 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_double=8
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2592,2596 ****
  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
--- 2592,2596 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_fpos_t=4
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2656,2660 ****
  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
--- 2656,2660 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_long_long=8
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2721,2725 ****
  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
--- 2721,2725 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_uintptr_t=4
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2763,2767 ****
  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
--- 2763,2767 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_off_t=4
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2820,2824 ****
  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
--- 2820,2824 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_time_t=4
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 2890,2894 ****
  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
--- 2890,2894 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_pthread_t=4
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 4056,4060 ****
  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
--- 4056,4060 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_pthread_system_supported=no
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 6096,6100 ****
  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
--- 6096,6100 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_bad_static_forward=no
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 6648,6652 ****
  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
--- 6648,6652 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_malloc_zero=nonnull
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 6683,6687 ****
  
  fi
! 
  echo "$ac_t""$ac_cv_malloc_zero" 1>&6
  if test "$ac_cv_malloc_zero" = null
--- 6683,6687 ----
  
  fi
!  # XXX arm cross-compile?
  echo "$ac_t""$ac_cv_malloc_zero" 1>&6
  if test "$ac_cv_malloc_zero" = null
***************
*** 6742,6746 ****
  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
--- 6742,6746 ----
  else
    if test "$cross_compiling" = yes; then
!   ac_cv_sizeof_wchar_t=4
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 6952,6956 ****
    
  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
--- 6952,6956 ----
    
  if test "$cross_compiling" = yes; then
!   ac_cv_rshift_extends_sign=yes
  else
    cat > conftest.$ac_ext <<EOF
***************
*** 7080,7084 ****
    
  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
--- 7080,7084 ----
    
  if test "$cross_compiling" = yes; then
!   ac_cv_broken_nice=no
  else
    cat > conftest.$ac_ext <<EOF

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.259
retrieving revision 1.260
diff -C2 -d -r1.259 -r1.260
*** configure.in	2001/09/11 14:41:54	1.259
--- configure.in	2001/09/17 04:03:14	1.260
***************
*** 381,384 ****
--- 381,385 ----
  AC_TRY_RUN([int main() { return 0; }],
    ac_cv_opt_olimit_ok=yes,
+   ac_cv_opt_olimit_ok=no,
    ac_cv_opt_olimit_ok=no)
  CC="$ac_save_cc"])
***************
*** 396,399 ****
--- 397,401 ----
    AC_TRY_RUN([int main() { return 0; }],
      ac_cv_olimit_ok=yes,
+     ac_cv_olimit_ok=no,
      ac_cv_olimit_ok=no)
    CC="$ac_save_cc"])
***************
*** 469,480 ****
  
  # Sizes of various common basic types
! AC_CHECK_SIZEOF(int)
! AC_CHECK_SIZEOF(long)
! AC_CHECK_SIZEOF(void *)
! AC_CHECK_SIZEOF(char)
! AC_CHECK_SIZEOF(short)
! AC_CHECK_SIZEOF(float)
! AC_CHECK_SIZEOF(double)
! AC_CHECK_SIZEOF(fpos_t)
  
  AC_MSG_CHECKING(for long long support)
--- 471,482 ----
  
  # Sizes of various common basic types
! AC_CHECK_SIZEOF(int, 4)
! AC_CHECK_SIZEOF(long, 4)
! AC_CHECK_SIZEOF(void *, 4)
! AC_CHECK_SIZEOF(char, 1)
! AC_CHECK_SIZEOF(short, 2)
! AC_CHECK_SIZEOF(float, 4)
! AC_CHECK_SIZEOF(double, 8)
! AC_CHECK_SIZEOF(fpos_t, 4)
  
  AC_MSG_CHECKING(for long long support)
***************
*** 483,487 ****
  AC_MSG_RESULT($have_long_long)
  if test "$have_long_long" = yes ; then
! AC_CHECK_SIZEOF(long long)
  fi
  
--- 485,489 ----
  AC_MSG_RESULT($have_long_long)
  if test "$have_long_long" = yes ; then
! AC_CHECK_SIZEOF(long long, 8)
  fi
  
***************
*** 491,495 ****
  AC_MSG_RESULT($have_uintptr_t)
  if test "$have_uintptr_t" = yes ; then
! AC_CHECK_SIZEOF(uintptr_t)
  fi
  
--- 493,497 ----
  AC_MSG_RESULT($have_uintptr_t)
  if test "$have_uintptr_t" = yes ; then
! AC_CHECK_SIZEOF(uintptr_t, 4)
  fi
  
***************
*** 505,509 ****
    fprintf(f, "%d\n", sizeof(off_t));
    exit(0);
! }], ac_cv_sizeof_off_t=`cat conftestval`, ac_cv_sizeof_off_t=0)
  ])
  AC_MSG_RESULT($ac_cv_sizeof_off_t)
--- 507,514 ----
    fprintf(f, "%d\n", sizeof(off_t));
    exit(0);
! }],
! ac_cv_sizeof_off_t=`cat conftestval`,
! ac_cv_sizeof_off_t=0,
! ac_cv_sizeof_off_t=4)
  ])
  AC_MSG_RESULT($ac_cv_sizeof_off_t)
***************
*** 531,535 ****
    fprintf(f, "%d\n", sizeof(time_t));
    exit(0);
! }], ac_cv_sizeof_time_t=`cat conftestval`, ac_cv_sizeof_time_t=0)
  ])
  AC_MSG_RESULT($ac_cv_sizeof_time_t)
--- 536,543 ----
    fprintf(f, "%d\n", sizeof(time_t));
    exit(0);
! }],
! ac_cv_sizeof_time_t=`cat conftestval`,
! ac_cv_sizeof_time_t=0,
! ac_cv_sizeof_time_t=4)
  ])
  AC_MSG_RESULT($ac_cv_sizeof_time_t)
***************
*** 558,562 ****
      fprintf(f, "%d\n", sizeof(pthread_t));
      exit(0);
!   }], ac_cv_sizeof_pthread_t=`cat conftestval`, ac_cv_sizeof_pthread_t=0)
    ])
    AC_MSG_RESULT($ac_cv_sizeof_pthread_t)
--- 566,573 ----
      fprintf(f, "%d\n", sizeof(pthread_t));
      exit(0);
!   }],
!   ac_cv_sizeof_pthread_t=`cat conftestval`,
!   ac_cv_sizeof_pthread_t=0,
!   ac_cv_sizeof_pthread_t=4)
    ])
    AC_MSG_RESULT($ac_cv_sizeof_pthread_t)
***************
*** 994,998 ****
          if (pthread_create(NULL, &attr, foo, NULL)) exit(-1);
          exit(0);
!       }], ac_cv_pthread_system_supported=yes, ac_cv_pthread_system_supported=no)
        ])
        AC_MSG_RESULT($ac_cv_pthread_system_supported)
--- 1005,1012 ----
          if (pthread_create(NULL, &attr, foo, NULL)) exit(-1);
          exit(0);
!       }],
!       ac_cv_pthread_system_supported=yes,
!       ac_cv_pthread_system_supported=no,
!       ac_cv_pthread_system_supported=no)
        ])
        AC_MSG_RESULT($ac_cv_pthread_system_supported)
***************
*** 1549,1553 ****
  main() {
   exit(!((int)&foo == foobar()));
! }], ac_cv_bad_static_forward=no, ac_cv_bad_static_forward=yes)])
  AC_MSG_RESULT($ac_cv_bad_static_forward)
  if test "$ac_cv_bad_static_forward" = yes
--- 1563,1570 ----
  main() {
   exit(!((int)&foo == foobar()));
! }],
! ac_cv_bad_static_forward=no,
! ac_cv_bad_static_forward=yes,
! ac_cv_bad_static_forward=no)])
  AC_MSG_RESULT($ac_cv_bad_static_forward)
  if test "$ac_cv_bad_static_forward" = yes
***************
*** 1711,1715 ****
  	free(p);
  	exit(0);
! }], ac_cv_malloc_zero=nonnull, ac_cv_malloc_zero=null)])
  AC_MSG_RESULT($ac_cv_malloc_zero)
  if test "$ac_cv_malloc_zero" = null
--- 1728,1735 ----
  	free(p);
  	exit(0);
! }],
! ac_cv_malloc_zero=nonnull,
! ac_cv_malloc_zero=null,
! ac_cv_malloc_zero=nonnull)]) # XXX arm cross-compile?
  AC_MSG_RESULT($ac_cv_malloc_zero)
  if test "$ac_cv_malloc_zero" = null
***************
*** 1727,1731 ****
  if test "$wchar_h" = yes
  then
!   AC_CHECK_SIZEOF(wchar_t)
  fi
  
--- 1747,1751 ----
  if test "$wchar_h" = yes
  then
!   AC_CHECK_SIZEOF(wchar_t, 4)
  fi
  
***************
*** 1788,1792 ****
  	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
--- 1808,1815 ----
  	exit(((-1)>>3 == -1) ? 0 : 1);
  }
! ],
! ac_cv_rshift_extends_sign=yes,
! ac_cv_rshift_extends_sign=no,
! ac_cv_rshift_extends_sign=yes)])
  AC_MSG_RESULT($ac_cv_rshift_extends_sign)
  if test "$ac_cv_rshift_extends_sign" = no
***************
*** 1824,1828 ****
  	exit(1);
  }
! ],ac_cv_broken_nice=yes, ac_cv_broken_nice=no)])
  AC_MSG_RESULT($ac_cv_broken_nice)
  if test "$ac_cv_broken_nice" = yes
--- 1847,1854 ----
  	exit(1);
  }
! ],
! ac_cv_broken_nice=yes,
! ac_cv_broken_nice=no,
! ac_cv_broken_nice=no)])
  AC_MSG_RESULT($ac_cv_broken_nice)
  if test "$ac_cv_broken_nice" = yes