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)
commit02f055380b30da25db20b828b71be328b2aa73e2
treeec5deed089da8e4faeedd914ee0a78879f51ed57
parent26951e1d5160db32441fe6fbac6fb05bb2666f8a
Update/improve the way we check for libraries

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.
configure.ac