From: Sergio Durigan Junior Date: Mon, 14 Apr 2014 06:00:44 +0000 (-0300) Subject: Update/improve the way we check for libraries X-Git-Tag: v2014.2~5 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=02f055380b30da25db20b828b71be328b2aa73e2;hp=02f055380b30da25db20b828b71be328b2aa73e2;p=cascardo%2Frnetclient.git 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. ---