[libdispatch-dev] [PATCH] use libkqueue if sys/event.h is missing
Mark Heily
mark at heily.com
Wed Nov 11 19:53:57 PST 2009
Robert N. M. Watson wrote:
>
> On 2 Nov 2009, at 03:16, Mark Heily wrote:
>
>> Robert Watson wrote:
>>> Given that package installation conventions vary by OS/distribution
>>> (/opt, /usr/local, /usr, ...), would it might make more sense to
>>> simply add a "--with-kqueue-includ-path" argument to configure?
>>
>> Paolo suggested using pkg-config and the PKG_CHECK_MODULES macro to
>> give some flexibility about where the headers and libraries are
>> installed. I'll submit a new patch that uses pkg-config and
>> PKG_CHECK_MODULES.
>
> Sounds good.
>
Attached is a patch that uses pkg-config(1) to determine the installed
location of libkqueue and set the appropriate Makefile variables. I'm not
100% sure the LIBADD and LDFLAGS variables are correct, but I can't test it
until libdispatch compiles cleanly on Linux.
Regards,
- Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libdispatch_build_with_libkqueue.diff
Type: text/x-patch
Size: 1344 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/libdispatch-dev/attachments/20091111/c8acc330/attachment.bin>
More information about the libdispatch-dev
mailing list