warnings: fix compilation with old autoconf
[gnulib/ericb.git] / m4 / localtime-buffer.m4
blob3965b5d9f2bddad212f1f841e7f7755f8a118dfd
1 # localtime-buffer.m4 serial 1
2 dnl Copyright (C) 2017 Free Software Foundation, Inc.
3 dnl This file is free software; the Free Software Foundation
4 dnl gives unlimited permission to copy and/or distribute it,
5 dnl with or without modifications, as long as this notice is preserved.
7 AC_DEFUN([gl_LOCALTIME_BUFFER_DEFAULTS],
9   NEED_LOCALTIME_BUFFER=0
12 dnl Macro invoked from other modules, to signal that the compilation of
13 dnl module 'localtime-buffer' is needed.
14 AC_DEFUN([gl_LOCALTIME_BUFFER_NEEDED],
16   AC_REQUIRE([gl_LOCALTIME_BUFFER_DEFAULTS])
17   AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS])
18   NEED_LOCALTIME_BUFFER=1
19   REPLACE_GMTIME=1
20   REPLACE_LOCALTIME=1