aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2012-12-23 22:24:08 -0800
committerPaul Eggert2012-12-23 22:24:08 -0800
commit219023c4347abfc9461f2d99245de3c4aa7f1e64 (patch)
tree02185574d64e82c51c123a07ac0c1104f15285fe
parent087d8265e4f5a6116b0ee02d2e1854f5409bda4d (diff)
downloademacs-219023c4347abfc9461f2d99245de3c4aa7f1e64.tar.gz
emacs-219023c4347abfc9461f2d99245de3c4aa7f1e64.zip
Merge from gnulib.
-rw-r--r--ChangeLog7
-rw-r--r--lib/filemode.c2
-rw-r--r--lib/sys_stat.in.h4
-rw-r--r--m4/gnulib-common.m46
4 files changed, 17 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5ab0a8e76f8..2e3c32dacb1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
12012-12-24 Paul Eggert <eggert@cs.ucla.edu>
2
3 Merge from gnulib, incorporating:
4 2012-12-21 AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
5 2012-12-20 AC_PROG_MKDIR_P: don't workaround if not buggy
6 2012-12-17 filemode, sys_stat: Handle MPX files a la AIX.
7
12012-12-21 Akinori MUSHA <knu@iDaemons.org> (tiny change) 82012-12-21 Akinori MUSHA <knu@iDaemons.org> (tiny change)
2 9
3 * Makefile.in (install-arch-dep): Ignore chmod errors. (Bug#13233) 10 * Makefile.in (install-arch-dep): Ignore chmod errors. (Bug#13233)
diff --git a/lib/filemode.c b/lib/filemode.c
index ed8c6c989f1..24ffeae7c99 100644
--- a/lib/filemode.c
+++ b/lib/filemode.c
@@ -78,7 +78,7 @@ ftypelet (mode_t bits)
78 return 'C'; 78 return 'C';
79 if (S_ISDOOR (bits)) 79 if (S_ISDOOR (bits))
80 return 'D'; 80 return 'D';
81 if (S_ISMPB (bits) || S_ISMPC (bits)) 81 if (S_ISMPB (bits) || S_ISMPC (bits) || S_ISMPX (bits))
82 return 'm'; 82 return 'm';
83 if (S_ISNWK (bits)) 83 if (S_ISNWK (bits))
84 return 'n'; 84 return 'n';
diff --git a/lib/sys_stat.in.h b/lib/sys_stat.in.h
index ac05ddb5cec..936c0fb8c48 100644
--- a/lib/sys_stat.in.h
+++ b/lib/sys_stat.in.h
@@ -150,6 +150,10 @@
150# endif 150# endif
151#endif 151#endif
152 152
153#ifndef S_ISMPX /* AIX */
154# define S_ISMPX(m) 0
155#endif
156
153#ifndef S_ISNAM /* Xenix */ 157#ifndef S_ISNAM /* Xenix */
154# ifdef S_IFNAM 158# ifdef S_IFNAM
155# define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM) 159# define S_ISNAM(m) (((m) & S_IFMT) == S_IFNAM)
diff --git a/m4/gnulib-common.m4 b/m4/gnulib-common.m4
index 15d2b2b3dea..f3ba8d56b1f 100644
--- a/m4/gnulib-common.m4
+++ b/m4/gnulib-common.m4
@@ -294,6 +294,8 @@ Amsterdam
294# for interoperability with automake-1.9.6 from autoconf-2.62. 294# for interoperability with automake-1.9.6 from autoconf-2.62.
295# Remove this macro when we can assume autoconf >= 2.62 or 295# Remove this macro when we can assume autoconf >= 2.62 or
296# autoconf >= 2.60 && automake >= 1.10. 296# autoconf >= 2.60 && automake >= 1.10.
297# AC_AUTOCONF_VERSION was introduced in 2.62, so use that as the witness.
298m4_ifndef([AC_AUTOCONF_VERSION],[
297m4_ifdef([AC_PROG_MKDIR_P], [ 299m4_ifdef([AC_PROG_MKDIR_P], [
298 dnl For automake-1.9.6 && autoconf < 2.62: Ensure MKDIR_P is AC_SUBSTed. 300 dnl For automake-1.9.6 && autoconf < 2.62: Ensure MKDIR_P is AC_SUBSTed.
299 m4_define([AC_PROG_MKDIR_P], 301 m4_define([AC_PROG_MKDIR_P],
@@ -304,13 +306,15 @@ m4_ifdef([AC_PROG_MKDIR_P], [
304 [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake 306 [AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake
305 MKDIR_P='$(mkdir_p)' 307 MKDIR_P='$(mkdir_p)'
306 AC_SUBST([MKDIR_P])])]) 308 AC_SUBST([MKDIR_P])])])
309])
307 310
308# AC_C_RESTRICT 311# AC_C_RESTRICT
309# This definition overrides the AC_C_RESTRICT macro from autoconf 2.60..2.61, 312# This definition overrides the AC_C_RESTRICT macro from autoconf 2.60..2.61,
310# so that mixed use of GNU C and GNU C++ and mixed use of Sun C and Sun C++ 313# so that mixed use of GNU C and GNU C++ and mixed use of Sun C and Sun C++
311# works. 314# works.
312# This definition can be removed once autoconf >= 2.62 can be assumed. 315# This definition can be removed once autoconf >= 2.62 can be assumed.
313m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.62]),[-1],[ 316# AC_AUTOCONF_VERSION was introduced in 2.62, so use that as the witness.
317m4_ifndef([AC_AUTOCONF_VERSION],[
314AC_DEFUN([AC_C_RESTRICT], 318AC_DEFUN([AC_C_RESTRICT],
315[AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict], 319[AC_CACHE_CHECK([for C/C++ restrict keyword], [ac_cv_c_restrict],
316 [ac_cv_c_restrict=no 320 [ac_cv_c_restrict=no