EulerianTechnologies / eredis

Fast and light Redis C client library built over Hiredis, thread-safe, write replication, auto-reconnect, sync pool, async libev.
BSD 3-Clause "New" or "Revised" License
81 stars 38 forks source link

Search /usr/include/libev for ev.h (fixes configure on CentOS 6) #17

Closed xorangekiller closed 6 years ago

xorangekiller commented 6 years ago

This PR adds libev as an optional subdirectory to be searched for ev.h and libev.so below the standard system include and library paths, respectively. It breaks from the way that the upstream libev autoconf build installs the headers and library by default, but there is no harm in adding additional search paths, and that is apparently the way that libev was packaged for CentOS 6.

Although @stonecool managed to work around the issue that he reported in #15, this is the right way to do it, which will fix it for everyone going forward.