File: dispatch.m4

package info (click to toggle)
heimdal 1.6~git20120403%2Bdfsg1-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 34,428 kB
  • sloc: ansic: 338,234; sh: 7,993; makefile: 4,671; yacc: 3,036; perl: 1,888; python: 748; lex: 731; awk: 465; java: 119; asm: 30; lisp: 29
file content (20 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

AC_DEFUN([rk_LIBDISPATCH],[

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 ; then
    AC_DEFINE([HAVE_GCD], 1, [Define if os support gcd.])
    libdispatch=yes
else
    libdispatch=no
fi

AM_CONDITIONAL(have_gcd, test "$libdispatch" = yes)

])