[zeromq-dev] [PATCH] detect (select poll epoll_ctl kqueue) at configure time
Martin Sustrik
sustrik at 250bpm.com
Mon Oct 4 15:42:22 CEST 2010
On 10/04/2010 03:36 PM, Martin Lucina wrote:
> I can kind of see where you're going with this; you want to detect the
> polling mechanism in a generic way based off the availability of a system
> call rather than based off a check for a particular OS. This is how things
> would normally be done with autoconf but it's not been done that way with
> 0MQ and I'd rather not change this now unless we get added value out of it;
> see below.
Actually, it cannot be done. Given that /dev/poll polling system has no
special API and that runtime checks are impossible because of
cross-compiling, there's no way to determine availability of /dev/poll
in autoconf.
Determining the polling mechanism based on the OS seems to be the only
sensible solution.
Interestingly, we've originally got it right not because of deep
knowledge of the problem, rather by sheer luck.
Martin
More information about the zeromq-dev
mailing list