Skip to content

Commit 41aaa4f

Browse files
Skip libdispatch detection on darwin
1 parent 4697c57 commit 41aaa4f

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

configure.ac

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,15 @@ AS_IF([test "${enable_staticlink}" != "no"], [
271271
AC_CHECK_LIB([dispatch], [main], [HAVE_DISPATCH=yes])
272272
])
273273

274-
AC_CHECK_LIB([dispatch], [main], [], [
275-
AC_MSG_ERROR([libdispatch not found. Please install libdispatch.])
276-
])
274+
AS_CASE([$host_os],
275+
[darwin*], [
276+
AC_MSG_NOTICE([Skipping libdispatch check on macOS])
277+
],
278+
[
279+
AC_CHECK_LIB([dispatch], [main], [], [
280+
AC_MSG_ERROR([libdispatch not found. Please install libdispatch.])
281+
])
282+
])
277283
DISPATCH_CFLAGS=-fblocks
278284
DISPATCH_LIBS="-ldispatch -lBlocksRuntime"
279285
AC_SUBST(DISPATCH_CFLAGS)

0 commit comments

Comments
 (0)