From 16c3e636a68cf74386d3d4d582a3a189b84d700c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 30 Jan 2011 15:34:18 -0800 Subject: strftime: import from gnulib --- m4/strftime.m4 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 m4/strftime.m4 (limited to 'm4/strftime.m4') diff --git a/m4/strftime.m4 b/m4/strftime.m4 new file mode 100644 index 00000000000..d9de341bf6d --- /dev/null +++ b/m4/strftime.m4 @@ -0,0 +1,30 @@ +# serial 32 + +# Copyright (C) 1996-1997, 1999-2007, 2009-2011 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# Written by Jim Meyering and Paul Eggert. + +AC_DEFUN([gl_FUNC_GNU_STRFTIME], +[ + gl_FUNC_STRFTIME +]) + +# These are the prerequisite macros for GNU's strftime.c replacement. +AC_DEFUN([gl_FUNC_STRFTIME], +[ + AC_LIBOBJ([strftime]) + + # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. + AC_REQUIRE([AC_STRUCT_TIMEZONE]) + + AC_REQUIRE([gl_TM_GMTOFF]) + + AC_CHECK_FUNCS_ONCE([tzset]) + + AC_DEFINE([my_strftime], [nstrftime], + [Define to the name of the strftime replacement function.]) +]) -- cgit v1.2.3