]> git.pond.sub.org Git - empserver/blobdiff - m4/my_func_makecontext.m4
client: Unbreak standalone build
[empserver] / m4 / my_func_makecontext.m4
index 9327cee44cca16214229faa50345531e5b9bd58f..aa97803688885e7e7b5b56b21fe4ad29963bec87 100644 (file)
@@ -1,7 +1,14 @@
 AC_DEFUN([MY_FUNC_MAKECONTEXT],
 [
        AC_REQUIRE([AC_CANONICAL_HOST])
-       AC_CHECK_FUNCS(makecontext)
+       case "$host_os" in
+       *darwin*)
+               # ucontext appears to be broken, avoid it for now
+               ac_cv_func_makecontext=no
+               ;;
+       *)
+               AC_CHECK_FUNCS(makecontext)
+       esac
        case "$host_os" in
        *irix*|*solaris2.?)
                AC_DEFINE([MAKECONTEXT_SP_HIGH], 1,