Mercurial > hg > octave-lojdl > gnulib-hg
changeset 1456:c2cb9429bead
from Paul Eggert
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 02 Aug 1998 16:15:17 +0000 |
parents | 08b8008462f8 |
children | 952245f3c3af |
files | m4/st_mtim.m4 |
diffstat | 1 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /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 <sys/types.h> +#include <sys/stat.h>], [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])