From 359ae58ea20486d18104a0945a02f1ffde8f173a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 2 Aug 1998 16:15:17 +0000 Subject: [PATCH] from Paul Eggert --- m4/st_mtim.m4 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 m4/st_mtim.m4 diff --git a/m4/st_mtim.m4 b/m4/st_mtim.m4 new file mode 100644 index 000000000..2de9649cc --- /dev/null +++ b/m4/st_mtim.m4 @@ -0,0 +1,14 @@ +#serial 1 + +dnl From Paul Eggert. + +# Define HAVE_ST_MTIM if struct stat has an st_mtim member. + +AC_DEFUN(AC_STRUCT_ST_MTIM, + [AC_CACHE_CHECK([for st_mtim in struct stat], ac_cv_struct_st_mtim, + [AC_TRY_COMPILE([#include +#include ], [struct stat s; s.st_mtim;], + ac_cv_struct_st_mtim=yes, ac_cv_struct_st_mtim=no)]) + if test $ac_cv_struct_st_mtim = yes; then + AC_DEFINE(HAVE_ST_MTIM) + fi]) -- 2.11.0