Closed sagudev closed 9 months ago
Some C/C++ programs have configure scripts that check zlib versions. This PR just fills some of those placeholder so zlib.pc
can be used by configure script.
I thought about this and have to consider it a backwards-incompatible change as this will crash hard if a header file provided by any system does not contain the desired information, information that previously wasn't provided.
Making zlib.pc is only done when compiling from source, which is part of this repo, so zlib.h will always contain that information, that's how zlib's build system is doing it. But better safe than sorry, so there will be no panic on version fail.
No worries, git stores previous commits too.
assuming that you are sure that the generated includedir and libdir variables will be correct on any system.
If prefix is valid than includedir and libdir should be valid too.
Thanks again!
Added version, that is parsed from zlib.h and
includedir
andlibdir