From 0c698ef0374b671d3b6a8def2d9c113797ceaec3 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Sun, 11 May 2014 22:09:32 -0500 Subject: configure: add workaround for systems without zlib.pc Some systems (e.g. FreeBSD) might not have installed the appropriate pkg-config file as they should. We can workaround the issue by creating the .pc file they should have distributed. Signed-off-by: Felipe Contreras --- compat/gen_zlib_pc.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 compat/gen_zlib_pc.c (limited to 'compat/gen_zlib_pc.c') diff --git a/compat/gen_zlib_pc.c b/compat/gen_zlib_pc.c new file mode 100644 index 00000000..198a727c --- /dev/null +++ b/compat/gen_zlib_pc.c @@ -0,0 +1,18 @@ +#include +#include + +static const char *template = + "prefix=/usr\n" + "exec_prefix=${prefix}\n" + "libdir=${exec_prefix}/lib\n" + "\n" + "Name: zlib\n" + "Description: zlib compression library\n" + "Version: %s\n" + "Libs: -lz\n"; + +int main(void) +{ + printf(template, ZLIB_VERSION); + return 0; +} -- cgit v1.2.3