aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2017-09-29 21:55:32 -0700
committerPaul Eggert2017-09-29 21:56:21 -0700
commit3ab2f9bbb96d0425a9396e08b2f462de3fd7818d (patch)
treee650d013464a12567ec4ea5a137b25cdf6c1179c
parentcbc832448878f7bc7b226243abb8d8b1ae68a937 (diff)
downloademacs-3ab2f9bbb96d0425a9396e08b2f462de3fd7818d.tar.gz
emacs-3ab2f9bbb96d0425a9396e08b2f462de3fd7818d.zip
Merge from gnulib
This incorporates: 2017-09-28 string: code style 2017-09-25 sys_types: update URL 2017-09-23 install-sh: do not assume / = // 2017-09-21 mktime: port to OpenVMS * build-aux/install-sh, m4/mktime.m4, m4/string_h.m4: * m4/sys_types_h.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate.
-rwxr-xr-xbuild-aux/install-sh20
-rw-r--r--lib/gnulib.mk.in12
-rw-r--r--m4/mktime.m46
-rw-r--r--m4/string_h.m412
-rw-r--r--m4/sys_types_h.m44
5 files changed, 33 insertions, 21 deletions
diff --git a/build-aux/install-sh b/build-aux/install-sh
index 0360b79e7d0..ac159ceda40 100755
--- a/build-aux/install-sh
+++ b/build-aux/install-sh
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/bin/sh
2# install - install a program, script, or datafile 2# install - install a program, script, or datafile
3 3
4scriptversion=2016-01-11.22; # UTC 4scriptversion=2017-09-23.17; # UTC
5 5
6# This originates from X11R5 (mit/util/scripts/install.sh), which was 6# This originates from X11R5 (mit/util/scripts/install.sh), which was
7# later released in X11R6 (xc/config/util/install.sh) with the 7# later released in X11R6 (xc/config/util/install.sh) with the
@@ -271,15 +271,18 @@ do
271 fi 271 fi
272 dst=$dst_arg 272 dst=$dst_arg
273 273
274 # If destination is a directory, append the input filename; won't work 274 # If destination is a directory, append the input filename.
275 # if double slashes aren't ignored.
276 if test -d "$dst"; then 275 if test -d "$dst"; then
277 if test "$is_target_a_directory" = never; then 276 if test "$is_target_a_directory" = never; then
278 echo "$0: $dst_arg: Is a directory" >&2 277 echo "$0: $dst_arg: Is a directory" >&2
279 exit 1 278 exit 1
280 fi 279 fi
281 dstdir=$dst 280 dstdir=$dst
282 dst=$dstdir/`basename "$src"` 281 dstbase=`basename "$src"`
282 case $dst in
283 */) dst=$dst$dstbase;;
284 *) dst=$dst/$dstbase;;
285 esac
283 dstdir_status=0 286 dstdir_status=0
284 else 287 else
285 dstdir=`dirname "$dst"` 288 dstdir=`dirname "$dst"`
@@ -288,6 +291,11 @@ do
288 fi 291 fi
289 fi 292 fi
290 293
294 case $dstdir in
295 */) dstdirslash=$dstdir;;
296 *) dstdirslash=$dstdir/;;
297 esac
298
291 obsolete_mkdir_used=false 299 obsolete_mkdir_used=false
292 300
293 if test $dstdir_status != 0; then 301 if test $dstdir_status != 0; then
@@ -427,8 +435,8 @@ do
427 else 435 else
428 436
429 # Make a couple of temp file names in the proper directory. 437 # Make a couple of temp file names in the proper directory.
430 dsttmp=$dstdir/_inst.$$_ 438 dsttmp=${dstdirslash}_inst.$$_
431 rmtmp=$dstdir/_rm.$$_ 439 rmtmp=${dstdirslash}_rm.$$_
432 440
433 # Trap to clean up those temp files at exit. 441 # Trap to clean up those temp files at exit.
434 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 442 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in
index d8afec40bc6..0f795b3d820 100644
--- a/lib/gnulib.mk.in
+++ b/lib/gnulib.mk.in
@@ -2504,20 +2504,20 @@ string.h: string.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H
2504 -e 's|@''HAVE_DECL_STRERROR_R''@|$(HAVE_DECL_STRERROR_R)|g' \ 2504 -e 's|@''HAVE_DECL_STRERROR_R''@|$(HAVE_DECL_STRERROR_R)|g' \
2505 -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \ 2505 -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
2506 -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \ 2506 -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
2507 -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
2508 -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \ 2507 -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
2509 -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \ 2508 -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
2510 -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \ 2509 -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
2511 -e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \ 2510 -e 's|@''REPLACE_STRCHRNUL''@|$(REPLACE_STRCHRNUL)|g' \
2512 -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \ 2511 -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
2513 -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
2514 -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
2515 -e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \
2516 -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \ 2512 -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \
2517 -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \ 2513 -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \
2518 -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \ 2514 -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \
2519 -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \ 2515 -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
2516 -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
2520 -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \ 2517 -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
2518 -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
2519 -e 's|@''REPLACE_STRERROR_R''@|$(REPLACE_STRERROR_R)|g' \
2520 -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
2521 -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \ 2521 -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
2522 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ 2522 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
2523 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ 2523 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
diff --git a/m4/mktime.m4 b/m4/mktime.m4
index 85666844e2e..1461905fb93 100644
--- a/m4/mktime.m4
+++ b/m4/mktime.m4
@@ -1,4 +1,4 @@
1# serial 29 1# serial 30
2dnl Copyright (C) 2002-2003, 2005-2007, 2009-2017 Free Software Foundation, 2dnl Copyright (C) 2002-2003, 2005-2007, 2009-2017 Free Software Foundation,
3dnl Inc. 3dnl Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
@@ -55,6 +55,10 @@ AC_DEFUN([gl_FUNC_MKTIME_WORKS],
55# include <signal.h> 55# include <signal.h>
56#endif 56#endif
57 57
58#ifndef TIME_T_IS_SIGNED
59# define TIME_T_IS_SIGNED 0
60#endif
61
58/* Work around redefinition to rpl_putenv by other config tests. */ 62/* Work around redefinition to rpl_putenv by other config tests. */
59#undef putenv 63#undef putenv
60 64
diff --git a/m4/string_h.m4 b/m4/string_h.m4
index ac6311fba07..8c42cf1b851 100644
--- a/m4/string_h.m4
+++ b/m4/string_h.m4
@@ -5,7 +5,7 @@
5# gives unlimited permission to copy and/or distribute it, 5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved. 6# with or without modifications, as long as this notice is preserved.
7 7
8# serial 21 8# serial 22
9 9
10# Written by Paul Eggert. 10# Written by Paul Eggert.
11 11
@@ -107,16 +107,16 @@ AC_DEFUN([gl_HEADER_STRING_H_DEFAULTS],
107 REPLACE_MEMCHR=0; AC_SUBST([REPLACE_MEMCHR]) 107 REPLACE_MEMCHR=0; AC_SUBST([REPLACE_MEMCHR])
108 REPLACE_MEMMEM=0; AC_SUBST([REPLACE_MEMMEM]) 108 REPLACE_MEMMEM=0; AC_SUBST([REPLACE_MEMMEM])
109 REPLACE_STPNCPY=0; AC_SUBST([REPLACE_STPNCPY]) 109 REPLACE_STPNCPY=0; AC_SUBST([REPLACE_STPNCPY])
110 REPLACE_STRCHRNUL=0; AC_SUBST([REPLACE_STRCHRNUL])
110 REPLACE_STRDUP=0; AC_SUBST([REPLACE_STRDUP]) 111 REPLACE_STRDUP=0; AC_SUBST([REPLACE_STRDUP])
112 REPLACE_STRNCAT=0; AC_SUBST([REPLACE_STRNCAT])
113 REPLACE_STRNDUP=0; AC_SUBST([REPLACE_STRNDUP])
114 REPLACE_STRNLEN=0; AC_SUBST([REPLACE_STRNLEN])
111 REPLACE_STRSTR=0; AC_SUBST([REPLACE_STRSTR]) 115 REPLACE_STRSTR=0; AC_SUBST([REPLACE_STRSTR])
112 REPLACE_STRCASESTR=0; AC_SUBST([REPLACE_STRCASESTR]) 116 REPLACE_STRCASESTR=0; AC_SUBST([REPLACE_STRCASESTR])
113 REPLACE_STRCHRNUL=0; AC_SUBST([REPLACE_STRCHRNUL]) 117 REPLACE_STRTOK_R=0; AC_SUBST([REPLACE_STRTOK_R])
114 REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR]) 118 REPLACE_STRERROR=0; AC_SUBST([REPLACE_STRERROR])
115 REPLACE_STRERROR_R=0; AC_SUBST([REPLACE_STRERROR_R]) 119 REPLACE_STRERROR_R=0; AC_SUBST([REPLACE_STRERROR_R])
116 REPLACE_STRNCAT=0; AC_SUBST([REPLACE_STRNCAT])
117 REPLACE_STRNDUP=0; AC_SUBST([REPLACE_STRNDUP])
118 REPLACE_STRNLEN=0; AC_SUBST([REPLACE_STRNLEN])
119 REPLACE_STRSIGNAL=0; AC_SUBST([REPLACE_STRSIGNAL]) 120 REPLACE_STRSIGNAL=0; AC_SUBST([REPLACE_STRSIGNAL])
120 REPLACE_STRTOK_R=0; AC_SUBST([REPLACE_STRTOK_R])
121 UNDEFINE_STRTOK_R=0; AC_SUBST([UNDEFINE_STRTOK_R]) 121 UNDEFINE_STRTOK_R=0; AC_SUBST([UNDEFINE_STRTOK_R])
122]) 122])
diff --git a/m4/sys_types_h.m4 b/m4/sys_types_h.m4
index 06268cfb2db..de56d04fc15 100644
--- a/m4/sys_types_h.m4
+++ b/m4/sys_types_h.m4
@@ -1,4 +1,4 @@
1# sys_types_h.m4 serial 8 1# sys_types_h.m4 serial 9
2dnl Copyright (C) 2011-2017 Free Software Foundation, Inc. 2dnl Copyright (C) 2011-2017 Free Software Foundation, Inc.
3dnl This file is free software; the Free Software Foundation 3dnl This file is free software; the Free Software Foundation
4dnl gives unlimited permission to copy and/or distribute it, 4dnl gives unlimited permission to copy and/or distribute it,
@@ -40,7 +40,7 @@ AC_DEFUN([gl_SYS_TYPES_H_DEFAULTS],
40m4_version_prereq([2.70], [], [ 40m4_version_prereq([2.70], [], [
41 41
42# This is taken from the following Autoconf patch: 42# This is taken from the following Autoconf patch:
43# http://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=e17a30e987d7ee695fb4294a82d987ec3dc9b974 43# https://git.savannah.gnu.org/cgit/autoconf.git/commit/?id=e17a30e987d7ee695fb4294a82d987ec3dc9b974
44 44
45m4_undefine([AC_HEADER_MAJOR]) 45m4_undefine([AC_HEADER_MAJOR])
46AC_DEFUN([AC_HEADER_MAJOR], 46AC_DEFUN([AC_HEADER_MAJOR],