Skip to content
Permalink
Browse files

configure: add pkg-config check for zlib

It exists, so why not use it? Helps me get rid of additional
search path related flags in addition to PKG_CONFIG_{PATH,LIBDIR}.
  • Loading branch information
jeeb committed May 5, 2018
1 parent db8777c commit 351fbff9339ab631913f0de1e125b489c320189d
Showing with 2 additions and 1 deletion.
  1. +2 −1 configure
@@ -5933,7 +5933,8 @@ if ! disabled pthreads && ! enabled w32threads && ! enabled os2threads; then
fi
fi

enabled zlib && check_lib zlib zlib.h zlibVersion -lz
enabled zlib && { check_pkg_config zlib zlib "zlib.h" zlibVersion ||
check_lib zlib zlib.h zlibVersion -lz; }
enabled bzlib && check_lib bzlib bzlib.h BZ2_bzlibVersion -lbz2
enabled lzma && check_lib lzma lzma.h lzma_version_number -llzma

0 comments on commit 351fbff

Please sign in to comment.