From: Roland McGrath Date: Wed, 7 Dec 1994 00:07:00 +0000 (+0000) Subject: (AC_FUNC_GETLOADAVG): Use elf_begin in -lelf check, not elf_read. X-Git-Tag: fsf-origin~342 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b8c5533220e8949fa61916c2d42e13719dce45b;p=thirdparty%2Fautoconf.git (AC_FUNC_GETLOADAVG): Use elf_begin in -lelf check, not elf_read. --- diff --git a/acspecific.m4 b/acspecific.m4 index 84a4383df..724c3bd19 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -1114,7 +1114,7 @@ if test $ac_have_func = no; then # We cannot check for , because Solaris 2 does not use dwarf (it # uses stabs), but it is still SVR4. We cannot check for because # Irix 4.0.5F has the header but not the library. -AC_CHECK_LIB(elf, elf_read, +AC_CHECK_LIB(elf, elf_begin, [LIBS="$LIBS -lelf" ac_have_func=yes AC_DEFINE(SVR4) AC_CHECK_LIB(kvm, kvm_open, LIBS="$LIBS -lkvm")]) fi diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 84a4383df..724c3bd19 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -1114,7 +1114,7 @@ if test $ac_have_func = no; then # We cannot check for , because Solaris 2 does not use dwarf (it # uses stabs), but it is still SVR4. We cannot check for because # Irix 4.0.5F has the header but not the library. -AC_CHECK_LIB(elf, elf_read, +AC_CHECK_LIB(elf, elf_begin, [LIBS="$LIBS -lelf" ac_have_func=yes AC_DEFINE(SVR4) AC_CHECK_LIB(kvm, kvm_open, LIBS="$LIBS -lkvm")]) fi