aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorPaul Eggert2013-12-17 12:43:43 -0800
committerPaul Eggert2013-12-17 12:43:43 -0800
commite9ad5665ede9f7599b7b26a7e478fd3e56ddf36e (patch)
treece45512be929919b0c1e0c34bfb6dcb313c645aa /m4
parent2d6b6005bcf3cc4ece90c0d19a645ca3ae1940ea (diff)
downloademacs-e9ad5665ede9f7599b7b26a7e478fd3e56ddf36e.tar.gz
emacs-e9ad5665ede9f7599b7b26a7e478fd3e56ddf36e.zip
Merge from gnulib, incorporating:
2013-12-17 gettimeofday: port recent C++ fix to Emacs 2013-12-17 gettimeofday: fix C++ crosscompilation 2013-12-17 qacl: port to Windows better * lib/file-has-acl.c, lib/time.in.h, m4/gettimeofday.m4, m4/time_h.m4: Update from gnulib. * lib/gnulib.mk: Regenerate.
Diffstat (limited to 'm4')
-rw-r--r--m4/gettimeofday.m48
-rw-r--r--m4/time_h.m411
2 files changed, 13 insertions, 6 deletions
diff --git a/m4/gettimeofday.m4 b/m4/gettimeofday.m4
index 3c05e59f063..f48ef4365cd 100644
--- a/m4/gettimeofday.m4
+++ b/m4/gettimeofday.m4
@@ -1,4 +1,4 @@
1# serial 20 1# serial 21
2 2
3# Copyright (C) 2001-2003, 2005, 2007, 2009-2013 Free Software Foundation, Inc. 3# Copyright (C) 2001-2003, 2005, 2007, 2009-2013 Free Software Foundation, Inc.
4# This file is free software; the Free Software Foundation 4# This file is free software; the Free Software Foundation
@@ -127,10 +127,8 @@ AC_DEFUN([gl_FUNC_GETTIMEOFDAY_CLOBBER],
127]) 127])
128 128
129AC_DEFUN([gl_GETTIMEOFDAY_REPLACE_LOCALTIME], [ 129AC_DEFUN([gl_GETTIMEOFDAY_REPLACE_LOCALTIME], [
130 AC_DEFINE([gmtime], [rpl_gmtime], 130 REPLACE_GMTIME=1
131 [Define to rpl_gmtime if the replacement function should be used.]) 131 REPLACE_LOCALTIME=1
132 AC_DEFINE([localtime], [rpl_localtime],
133 [Define to rpl_localtime if the replacement function should be used.])
134]) 132])
135 133
136# Prerequisites of lib/gettimeofday.c. 134# Prerequisites of lib/gettimeofday.c.
diff --git a/m4/time_h.m4 b/m4/time_h.m4
index 3b839005346..3fefb01b215 100644
--- a/m4/time_h.m4
+++ b/m4/time_h.m4
@@ -2,7 +2,7 @@
2 2
3# Copyright (C) 2000-2001, 2003-2007, 2009-2013 Free Software Foundation, Inc. 3# Copyright (C) 2000-2001, 2003-2007, 2009-2013 Free Software Foundation, Inc.
4 4
5# serial 7 5# serial 8
6 6
7# This file is free software; the Free Software Foundation 7# This file is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it, 8# gives unlimited permission to copy and/or distribute it,
@@ -106,4 +106,13 @@ AC_DEFUN([gl_HEADER_TIME_H_DEFAULTS],
106 REPLACE_MKTIME=GNULIB_PORTCHECK; AC_SUBST([REPLACE_MKTIME]) 106 REPLACE_MKTIME=GNULIB_PORTCHECK; AC_SUBST([REPLACE_MKTIME])
107 REPLACE_NANOSLEEP=GNULIB_PORTCHECK; AC_SUBST([REPLACE_NANOSLEEP]) 107 REPLACE_NANOSLEEP=GNULIB_PORTCHECK; AC_SUBST([REPLACE_NANOSLEEP])
108 REPLACE_TIMEGM=GNULIB_PORTCHECK; AC_SUBST([REPLACE_TIMEGM]) 108 REPLACE_TIMEGM=GNULIB_PORTCHECK; AC_SUBST([REPLACE_TIMEGM])
109
110 dnl Hack so that the time module doesn't depend on the sys_time module.
111 dnl First, default GNULIB_GETTIMEOFDAY to 0 if sys_time is absent.
112 : ${GNULIB_GETTIMEOFDAY=0}; AC_SUBST([GNULIB_GETTIMEOFDAY])
113 dnl Second, it's OK to not use GNULIB_PORTCHECK for REPLACE_GMTIME
114 dnl and REPLACE_LOCALTIME, as portability to Solaris 2.6 and earlier
115 dnl is no longer a big deal.
116 REPLACE_GMTIME=0; AC_SUBST([REPLACE_GMTIME])
117 REPLACE_LOCALTIME=0; AC_SUBST([REPLACE_LOCALTIME])
109]) 118])