Better to check for zlib using autoconf and not pkg-config.
seph
seph at directionless.org
Thu Aug 11 19:02:01 EDT 2011
---
autogen.sh | 7 -------
configure.ac | 2 +-
2 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/autogen.sh b/autogen.sh
index 2aff2b6..c4d17af 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -23,10 +23,3 @@ aclocal $ACLOCAL_INCLUDES
${LIBTOOLIZE} --automake --copy --force
automake --foreign --add-missing
autoconf
-
-if [ `uname` == "Darwin" ]; then
- echo -e "\n\n"
- echo "Before you run configure, you'll need to tell pkg-config about zlib"
- echo 'export ZLIB_CFLAGS=" "'
- echo 'export ZLIB_LIBS=" "'
-fi
diff --git a/configure.ac b/configure.ac
index 753474d..6673db4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,7 +20,7 @@ AC_ARG_WITH([openssl],
AC_PROG_LIBTOOL
PKG_CHECK_MODULES(LIBXML2, libxml-2.0)
-PKG_CHECK_MODULES(ZLIB, zlib)
+AC_CHECK_LIB(zlib, zlib)
libproxy_hdr=no
AC_CHECK_HEADER([libproxy.h],
--
1.7.3.2
--=-=-=--
More information about the openconnect-devel
mailing list