patch-configure_ac 681 B

1234567891011121314151617
  1. $OpenBSD: patch-configure_ac,v 1.1 2012/01/08 22:49:56 naddy Exp $
  2. --- configure.ac.orig Sat Aug 14 05:50:04 2010
  3. +++ configure.ac Sun Jan 8 23:31:08 2012
  4. @@ -124,7 +124,11 @@ AC_CHECK_TYPE([struct kinfo_proc2],
  5. [AC_CHECK_TYPE([struct kinfo_proc],
  6. [AC_DEFINE([HAVE_STRUCT_KINFO_PROC])
  7. AC_CHECK_FUNC([kvm_getargv], [], [DT_MSG_KVM])
  8. - AC_CHECK_FUNC([kvm_getprocs], [], [DT_MSG_KVM])
  9. + AC_CHECK_FUNC([kvm_getprocs],
  10. + [AC_TRY_COMPILE(DT_INCLUDES_KVM,
  11. + [kvm_getprocs(NULL, 0, 0, 0, NULL);],
  12. + [AC_DEFINE([HAVE_KINFO_NEWABI])]
  13. + )], [DT_MSG_KVM])
  14. DT_CHECK_MEMBERS_KVM([kinfo_proc], [ki], [kp], [p])],
  15. [DT_MSG_KVM], [DT_INCLUDES_KVM]
  16. )], [DT_INCLUDES_KVM]