darwin: Enhance memory metrics support for Apple Silicon (ARM64)
diff --git a/configure.ac b/configure.ac
index 1f15a2a..31e2808 100644
--- a/configure.ac
+++ b/configure.ac
@@ -378,6 +378,10 @@
AC_CHECK_FUNCS([mach_timebase_info])
AC_CHECK_DECLS([IOMainPort], [], [], [[#include <IOKit/IOKitLib.h>]])
AC_CHECK_DECLS([IOMasterPort], [], [], [[#include <IOKit/IOKitLib.h>]])
+
+ AC_CHECK_FUNCS([host_statistics64], [
+ AC_CHECK_TYPES([struct vm_statistics64], [], [], [[#include <mach/vm_statistics.h>]])
+ ], [])
fi
if test "$my_htop_platform" = pcp; then