mxcl/homebrew — pull request #17921 by fceller (2013-02-18 10:26:16+00:00)
Title: ArangoDB 1.1 addressing libev / libevent conflict

I have the following problem:

libev and libevent cannot be linked at once. Therefore one needs to

brew unlink libevent
brew link libev

in order to compile ArangoDB. However, when running ArangoDB there is the following problem: The executable contains the reference to

/usr/local/lib/libev.4.dylib

and not

/usr/local/opt/libev/lib/libev.4.dylib

If someone later needs a program which require "libevent" and therefore unlinks libev, then ArangoDB no longer starts, because of the missing dependency.

The IMHO best solution would be, if one could force the configure to use the "opt" path. However, I could not figure out, if this is possible.

This patch uses the bundled libev and links it statically. This will solve the problem - but not an elegant solution. Is there any way to trick configure into using the "opt" path?