mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
configure: make it work without PKG_CHECK_MODULES
With commit c2f9b78
we added a new dependency on pkg-config for
developers which may be unwanted. This change make the configure script
still work as before if pkg-config isn't installed, it'll just use the
old zlib detection logic without pkg-config.
Reported-by: Marc Hörsken
Fixes #972
This commit is contained in:
parent
fba9dec5c5
commit
95ded2c569
@ -892,13 +892,16 @@ else
|
||||
fi
|
||||
|
||||
if test -z "$OPT_ZLIB" ; then
|
||||
PKG_CHECK_MODULES([ZLIB], [zlib],
|
||||
|
||||
m4_ifdef([PKG_CHECK_MODULES], [
|
||||
PKG_CHECK_MODULES([ZLIB], [zlib],
|
||||
[ LIBS="${ZLIB_LIBS} $LIBS"
|
||||
CPPFLAGS="${ZLIB_CFLAGS} $CPPFLAGS"
|
||||
HAVE_LIBZ="1"
|
||||
],
|
||||
[
|
||||
])
|
||||
])
|
||||
|
||||
if test -z "$HAVE_LIBZ"; then
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user