]> git.proxmox.com Git - qemu.git/commit - configure
configure: Check whether makecontext() is a glibc stub function
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 23 Feb 2012 16:20:05 +0000 (16:20 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 24 Feb 2012 19:36:06 +0000 (13:36 -0600)
commitcdf84806a129a33155d8f93342d377884de9b563
tree003f86fbf30e1221f8def18eaba4ef46fc63694a
parent967c0da73a7b0da186baba6632301d83644a570c
configure: Check whether makecontext() is a glibc stub function

On some systems (notably ARM Linux) glibc provides implementations
of makecontext(), getcontext() and friends which are stubs which
always return failure. Make the configure test for makecontext()
also check for the presence of the __stub_makecontext macro which
indicates the presence of these stubs, so we can avoid trying to use
them and fall back to a different coroutine implementation instead.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure