+2020-08-14 Bruno Haible <bruno@clisp.org>
+
+ utime-h: Generate an utime.h file always.
+ * modules/utime-h (Makefile.am): Generate utime.h always.
+ * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
+ GL_GENERATE_UTIME_H.
+
2020-08-14 Bruno Haible <bruno@clisp.org>
mktime, mktime-internal: Remove obsolete code.
-# utime_h.m4 serial 3
+# utime_h.m4 serial 4
dnl Copyright (C) 2017-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
fi
AC_SUBST([HAVE_UTIME_H])
- m4_ifdef([gl_POSIXCHECK],
- [UTIME_H=utime.h],
- [UTIME_H=''
- if m4_ifdef([gl_ANSI_CXX], [test "$CXX" != no], [false]); then
- dnl Override <utime.h> always, to support the C++ GNULIB_NAMESPACE.
- UTIME_H=utime.h
- else
- if test $ac_cv_header_utime_h != yes; then
- dnl Provide a substitute <utime.h> file.
- UTIME_H=utime.h
- else
- case "$host_os" in
- mingw*) dnl Need special handling of 'struct utimbuf'.
- UTIME_H=utime.h
- ;;
- esac
- fi
- fi
- ])
- AC_SUBST([UTIME_H])
- AM_CONDITIONAL([GL_GENERATE_UTIME_H], [test -n "$UTIME_H"])
-
dnl Check for declarations of anything we want to poison if the
dnl corresponding gnulib module is not in use.
gl_WARN_ON_USE_PREPARE([[#include <utime.h>
gl_UTIME_H
Makefile.am:
-BUILT_SOURCES += $(UTIME_H)
+BUILT_SOURCES += utime.h
# We need the following in order to create <utime.h> when the system
# doesn't have one that works with the given compiler.
-if GL_GENERATE_UTIME_H
utime.h: utime.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
$(AM_V_GEN)rm -f $@-t $@ && \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
< $(srcdir)/utime.in.h; \
} > $@-t && \
mv $@-t $@
-else
-utime.h: $(top_builddir)/config.status
- rm -f $@
-endif
MOSTLYCLEANFILES += utime.h utime.h-t
Include: