[Python-checkins] python/dist/src configure,1.330,1.331 configure.in,1.341,1.342 pyconfig.h.in,1.47,1.48

loewis@users.sourceforge.net loewis@users.sourceforge.net
Mon, 09 Sep 2002 07:24:18 -0700


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

Modified Files:
	configure configure.in pyconfig.h.in 
Log Message:
Patch #606592: Subsecond timestamps in stat_result.


Index: configure
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure,v
retrieving revision 1.330
retrieving revision 1.331
diff -C2 -d -r1.330 -r1.331
*** configure	15 Aug 2002 13:56:35 -0000	1.330
--- configure	9 Sep 2002 14:24:13 -0000	1.331
***************
*** 1,4 ****
  #! /bin/sh
! # From configure.in Revision: 1.339 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53.
--- 1,4 ----
  #! /bin/sh
! # From configure.in Revision: 1.341 .
  # Guess values for system-dependent variables and create Makefiles.
  # Generated by GNU Autoconf 2.53.
***************
*** 15696,15699 ****
--- 15696,15758 ----
  cat >>confdefs.h <<\_ACEOF
  #define HAVE_BROKEN_NICE 1
+ _ACEOF
+ 
+ fi
+ 
+ # Look for subsecond timestamps in struct stat
+ echo "$as_me:$LINENO: checking for tv_nsec in struct stat" >&5
+ echo $ECHO_N "checking for tv_nsec in struct stat... $ECHO_C" >&6
+ if test "${ac_cv_stat_tv_nsec+set}" = set; then
+   echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+   cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+ #include <sys/stat.h>
+ #ifdef F77_DUMMY_MAIN
+ #  ifdef __cplusplus
+      extern "C"
+ #  endif
+    int F77_DUMMY_MAIN() { return 1; }
+ #endif
+ int
+ main ()
+ {
+ 
+ struct stat st;
+ st.st_mtim.tv_nsec = 1;
+ 
+   ;
+   return 0;
+ }
+ _ACEOF
+ rm -f conftest.$ac_objext
+ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+   (eval $ac_compile) 2>&5
+   ac_status=$?
+   echo "$as_me:$LINENO: \$? = $ac_status" >&5
+   (exit $ac_status); } &&
+          { ac_try='test -s conftest.$ac_objext'
+   { (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_stat_tv_nsec = yes
+ else
+   echo "$as_me: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ ac_cv_stat_tv_nsec=no
+ fi
+ rm -f conftest.$ac_objext conftest.$ac_ext
+ fi
+ 
+ echo "$as_me:$LINENO: result: $ac_cv_stat_tv_nsec" >&5
+ echo "${ECHO_T}$ac_cv_stat_tv_nsec" >&6
+ if test "$ac_cv_stat_tv_nsec" = yes
+ then
+ 
+ cat >>confdefs.h <<\_ACEOF
+ #define HAVE_STAT_TV_NSEC 1
  _ACEOF
  

Index: configure.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/configure.in,v
retrieving revision 1.341
retrieving revision 1.342
diff -C2 -d -r1.341 -r1.342
*** configure.in	15 Aug 2002 13:56:06 -0000	1.341
--- configure.in	9 Sep 2002 14:24:15 -0000	1.342
***************
*** 2241,2244 ****
--- 2241,2261 ----
  fi
  
+ # Look for subsecond timestamps in struct stat
+ AC_MSG_CHECKING(for tv_nsec in struct stat)
+ AC_CACHE_VAL(ac_cv_stat_tv_nsec,
+ AC_TRY_COMPILE([#include <sys/stat.h>], [
+ struct stat st;
+ st.st_mtim.tv_nsec = 1;
+ ],
+ ac_cv_stat_tv_nsec = yes,
+ ac_cv_stat_tv_nsec=no,
+ ac_cv_stat_tv_nsec=no))
+ AC_MSG_RESULT($ac_cv_stat_tv_nsec)
+ if test "$ac_cv_stat_tv_nsec" = yes
+ then
+   AC_DEFINE(HAVE_STAT_TV_NSEC, 1,
+   [Define if you have struct stat.st_mtim.tv_nsec])
+ fi
+ 
  # On HP/UX 11.0, mvwdelch is a block with a return statement
  AC_MSG_CHECKING(whether mvwdelch is an expression)

Index: pyconfig.h.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/pyconfig.h.in,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** pyconfig.h.in	30 Jul 2002 01:08:28 -0000	1.47
--- pyconfig.h.in	9 Sep 2002 14:24:15 -0000	1.48
***************
*** 389,392 ****
--- 389,395 ----
  #undef HAVE_STATVFS
  
+ /* Define if you have struct stat.st_mtim.tv_nsec */
+ #undef HAVE_STAT_TV_NSEC
+ 
  /* Define to 1 if you have the <stdarg.h> header file. */
  #undef HAVE_STDARG_H