An independent .m4 file for each module.
[gnulib.git] / m4 / utime.m4
1 #serial 4
2
3 dnl From Jim Meyering
4 dnl Replace the utime function on systems that need it.
5
6 dnl FIXME
7
8 AC_DEFUN([jm_FUNC_UTIME],
9 [
10   AC_REQUIRE([AC_FUNC_UTIME_NULL])
11   if test $ac_cv_func_utime_null = no; then
12     AC_LIBOBJ(utime)
13     gl_PREREQ_UTIME
14   fi
15 ])
16
17 # Prerequisites of lib/utime.c.
18 AC_DEFUN([gl_PREREQ_UTIME],
19 [
20   AC_CHECK_HEADERS_ONCE(utime.h)
21   AC_REQUIRE([jm_CHECK_TYPE_STRUCT_UTIMBUF])
22   jm_FUNC_UTIMES_NULL
23 ])