aboutsummaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorPaul Eggert2013-10-22 21:01:46 -0700
committerPaul Eggert2013-10-22 21:01:46 -0700
commit758bed52afd57bd140409bfbbeabb4a89b5182d3 (patch)
tree29883f4b2b1a5e6f5070b02888a0d06241d8f19a /m4
parent967a72c957b41e7af82ddfae8487066d6735f5b8 (diff)
downloademacs-758bed52afd57bd140409bfbbeabb4a89b5182d3.tar.gz
emacs-758bed52afd57bd140409bfbbeabb4a89b5182d3.zip
Merge from gnulib.
This incorporates: 2013-10-14 acl: allow cross-compilation to Gentoo 2013-10-18 extern-inline: make safe for -Wundef usage 2013-09-30 fpending: use pure+const function attrs * lib/fpending.h, m4/acl.m4, m4/extern-inline.m4: Update from gnulib.
Diffstat (limited to 'm4')
-rw-r--r--m4/acl.m421
-rw-r--r--m4/extern-inline.m43
2 files changed, 14 insertions, 10 deletions
diff --git a/m4/acl.m4 b/m4/acl.m4
index 5b1fb65e6e6..24b6e4969d1 100644
--- a/m4/acl.m4
+++ b/m4/acl.m4
@@ -1,5 +1,5 @@
1# acl.m4 - check for access control list (ACL) primitives 1# acl.m4 - check for access control list (ACL) primitives
2# serial 15 2# serial 16
3 3
4# Copyright (C) 2002, 2004-2013 Free Software Foundation, Inc. 4# Copyright (C) 2002, 2004-2013 Free Software Foundation, Inc.
5# This file is free software; the Free Software Foundation 5# This file is free software; the Free Software Foundation
@@ -141,12 +141,14 @@ int type = ACL_TYPE_EXTENDED;]])],
141# ------------------------------------- 141# -------------------------------------
142# If 'acl_get_file' works (does not have a particular bug), 142# If 'acl_get_file' works (does not have a particular bug),
143# run IF-WORKS, otherwise, IF-NOT. 143# run IF-WORKS, otherwise, IF-NOT.
144# This tests for a Darwin 8.7.0 bug, whereby acl_get_file returns NULL, 144# When building natively, test for a Darwin 8.7.0 bug, whereby acl_get_file
145# but sets errno = ENOENT for an existing file or directory. 145# returns NULL, but sets errno = ENOENT for an existing file or directory.
146# When cross-compiling, assume that this old bug no longer applies.
146AC_DEFUN([gl_ACL_GET_FILE], 147AC_DEFUN([gl_ACL_GET_FILE],
147[ 148[
148 AC_CACHE_CHECK([for working acl_get_file], [gl_cv_func_working_acl_get_file], 149 AC_CACHE_CHECK([for working acl_get_file], [gl_cv_func_working_acl_get_file],
149 [AC_RUN_IFELSE( 150 [gl_cv_func_working_acl_get_file=no
151 AC_LINK_IFELSE(
150 [AC_LANG_PROGRAM( 152 [AC_LANG_PROGRAM(
151 [[#include <sys/types.h> 153 [[#include <sys/types.h>
152 #include <sys/acl.h> 154 #include <sys/acl.h>
@@ -156,9 +158,10 @@ AC_DEFUN([gl_ACL_GET_FILE],
156 return 1; 158 return 1;
157 return 0; 159 return 0;
158 ]])], 160 ]])],
159 [gl_cv_func_working_acl_get_file=yes], 161 [if test $cross_compiling = yes; then
160 [gl_cv_func_working_acl_get_file=no], 162 gl_cv_func_working_acl_get_file="guessing yes"
161 [gl_cv_func_working_acl_get_file=cross-compiling])]) 163 elif ./conftest$ac_exeext; then
162 164 gl_cv_func_working_acl_get_file=yes
163 AS_IF([test $gl_cv_func_working_acl_get_file = yes], [$1], [$2]) 165 fi])])
166 AS_IF([test "$gl_cv_func_working_acl_get_file" != no], [$1], [$2])
164]) 167])
diff --git a/m4/extern-inline.m4 b/m4/extern-inline.m4
index 4862d60d8e7..e4454d8fe3d 100644
--- a/m4/extern-inline.m4
+++ b/m4/extern-inline.m4
@@ -1,3 +1,4 @@
1# extern-inline.m4 serial 2
1dnl 'extern inline' a la ISO C99. 2dnl 'extern inline' a la ISO C99.
2 3
3dnl Copyright 2012-2013 Free Software Foundation, Inc. 4dnl Copyright 2012-2013 Free Software Foundation, Inc.
@@ -41,7 +42,7 @@ AC_DEFUN([gl_EXTERN_INLINE],
41# define _GL_EXTERN_INLINE_IN_USE 42# define _GL_EXTERN_INLINE_IN_USE
42#elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \ 43#elif (2 < __GNUC__ + (7 <= __GNUC_MINOR__) && !defined __STRICT_ANSI__ \
43 && !defined _GL_EXTERN_INLINE_APPLE_BUG) 44 && !defined _GL_EXTERN_INLINE_APPLE_BUG)
44# if __GNUC_GNU_INLINE__ 45# if defined __GNUC_GNU_INLINE__ && __GNUC_GNU_INLINE__
45 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */ 46 /* __gnu_inline__ suppresses a GCC 4.2 diagnostic. */
46# define _GL_INLINE extern inline __attribute__ ((__gnu_inline__)) 47# define _GL_INLINE extern inline __attribute__ ((__gnu_inline__))
47# else 48# else