3 # Copyright (C) 1996-1997, 1999-2007, 2009-2020 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # Written by Jim Meyering and Paul Eggert.
11 AC_DEFUN([gl_FUNC_GNU_STRFTIME],
13 AC_REQUIRE([AC_C_RESTRICT])
15 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
16 AC_REQUIRE([AC_STRUCT_TIMEZONE])
18 AC_REQUIRE([gl_TM_GMTOFF])
20 AC_CHECK_FUNCS_ONCE([tzset])
22 AC_DEFINE([my_strftime], [nstrftime],
23 [Define to the name of the strftime replacement function.])