[libdispatch-dev] [PATCH] use libkqueue if sys/event.h is missing

Robert Watson robert at fledge.watson.org
Tue Nov 17 10:47:27 PST 2009


On Mon, 16 Nov 2009, Joakim Johansson wrote:

> Unfortunately, it breaks on Solaris, as PKG_CHECK_MODULES isn't available:
>
> -----
> .
> .
> .
> checking for sys/event.h... no
> ./configure: line 14665: syntax error near unexpected token `KQUEUE,'
> ./configure: line 14665: `  PKG_CHECK_MODULES(KQUEUE, libkqueue)'
> -----
>
> I'll see if I can figure it out...

Peter O'Gorman's suggestion of just committing pkg.m4 seems to do the trick 
for Snow Leopard, and may also help with Solaris.  Could you update and give 
it a spin?

Robert N M Watson
Computer Laboratory
University of Cambridge

>
> Joakim
>
>
> On 16 nov 2009, at 00.34, Robert Watson wrote:
>
>>
>> On Sun, 15 Nov 2009, Mark Heily wrote:
>>
>>>>> 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.
>>>> Is there a reason not to use PKG_CHECK_MODULES(), which will define _LIBS and _FLAGS variables automatically?  This would avoid encoding the use of pkg-config in the makefiles, limiting it to a configuration-time step.
>>>
>>> No reason, other than that my initial attempts to use PKG_CHECK_MODULES() were unsuccessful. I think I figured out it out now. The following patch has been tested on Linux and FreeBSD 8-STABLE and seems to work.
>>
>> Much better you having to figure out pkg-config than me, although I suspect we'll want to allow libdispatch to advertise its services with pkg-config as well soon enough.  I've committed this patch, with minor comment tweaks (to document predence more clearly) as r162, thanks!
>>
>> Robert N M Watson
>> Computer Laboratory
>> University of Cambridge
>> _______________________________________________
>> libdispatch-dev mailing list
>> libdispatch-dev at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/libdispatch-dev
>
> _______________________________________________
> libdispatch-dev mailing list
> libdispatch-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/libdispatch-dev
>



More information about the libdispatch-dev mailing list