Hi!

This patch has tickled my curiosity, so after having fed my thirst for 
knowledge I'm proposing a new patch to do this:
 - basically, check for 1 function only (the main one), doing it for more only 
results in many "-lkvm" on the command line);
 - only do the check if we've detected previously that we're using the file 
that makes use of these functions;
 - provide a bit more verbose commit message to try to explain why it's 
actually a good idea to add this library

As usual, feedbacks welcome!

Best regards,
Christophe.



----- Christian Schulte <[email protected]> a écrit :
> Signed-off-by: Christian Schulte <[email protected]>
> ---
>  configure.ac | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
> 
> diff --git a/configure.ac b/configure.ac
> index d8acbeb..1a8e3aa 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -225,6 +225,25 @@ AS_IF([test "x$ac_cv_search_strlcat" = "x-lbsd" -o 
> "x$ac_cv_search_strlcpy" = "x
>  )
>  AC_SUBST(LIBBSD)
>  
> +dnl Check for OpenBSD kernel memory interface - kvm(3)
> +dnl ==================================================
> +AC_SEARCH_LIBS([kvm_openfiles],[kvm],
> +  [],
> +  []
> +)
> +AC_SEARCH_LIBS([kvm_getprocs],[kvm],
> +  [],
> +  []
> +)
> +AC_SEARCH_LIBS([kvm_getargv],[kvm],
> +  [],
> +  []
> +)
> +AC_SEARCH_LIBS([kvm_close],[kvm],
> +  [],
> +  []
> +)
> +
>  dnl Check for inotify
>  dnl =================
>  AC_CHECK_HEADERS(sys/inotify.h, AC_DEFINE(HAVE_INOTIFY, 1, Check for 
> inotify))
> -- 
> 1.8.1.3
> 
> 
> -- 
> To unsubscribe, send mail to [email protected].


--
To unsubscribe, send mail to [email protected].

Reply via email to