Update/improve the way we check for libraries
authorSergio Durigan Junior <sergiodj@sergiodj.net>
Mon, 14 Apr 2014 06:00:44 +0000 (03:00 -0300)
committerSergio Durigan Junior <sergiodj@sergiodj.net>
Mon, 14 Apr 2014 06:00:44 +0000 (03:00 -0300)
Using PKG_CHECK_MODULES is not very neat because the user might want to
be able to provide a different $LDFLAGS, and this would break the build.
Instead, we should be using autoconf's default
AC_CHECK_LIB/AC_SEARCH_LIBS (in our case, I chosed the latter).  This
way, we don't need to modify $LIBS inside configure.ac.

This patch also adds a check for zlib, and updates $CFLAGS accordingly
based on the output of 'pkg-config' for both GNUTLS and zlib libraries.


No differences found