]> git.proxmox.com Git - mirror_qemu.git/commit - configure
configure: properly check if -lrt and -lm is needed
authorNatanael Copa <natanael.copa@gmail.com>
Wed, 12 Sep 2012 09:06:51 +0000 (09:06 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 15 Sep 2012 15:35:53 +0000 (15:35 +0000)
commit8bacde8d86a09699207d85d4bab06162aed18dc4
treedf09dd8e48280742e9bec96ae2726b3e29a0b09a
parent3cebc3f11d8d74eb87dc02e712629c45e689960b
configure: properly check if -lrt and -lm is needed

Fixes build against uClibc.

uClibc provides 2 versions of clock_gettime(), one with realtime
support and one without (this is so you can avoid linking in -lrt
unless actually needed). This means that the clock_gettime() don't
need -lrt. We still need it for timer_create() so we check for this
function in addition.

We also need check if -lm is needed for isnan().

Both -lm and -lrt are needed for libs_qga.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure