client: Unbreak standalone build
[empserver] / m4 / my_func_makecontext.m4
1 AC_DEFUN([MY_FUNC_MAKECONTEXT],
2 [
3         AC_REQUIRE([AC_CANONICAL_HOST])
4         case "$host_os" in
5         *darwin*)
6                 # ucontext appears to be broken, avoid it for now
7                 ac_cv_func_makecontext=no
8                 ;;
9         *)
10                 AC_CHECK_FUNCS(makecontext)
11         esac
12         case "$host_os" in
13         *irix*|*solaris2.?)
14                 AC_DEFINE([MAKECONTEXT_SP_HIGH], 1,
15                         [Define if your makecontext() requires ss_sp at the top of the stack])
16                 ;;
17         esac
18 ])