[Python-checkins] python/dist/src configure,1.279.6.5,1.279.6.6 configure.in,1.288.6.5,1.288.6.6

loewis@users.sourceforge.net loewis@users.sourceforge.net
Sun, 02 Jun 2002 10:34:50 -0700


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

Modified Files:
      Tag: release22-maint
	configure configure.in 
Log Message:
Run gcc with -w to work-around an autoconf 2.13 bug. Fixes #535545.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.279.6.5
retrieving revision 1.279.6.6
diff -C2 -d -r1.279.6.5 -r1.279.6.6
*** configure	18 Apr 2002 14:55:05 -0000	1.279.6.5
--- configure	2 Jun 2002 17:34:45 -0000	1.279.6.6
***************
*** 1,5 ****
  #! /bin/sh
  
! # From configure.in Revision: 1.288.6.4 
  
  # Guess values for system-dependent variables and create Makefiles.
--- 1,5 ----
  #! /bin/sh
  
! # From configure.in Revision: 1.288.6.5 
  
[...4224 lines suppressed...]
  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 7512 "configure"
  #include "confdefs.h"
  #include <sys/types.h>
***************
*** 7547,7551 ****
  SRCDIRS="Parser Grammar Objects Python Modules"
  echo $ac_n "checking for build directories""... $ac_c" 1>&6
! echo "configure:7550: checking for build directories" >&5
  for dir in $SRCDIRS; do
      if test ! -d $dir; then
--- 7565,7569 ----
  SRCDIRS="Parser Grammar Objects Python Modules"
  echo $ac_n "checking for build directories""... $ac_c" 1>&6
! echo "configure:7568: checking for build directories" >&5
  for dir in $SRCDIRS; do
      if test ! -d $dir; then

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.288.6.5
retrieving revision 1.288.6.6
diff -C2 -d -r1.288.6.5 -r1.288.6.6
*** configure.in	18 Apr 2002 14:55:08 -0000	1.288.6.5
--- configure.in	2 Jun 2002 17:34:47 -0000	1.288.6.6
***************
*** 521,524 ****
--- 521,536 ----
  # checks for header files
  AC_HEADER_STDC
+ 
+ # If the compiler generates any stderr on these tests, the header file
+ # is considered absent. On some systems, gcc will produce warnings for
+ # some of the headers (Redhat 6 if kernel headers don't match glibc
+ # headers). Thus, disable warnings. This can go away if autoconf 2.50
+ # is used, since it considers the gcc status to determine errors.
+ if test $GCC == yes
+ then
+    CPPFLAGS_save=$CPPFLAGS
+    CPPFLAGS="$CPPFLAGS -w"
+ fi
+ 
  AC_CHECK_HEADERS(dlfcn.h fcntl.h grp.h limits.h langinfo.h locale.h \
  ncurses.h poll.h pthread.h \
***************
*** 528,531 ****
--- 540,549 ----
  sys/un.h sys/utsname.h sys/wait.h pty.h term.h libutil.h \
  ndbm.h db1/ndbm.h gdbm/ndbm.h sys/resource.h netpacket/packet.h)
+ 
+ if test $GCC == yes
+ then
+    CPPFLAGS=$CPPFLAGS_save
+ fi
+ 
  AC_HEADER_DIRENT