32 lines
1.3 KiB
Diff
32 lines
1.3 KiB
Diff
We have problem using hardcoded directories like /usr/local here
|
|
which will be checked for cross builds. This is a special case which
|
|
is valid for AIX only. We do not have AIX as one of our supported
|
|
build host or target. Therefore we get rid of the hardcoded paths
|
|
and make life easier for cross compilation process.
|
|
|
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
Upstream-Status: Inappropriate [Upstream does care for AIX while we may not]
|
|
|
|
Index: coreutils-8.12/m4/getloadavg.m4
|
|
===================================================================
|
|
--- coreutils-8.12.orig/m4/getloadavg.m4 2011-08-03 14:03:59.982197767 -0700
|
|
+++ coreutils-8.12/m4/getloadavg.m4 2011-08-03 14:04:20.402197763 -0700
|
|
@@ -44,16 +44,6 @@ AC_CHECK_FUNC([getloadavg], [],
|
|
[LIBS="-lutil $LIBS" gl_have_func=yes])
|
|
fi
|
|
|
|
- if test $gl_have_func = no; then
|
|
- # 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"
|
|
- AC_CHECK_LIB([getloadavg], [getloadavg],
|
|
- [LIBS="-lgetloadavg $LIBS" gl_have_func=yes],
|
|
- [LIBS=$gl_getloadavg_LIBS])
|
|
- fi
|
|
-
|
|
# Set up the replacement function if necessary.
|
|
if test $gl_have_func = no; then
|
|
AC_LIBOBJ([getloadavg])
|