From: Samuel Martin Date: Wed, 15 Mar 2017 21:39:37 +0000 (+0300) Subject: configure.ac: add check for NO_GETCONTEXT definition X-Git-Tag: v7.4.6~131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1e37c77c2027d6f15bcc4ae76cebb7deb3f8c7d;p=gc 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". --- diff --git a/configure.ac b/configure.ac index 95b2cfa3..093dbeac 100644 --- a/configure.ac +++ b/configure.ac @@ -456,6 +456,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.