If libnids or yara are installed separately, "make install" for those tools
puts the header and libraries in $prefix/include and $prefix/lib respectively.
Find the required pieces there if specified with --with-XXX=$prefix