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

Joakim Johansson jocke at tbricks.com
Mon Nov 16 05:14:53 PST 2009


For reference for anyone else encountering this, I did install pkg-config also from http://pkg-config.freedesktop.org/wiki/, with the below attached patch we now fails more gracefully when we don't have libkqueue (need to add the local directory to the autoconf include path).

checking for KQUEUE... configure: error: Package requirements (libkqueue) were not met:

sh: gnome-config: not found
No package 'libkqueue' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables KQUEUE_CFLAGS
and KQUEUE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Of course, I'd like to disable this check on Solaris completely, as the current plan is to use native event ports rather than libkqueue, but that is for a later patch.


Index: autogen.sh
--- autogen.sh	(revision 162)
+++ autogen.sh	(working copy)
@@ -1,2 +1,2 @@
-autoreconf -fvi
+autoreconf -fvi -I/opt/csw/share/aclocal

On 16 nov 2009, at 11.35, Paolo Bonzini wrote:

> On 11/16/2009 11:22 AM, 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...
> You need to install pkg-config before running "autoreconf".
> Paolo
> _______________________________________________
> 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