summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-09-09 14:24:16 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-09-09 14:24:16 (GMT)
commit94717ed1d4e8c361656cfdfa16ccc3364073cde8 (patch)
tree92375465d0300e79d6d6d815d919e6a4efcb4f78 /configure.in
parentdf453fd02650913a081d7b9403e62bbbabc9d29b (diff)
downloadcpython-94717ed1d4e8c361656cfdfa16ccc3364073cde8.zip
cpython-94717ed1d4e8c361656cfdfa16ccc3364073cde8.tar.gz
cpython-94717ed1d4e8c361656cfdfa16ccc3364073cde8.tar.bz2
Patch #606592: Subsecond timestamps in stat_result.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index ba5fee2..57924e8 100644
--- a/configure.in
+++ b/configure.in
@@ -2240,6 +2240,23 @@ then
[Define if nice() returns success/failure instead of the new priority.])
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)
AC_CACHE_VAL(ac_cv_mvwdelch_is_expression,