summaryrefslogtreecommitdiffstats
path: root/third_party/heimdal/cf/dispatch.m4
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:29 +0000
commit4f5791ebd03eaec1c7da0865a383175b05102712 (patch)
tree8ce7b00f7a76baa386372422adebbe64510812d4 /third_party/heimdal/cf/dispatch.m4
parentInitial commit. (diff)
downloadsamba-upstream.tar.xz
samba-upstream.zip
Adding upstream version 2:4.17.12+dfsg.upstream/2%4.17.12+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--third_party/heimdal/cf/dispatch.m423
1 files changed, 23 insertions, 0 deletions
diff --git a/third_party/heimdal/cf/dispatch.m4 b/third_party/heimdal/cf/dispatch.m4
new file mode 100644
index 0000000..76c5f47
--- /dev/null
+++ b/third_party/heimdal/cf/dispatch.m4
@@ -0,0 +1,23 @@
+
+AC_DEFUN([rk_LIBDISPATCH],[
+
+AC_CHECK_PROGS(GCD_MIG, mig, no)
+
+if test "$GCD_MIG" != no; then
+ AC_CHECK_HEADERS([dispatch/dispatch.h])
+ AC_FIND_FUNC_NO_LIBS(dispatch_async_f, dispatch,
+ [#ifdef HAVE_DISPATCH_DISPATCH_H
+ #include <dispatch/dispatch.h>
+ #endif],[0,0,0])
+
+ if test "$ac_cv_func_dispatch_async_f" = yes -a "$GCD_MIG" != no; then
+ AC_DEFINE([HAVE_GCD], 1, [Define if os support gcd.])
+ libdispatch=yes
+ else
+ libdispatch=no
+ fi
+
+fi
+AM_CONDITIONAL(have_gcd, test "$libdispatch" = yes -a "$GCD_MIG" != no)
+
+])