[libgtop/wip/lantw/check-for-kinfo_getfile-on-freebsd] Check for kinfo_getfile on FreeBSD



commit 0b42b6bd907b76b55a544eb06092246f832f67d3
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Thu Aug 29 15:13:18 2019 +0800

    Check for kinfo_getfile on FreeBSD
    
    Code in sysdeps/freebsd contains a lot of HAVE_KINFO_GETFILE checks, but
    the macro is always undefined because the configure script doesn't check
    for it. To fix it, add required checks for kinfo_getfile function.

 libgtop-sysdeps.m4 | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/libgtop-sysdeps.m4 b/libgtop-sysdeps.m4
index fff7af6a..b363dae0 100644
--- a/libgtop-sysdeps.m4
+++ b/libgtop-sysdeps.m4
@@ -118,6 +118,9 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[
          AC_CHECK_LIB(kvm, kvm_open, KVM_LIBS=-lkvm, KVM_LIBS=)
          AC_SUBST(KVM_LIBS)
 
+         AC_CHECK_LIB(util, kinfo_getfile)
+         AC_CHECK_FUNCS(kinfo_getfile)
+
          AC_CHECK_HEADERS(net/if_var.h,,, [
 #include <net/if.h>
 #include <sys/types.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]