summaryrefslogtreecommitdiff
path: root/user/autoconf2.13/getloadavg.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-11 01:19:20 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-11 01:19:20 -0500
commit4357d57e592aff3f665e6372549d6775d5a3f647 (patch)
treebcaec973ef942b3e56e8fc8bdcdfb6619925ec75 /user/autoconf2.13/getloadavg.patch
parentec3d896cd187a2ce4e81ecf749f623a262e6aad1 (diff)
downloadpackages-4357d57e592aff3f665e6372549d6775d5a3f647.tar.gz
packages-4357d57e592aff3f665e6372549d6775d5a3f647.tar.bz2
packages-4357d57e592aff3f665e6372549d6775d5a3f647.tar.xz
packages-4357d57e592aff3f665e6372549d6775d5a3f647.zip
user/autoconf2.13: the mess that keeps the mozilla machine alive
Diffstat (limited to 'user/autoconf2.13/getloadavg.patch')
-rw-r--r--user/autoconf2.13/getloadavg.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/user/autoconf2.13/getloadavg.patch b/user/autoconf2.13/getloadavg.patch
new file mode 100644
index 000000000..46f26d692
--- /dev/null
+++ b/user/autoconf2.13/getloadavg.patch
@@ -0,0 +1,36 @@
+From debian/patches/other-debian.patch.
+
+autoconf (2.13-24) unstable; urgency=low
+ * Fix test for getloadavg (Bug#84170).
+ -- Ben Pfaff <blp@gnu.org> Wed, 31 Jan 2001 19:12:03 -0500
+
+--- autoconf-2.13/acspecific.m4
++++ autoconf-2.13/acspecific.m4
+@@ -1477,14 +1477,19 @@ AC_SUBST(ALLOCA)dnl
+ AC_DEFUN(AC_FUNC_GETLOADAVG,
+ [ac_have_func=no # yes means we've found a way to get the load average.
+
+-# Some systems with -lutil have (and need) -lkvm as well, some do not.
+-# On Solaris, -lkvm requires nlist from -lelf, so check that first
+-# to get the right answer into the cache.
+-AC_CHECK_LIB(elf, elf_begin, LIBS="-lelf $LIBS")
+-AC_CHECK_LIB(kvm, kvm_open, LIBS="-lkvm $LIBS")
+-# Check for the 4.4BSD definition of getloadavg.
+-AC_CHECK_LIB(util, getloadavg,
+- [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes])
++# Some systems have getloadavg without any extra libraries.
++AC_CHECK_FUNC(getloadavg, [ac_have_func=yes])
++
++if test $ac_have_func = no; then
++ # Some systems with -lutil have (and need) -lkvm as well, some do not.
++ # On Solaris, -lkvm requires nlist from -lelf, so check that first
++ # to get the right answer into the cache.
++ AC_CHECK_LIB(elf, elf_begin, LIBS="-lelf $LIBS")
++ AC_CHECK_LIB(kvm, kvm_open, LIBS="-lkvm $LIBS")
++ # Check for the 4.4BSD definition of getloadavg.
++ AC_CHECK_LIB(util, getloadavg,
++ [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes])
++fi
+
+ if test $ac_have_func = no; then
+ # There is a commonly available library for RS/6000 AIX.