+2020-02-24 Bruno Haible <bruno@clisp.org>
+
+ getloadavg: Don't use /usr/local when cross-compiling on AIX.
+ Reported by Jens Rehsack <sno@netbsd.org> in
+ <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
+ * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
+ cross-compiling.
+
2020-02-24 Bruno Haible <bruno@clisp.org>
fcntl: Add witness of gnulib override.
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
-#serial 8
+#serial 9
# Autoconf defines AC_FUNC_GETLOADAVG, but that is obsolescent.
# New applications should use gl_GETLOADAVG instead.
# There is a commonly available library for RS/6000 AIX.
# Since it is not a standard part of AIX, it might be installed locally.
gl_getloadavg_LIBS=$LIBS
- LIBS="-L/usr/local/lib $LIBS"
+ if test $cross_compiling != yes; then
+ LIBS="-L/usr/local/lib $LIBS"
+ fi
AC_CHECK_LIB([getloadavg], [getloadavg],
[LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes],
[LIBS=$gl_getloadavg_LIBS])