[Python-checkins] python/dist/src configure,1.318,1.319 configure.in,1.328,1.329
jhylton@users.sourceforge.net
jhylton@users.sourceforge.net
Wed, 17 Jul 2002 09:31:06 -0700
Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv17711
Modified Files:
configure configure.in
Log Message:
staticforward bites the dust.
The staticforward define was needed to support certain broken C
compilers (notably SCO ODT 3.0, perhaps early AIX as well) botched the
static keyword when it was used with a forward declaration of a static
initialized structure. Standard C allows the forward declaration with
static, and we've decided to stop catering to broken C compilers. (In
fact, we expect that the compilers are all fixed eight years later.)
I'm leaving staticforward and statichere defined in object.h as
static. This is only for backwards compatibility with C extensions
that might still use it.
XXX I haven't updated the documentation.
Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.318
retrieving revision 1.319
diff -C2 -d -r1.318 -r1.319
*** configure 8 Jul 2002 14:47:12 -0000 1.318
--- configure 17 Jul 2002 16:30:32 -0000 1.319
***************
*** 1,4 ****
#! /bin/sh
! # From configure.in Revision: 1.327 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
--- 1,4 ----
#! /bin/sh
! # From configure.in Revision: 1.328 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
***************
*** 13774,13835 ****
fi
rm -f conftest.$ac_objext conftest.$ac_ext
-
- echo "$as_me:$LINENO: checking for bad static forward" >&5
- echo $ECHO_N "checking for bad static forward... $ECHO_C" >&6
- if test "${ac_cv_bad_static_forward+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_bad_static_forward=no
- else
- cat >conftest.$ac_ext <<_ACEOF
- #line $LINENO "configure"
- #include "confdefs.h"
-
- struct s { int a; int b; };
- static struct s foo;
- int foobar() {
- static int random;
- random = (int) &foo;
- return random;
- }
- static struct s foo = { 1, 2 };
- main() {
- exit(!((int)&foo == foobar()));
- }
- _ACEOF
- rm -f conftest$ac_exeext
- if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_bad_static_forward=no
- else
- echo "$as_me: program exited with status $ac_status" >&5
- echo "$as_me: failed program was:" >&5
- cat conftest.$ac_ext >&5
- ( exit $ac_status )
- ac_cv_bad_static_forward=yes
- fi
- rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
- fi
- fi
-
- echo "$as_me:$LINENO: result: $ac_cv_bad_static_forward" >&5
- echo "${ECHO_T}$ac_cv_bad_static_forward" >&6
- if test "$ac_cv_bad_static_forward" = yes
- then
-
- cat >>confdefs.h <<\_ACEOF
- #define BAD_STATIC_FORWARD 1
- _ACEOF
-
- fi
va_list_is_array=no
--- 13774,13777 ----
Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.328
retrieving revision 1.329
diff -C2 -d -r1.328 -r1.329
*** configure.in 8 Jul 2002 14:46:55 -0000 1.328
--- configure.in 17 Jul 2002 16:30:34 -0000 1.329
***************
*** 1897,1925 ****
AC_MSG_RESULT(no))
- AC_MSG_CHECKING(for bad static forward)
- AC_CACHE_VAL(ac_cv_bad_static_forward,
- [AC_TRY_RUN([
- struct s { int a; int b; };
- static struct s foo;
- int foobar() {
- static int random;
- random = (int) &foo;
- return random;
- }
- static struct s foo = { 1, 2 };
- 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
- then
- AC_DEFINE(BAD_STATIC_FORWARD, 1,
- [Define if your compiler botches static forward declarations
- (as it does on SCI ODT 3.0)])
- fi
-
va_list_is_array=no
AC_MSG_CHECKING(whether va_list is an array)
--- 1897,1900 ----