On Apr 7, 2011, at 7:42 AM, bgoglin_at_[hidden] wrote:
> libpci doesn't always need zlib, split the configure stuff in 3 parts:
> * pkg-config case (recent libpci) was already ok
> * non-pkg-config case now does
> + check without -lz first (ok for RHEL5 and Etch)
> + if failed, try again with -lz (needed for FC7)
> - this second check looks for a different symbol to ignore
> the cached results of the first check
> I am not sure if this double-check is the right way to handle
> libraries with variable dependencies.
I think it's fine, but you should probably check for libz (if/when needed) before adding -lz.
For corporate legal information go to: