From: Ivan Maidanski Date: Fri, 27 Apr 2018 18:02:32 +0000 (+0300) Subject: Remove unused HAVE_GETCONTEXT macro definition in configure X-Git-Tag: v8.0.0~212 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fee6fea7b4bc48061d4509afdfcb15b6f7ce11ce;p=gc Remove unused HAVE_GETCONTEXT macro definition in configure (fix of commits 7c13fb8fc, 99134699a) * configure.ac (getcontext): Replace AC_CHECK_FUNCS to AC_CHECK_FUNC. * configure.ac [!ac_cv_func_getcontext] (NO_GETCONTEXT): Move AC_DEFINE to action-if-not-found argument of AC_CHECK_FUNC. --- diff --git a/configure.ac b/configure.ac index 3991b455..0112e0c0 100644 --- a/configure.ac +++ b/configure.ac @@ -435,10 +435,8 @@ if test "$GCC" = yes; then fi # Check for getcontext (uClibc can be configured without it, for example) -AC_CHECK_FUNCS([getcontext]) -if test "$ac_cv_func_getcontext" = "no"; then - AC_DEFINE([NO_GETCONTEXT], [1], [Missing getcontext()]) -fi +AC_CHECK_FUNC([getcontext], [], + [ AC_DEFINE([NO_GETCONTEXT], [1], [Missing getcontext()]) ]) # Check whether dl_iterate_phdr exists (as a strong symbol). AC_CHECK_FUNCS([dl_iterate_phdr])