view modules/parse-datetime @ 17335:840c32a600aa

getcwd: support coreutils better Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD, but this might not be correct in coreutils, which disables the raw decl checks. Problem reported by Nagendra in <http://bugs.gnu.org/10305#192>. * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD. * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Test the getcwd function, not any macro, since getcwd.c wants the function. * m4/getcwd.m4 (gl_FUNC_GETCWD): Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't compile, as might happen if there's a macro but no function.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 20 Feb 2013 00:04:35 -0800
parents 896628c568fa
children d15157ead8ae
line wrap: on
line source

Description:
Convert a date/time string to linear time.

Files:
doc/parse-datetime.texi
lib/parse-datetime.h
lib/parse-datetime.y
m4/bison.m4
m4/tm_gmtoff.m4
m4/parse-datetime.m4

Depends-on:
c-ctype
stdbool
gettime
intprops
mktime
setenv
unsetenv
time
verify
xalloc

configure.ac:
gl_PARSE_DATETIME

Makefile.am:
# This rule overrides the Automake generated .y.c rule, to ensure that the
# parse-datetime.c file gets generated in the source directory, not in the
# build directory.
parse-datetime.c: parse-datetime.y
	$(AM_V_GEN)$(SHELL) $(YLWRAP) $(srcdir)/parse-datetime.y \
	                              y.tab.c parse-datetime.c \
	                              y.tab.h parse-datetime.h \
	                              y.output parse-datetime.output \
	                              -- $(YACC) $(YFLAGS) $(AM_YFLAGS) && \
	mv parse-datetime.c parse-datetime.c-t && \
	mv parse-datetime.c-t $(srcdir)/parse-datetime.c
lib_SOURCES += parse-datetime.y
BUILT_SOURCES += parse-datetime.c
MOSTLYCLEANFILES += parse-datetime.c-t
MAINTAINERCLEANFILES += parse-datetime.c
EXTRA_DIST += parse-datetime.c

Include:
"parse-datetime.h"

License:
GPL

Maintainer:
Paul Eggert