annotate m4/utime.m4 @ 40244:c39a0edd90d7

fts: minor simplification * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 17 Mar 2019 12:39:50 -0700
parents b06060465f09
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
18832
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 # utime.m4 serial 1
40057
b06060465f09 maint: Run 'make update-copyright'
Paul Eggert <eggert@cs.ucla.edu>
parents: 19484
diff changeset
2 dnl Copyright (C) 2017-2019 Free Software Foundation, Inc.
18832
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 dnl This file is free software; the Free Software Foundation
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 dnl gives unlimited permission to copy and/or distribute it,
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 dnl with or without modifications, as long as this notice is preserved.
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 AC_DEFUN([gl_FUNC_UTIME],
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 [
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 AC_REQUIRE([gl_UTIME_H_DEFAULTS])
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 AC_REQUIRE([AC_CANONICAL_HOST])
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 AC_CHECK_FUNCS_ONCE([utime])
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 if test $ac_cv_func_utime = no; then
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 HAVE_UTIME=0
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 else
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 case "$host_os" in
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 mingw*)
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 dnl On this platform, the original utime() or _utime() produces
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 dnl timestamps that are affected by the time zone.
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 REPLACE_UTIME=1
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 ;;
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 esac
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 fi
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 ])
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 # Prerequisites of lib/utime.c.
99fa25ea15a5 utime: New module.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 AC_DEFUN([gl_PREREQ_UTIME], [:])