From 7c13fb8fccdebfa4bf9a11abf6fa1619c5902828 Mon Sep 17 00:00:00 2001 From: Samuel Martin Date: Thu, 16 Mar 2017 00:39:37 +0300 Subject: [PATCH] configure.ac: add check for NO_GETCONTEXT definition * configure.ac: Add AC_CHECK_FUNCS(getcontext); add -DNO_GETCONTEXT to CFLAGS if $ac_cv_func_getcontext is "no". --- configure.ac | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.ac b/configure.ac index 6e96dae..d2cdfe5 100644 --- a/configure.ac +++ b/configure.ac @@ -464,6 +464,11 @@ if test "$GCC" = yes; then AC_MSG_RESULT($ac_cv_fno_strict_aliasing) fi +# Check for getcontext (uClibc can be configured without it, for example) +AC_CHECK_FUNCS([getcontext]) +AS_IF([test "$ac_cv_func_getcontext" = "no"], + [CFLAGS="$CFLAGS -DNO_GETCONTEXT"]) + case "$host" in # While IRIX 6 has libdl for the O32 and N32 ABIs, it's missing for N64 # and unnecessary everywhere. -- 2.7.4