4 dnl Replace the utime function on systems that need it.
6 # Copyright (C) 1998, 2000-2001, 2003-2004, 2009 Free Software Foundation, Inc.
7 # This file is free software; the Free Software Foundation
8 # gives unlimited permission to copy and/or distribute it,
9 # with or without modifications, as long as this notice is preserved.
13 AC_DEFUN([gl_FUNC_UTIME],
15 AC_REQUIRE([AC_FUNC_UTIME_NULL])
16 if test $ac_cv_func_utime_null = no; then
18 AC_DEFINE([utime], [rpl_utime],
19 [Define to rpl_utime if the replacement function should be used.])
24 # Prerequisites of lib/utime.c.
25 AC_DEFUN([gl_PREREQ_UTIME],
27 AC_CHECK_HEADERS_ONCE([utime.h])
28 AC_REQUIRE([gl_CHECK_TYPE_STRUCT_UTIMBUF])