tenderlove/nokogiri — pull request #687 by edogawaconan (2012-05-26 09:56:48+00:00)
Title: Try using pkg-config for libraries when possible

Related to issue #584. Not quite the wanted solution but this one is simple two lines patch. Allows installation on DragonFly BSD (yes, really) without specifying extra parameters (the libraries are installed under /usr/pkg).

This allows for non-standard location of those libraries by using
pkg-config when possible, removing the need to specify
--with-$LIB-{include,lib} when building the gem.