diff options
| author | Paul Eggert | 2020-02-24 17:55:00 -0800 |
|---|---|---|
| committer | Paul Eggert | 2020-02-24 17:55:39 -0800 |
| commit | a3d146fd8a6e8e2301edd2c9e95640fa346fb9d8 (patch) | |
| tree | ca1cd8fa5e55556f76e85fb95070b19c807a7e4c | |
| parent | 72cf60e9dc8bcfa05157e6f5909c61037c3f7b0f (diff) | |
| download | emacs-a3d146fd8a6e8e2301edd2c9e95640fa346fb9d8.tar.gz emacs-a3d146fd8a6e8e2301edd2c9e95640fa346fb9d8.zip | |
Update from Gnulib
This incorporates:
2020-02-24 getloadavg: don't use /usr/local when cross-compiling on AIX
2020-02-24 fcntl: add witness of gnulib override
* lib/fcntl.in.h, m4/getloadavg.m4: Copy from Gnulib.
| -rw-r--r-- | lib/fcntl.in.h | 6 | ||||
| -rw-r--r-- | m4/getloadavg.m4 | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h index b2e1e5130d9..0a21c957baf 100644 --- a/lib/fcntl.in.h +++ b/lib/fcntl.in.h | |||
| @@ -116,9 +116,15 @@ _GL_WARN_ON_USE (creat, "creat is not always POSIX compliant - " | |||
| 116 | # endif | 116 | # endif |
| 117 | _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); | 117 | _GL_FUNCDECL_RPL (fcntl, int, (int fd, int action, ...)); |
| 118 | _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); | 118 | _GL_CXXALIAS_RPL (fcntl, int, (int fd, int action, ...)); |
| 119 | # if !GNULIB_defined_rpl_fcntl | ||
| 120 | # define GNULIB_defined_rpl_fcntl 1 | ||
| 121 | # endif | ||
| 119 | # else | 122 | # else |
| 120 | # if !@HAVE_FCNTL@ | 123 | # if !@HAVE_FCNTL@ |
| 121 | _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); | 124 | _GL_FUNCDECL_SYS (fcntl, int, (int fd, int action, ...)); |
| 125 | # if !GNULIB_defined_fcntl | ||
| 126 | # define GNULIB_defined_fcntl 1 | ||
| 127 | # endif | ||
| 122 | # endif | 128 | # endif |
| 123 | _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); | 129 | _GL_CXXALIAS_SYS (fcntl, int, (int fd, int action, ...)); |
| 124 | # endif | 130 | # endif |
diff --git a/m4/getloadavg.m4 b/m4/getloadavg.m4 index 3bd2a142e73..8e96965d828 100644 --- a/m4/getloadavg.m4 +++ b/m4/getloadavg.m4 | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | # gives unlimited permission to copy and/or distribute it, | 7 | # gives unlimited permission to copy and/or distribute it, |
| 8 | # with or without modifications, as long as this notice is preserved. | 8 | # with or without modifications, as long as this notice is preserved. |
| 9 | 9 | ||
| 10 | #serial 8 | 10 | #serial 9 |
| 11 | 11 | ||
| 12 | # Autoconf defines AC_FUNC_GETLOADAVG, but that is obsolescent. | 12 | # Autoconf defines AC_FUNC_GETLOADAVG, but that is obsolescent. |
| 13 | # New applications should use gl_GETLOADAVG instead. | 13 | # New applications should use gl_GETLOADAVG instead. |
| @@ -45,7 +45,9 @@ AC_CHECK_FUNC([getloadavg], [], | |||
| 45 | # There is a commonly available library for RS/6000 AIX. | 45 | # There is a commonly available library for RS/6000 AIX. |
| 46 | # Since it is not a standard part of AIX, it might be installed locally. | 46 | # Since it is not a standard part of AIX, it might be installed locally. |
| 47 | gl_getloadavg_LIBS=$LIBS | 47 | gl_getloadavg_LIBS=$LIBS |
| 48 | LIBS="-L/usr/local/lib $LIBS" | 48 | if test $cross_compiling != yes; then |
| 49 | LIBS="-L/usr/local/lib $LIBS" | ||
| 50 | fi | ||
| 49 | AC_CHECK_LIB([getloadavg], [getloadavg], | 51 | AC_CHECK_LIB([getloadavg], [getloadavg], |
| 50 | [LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes], | 52 | [LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes], |
| 51 | [LIBS=$gl_getloadavg_LIBS]) | 53 | [LIBS=$gl_getloadavg_LIBS]) |