]> git.proxmox.com Git - mirror_lxc.git/commit - configure.ac
configure.ac: fix the check for static libcap
authorSerge Hallyn <shallyn@cisco.com>
Thu, 4 Jan 2018 03:02:53 +0000 (21:02 -0600)
committerSerge Hallyn <shallyn@cisco.com>
Thu, 4 Jan 2018 03:09:10 +0000 (21:09 -0600)
commitc06ed219c47098f34485d408410b6ecc94a40877
tree0dba39e7bcfcb2a4ab8f40c1096ae4d3b4daae58
parentacd546adadf8b3019dc5392672a05fd99bf858ae
configure.ac: fix the check for static libcap

The existing check doesn't work, because when you statically
link a program against libc, any functions not called are not
included.  So cap_init() which we check for is not there in
the built binary.

So instead just check whether a "gcc -lcap -static" works.
If libcap.a is not available it will fail, if it is it will
succeed.

Signed-off-by: Serge Hallyn <shallyn@cisco.com>
configure.ac