diff options
author | Paolo Bonzini | 2019-11-29 12:16:32 +0100 |
---|---|---|
committer | Greg Kurz | 2019-12-02 15:26:33 +0100 |
commit | 7e46261368d129c5ee8be927f5bcadc7ecd800d7 (patch) | |
tree | 7686a2475a081950a9d304453318ff0f25a70e98 /configure | |
parent | .travis.yml: drop xcode9.4 from build matrix (diff) | |
download | qemu-7e46261368d129c5ee8be927f5bcadc7ecd800d7.tar.gz qemu-7e46261368d129c5ee8be927f5bcadc7ecd800d7.tar.xz qemu-7e46261368d129c5ee8be927f5bcadc7ecd800d7.zip |
virtfs-proxy-helper: switch from libcap to libcap-ng
virtfs-proxy-helper is the only user of libcap; everyone else is using
the simpler libcap-ng API. Switch and remove the configure code to
detect libcap.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
[groug: - drop remaining -lcap from Makefile
- fix error message in configure]
Signed-off-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 20 |
1 files changed, 2 insertions, 18 deletions
@@ -3864,22 +3864,6 @@ else fi ########################################## -# libcap probe - -if test "$cap" != "no" ; then - cat > $TMPC <<EOF -#include <stdio.h> -#include <sys/capability.h> -int main(void) { cap_t caps; caps = cap_init(); return caps != NULL; } -EOF - if compile_prog "" "-lcap" ; then - cap=yes - else - cap=no - fi -fi - -########################################## # pthread probe PTHREADLIBS_LIST="-pthread -lpthread -lpthreadGC2" @@ -6204,12 +6188,12 @@ if test "$want_tools" = "yes" ; then fi if test "$softmmu" = yes ; then if test "$linux" = yes; then - if test "$virtfs" != no && test "$cap" = yes && test "$attr" = yes ; then + if test "$virtfs" != no && test "$cap_ng" = yes && test "$attr" = yes ; then virtfs=yes tools="$tools fsdev/virtfs-proxy-helper\$(EXESUF)" else if test "$virtfs" = yes; then - error_exit "VirtFS requires libcap devel and libattr devel" + error_exit "VirtFS requires libcap-ng devel and libattr devel" fi virtfs=no fi |