X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=configure;h=99ab74dcfb97c515a8c2b96ffd7d75f551652e0c;hb=d53f759456608005de929dde4b7692f54b9e05bf;hp=9bde2eb72b0e6811505391b0c759a9345f38313a;hpb=2d024ff48c74f96dd3888de7161c964e61163369;p=notmuch diff --git a/configure b/configure index 9bde2eb7..99ab74dc 100755 --- a/configure +++ b/configure @@ -340,6 +340,15 @@ else errors=$((errors + 1)) fi +if ! pkg-config --exists zlib; then + ${CC} ${zlib_cflags} -o compat/gen_zlib_pc \ + "$srcdir"/compat/gen_zlib_pc.c ${zlib_ldflags} > /dev/null 2>&1 && + compat/gen_zlib_pc > compat/zlib.pc && + PKG_CONFIG_PATH="$PKG_CONFIG_PATH":compat && + export PKG_CONFIG_PATH + rm -f compat/gen_zlib_pc +fi + printf "Checking for zlib (>= 1.2.5.2)... " have_zlib=0 if pkg-config --atleast-version=1.2.5.2 zlib; then