Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | We have problem using hardcoded directories like /usr/local here |
| 2 | which will be checked for cross builds. This is a special case which |
| 3 | is valid for AIX only. We do not have AIX as one of our supported |
| 4 | build host or target. Therefore we get rid of the hardcoded paths |
| 5 | and make life easier for cross compilation process. |
| 6 | |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | |
| 9 | Upstream-Status: Inappropriate [Upstream does care for AIX while we may not] |
| 10 | Index: autoconf-2.68/lib/autoconf/functions.m4 |
| 11 | =================================================================== |
| 12 | --- autoconf-2.68.orig/lib/autoconf/functions.m4 2010-09-22 14:52:19.000000000 -0700 |
| 13 | +++ autoconf-2.68/lib/autoconf/functions.m4 2011-08-03 11:57:05.822199513 -0700 |
| 14 | @@ -749,15 +749,6 @@ if test $ac_have_func = no; then |
| 15 | [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes]) |
| 16 | fi |
| 17 | |
| 18 | -if test $ac_have_func = no; then |
| 19 | - # There is a commonly available library for RS/6000 AIX. |
| 20 | - # Since it is not a standard part of AIX, it might be installed locally. |
| 21 | - ac_getloadavg_LIBS=$LIBS |
| 22 | - LIBS="-L/usr/local/lib $LIBS" |
| 23 | - AC_CHECK_LIB(getloadavg, getloadavg, |
| 24 | - [LIBS="-lgetloadavg $LIBS"], [LIBS=$ac_getloadavg_LIBS]) |
| 25 | -fi |
| 26 | - |
| 27 | # Make sure it is really in the library, if we think we found it, |
| 28 | # otherwise set up the replacement function. |
| 29 | AC_CHECK_FUNCS(getloadavg, [], |