[FFmpeg-devel] [PATCH] configure: only check dispatch header on darwin

Josh de Kock josh at itanimul.li
Thu Feb 25 16:34:37 CET 2016


On 25/02/2016 14:00, Matthieu Bouron wrote:
> From: Matthieu Bouron <matthieu.bouron at stupeflix.com>
>
> Fixes build of lavd/jack on linux if dispatch happens to be available on
> this platform. dispatch, as well as its dependencies kqueue and pwq are
> generally not installed / distribued on linux systems. If it happens to
> be the case, you want to explicitely link against the libraries (using
> -ldispatch) as opposed to darwin where it is part of the standard
> library and -ldispatch doesn't work.
Systems other than OSX/darwin could potentially have a working 
libdispatch/GCD as well, I know FreeBSD has a port[1].
Maybe it would be a good idea to check if pthreads are available (or the 
system is OSX), and if not then properly check for libdispatch.
Making it OSX-only is just going to require another patch when someone 
using libdispatch on another system wants it.

- Josh

[1] https://wiki.freebsd.org/GCD


More information about the ffmpeg-devel mailing list