On Mon, Dec 19, 2022 at 8:59 AM wrote: > > From: Sören Tempel > > This patch is similar to the existing check for librt. If libucontext > is installed and libucontext.a provides the aforementioned symbols, then > it is added to $LIBS. If not, no error is emitted. We could, > alternatively, also check libc.a for these symbols and thus prefer libc > over libucontext if both are installed and provide the symbols. If > deemed desirable, this could be achieved by changing the invocation > to AC_SEARCH_LIBS([makecontext], [c ucontext]). > > This version of this patch has been tested on x86_64 Alpine Linux Edge > (libucontext 1.2 + musl 1.2.3) and Arch Linux (glibc 2.36). On the > latter, the check is a no-op and $LIBS is not modified. Thanks. I don't see a reason to check for all the functions. Committed like so after testing on x86_64-pc-linux-gnu with glibc. Ian