From: Andreas Metzler Date: Sat, 5 Feb 2011 09:18:25 +0000 (+0100) Subject: [PATCH 1/4] adapt pkg-config file for switch from AM_PATH_LIBGCRYPT to AC_LIB_HAVE_LI... X-Git-Tag: gnutls_2_99_0~335 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b74bb9eaafcc7835c4b9803278f23aac4c0519fa;p=thirdparty%2Fgnutls.git [PATCH 1/4] adapt pkg-config file for switch from AM_PATH_LIBGCRYPT to AC_LIB_HAVE_LINKFLAGS [PATCH 2/4] pkg-config: Move libtasn1 from Libs.private to Requires.private since libtasn1 provides a .pc file. [PATCH 3/4] pkg-config: drop @LIBGNUTLS_LIBS@ from Libs.private. This library only contains gnutls itself nowadays, which is in Libs already. [PATCH 4/4] pkg-config: If gnutls is built with zlib support list zlib in Requires.private. --- diff --git a/lib/configure.ac b/lib/configure.ac index f6793bb42b..1f667734e8 100644 --- a/lib/configure.ac +++ b/lib/configure.ac @@ -80,6 +80,15 @@ else AC_MSG_RESULT(no) fi +if test x$ac_zlib != xno; then + if test x$GNUTLS_REQUIRES_PRIVATE = x; then + GNUTLS_REQUIRES_PRIVATE="Requires.private: zlib" + else + GNUTLS_REQUIRES_PRIVATE="$GNUTLS_REQUIRES_PRIVATE , zlib" + fi +fi +AC_SUBST(GNUTLS_REQUIRES_PRIVATE) + lgl_INIT AC_CHECK_FUNCS(getrusage,,) diff --git a/lib/gnutls.pc.in b/lib/gnutls.pc.in index 5898ca1a72..3e71f9e84e 100644 --- a/lib/gnutls.pc.in +++ b/lib/gnutls.pc.in @@ -20,5 +20,6 @@ Description: Transport Security Layer implementation for the GNU system URL: http://www.gnu.org/software/gnutls/ Version: @VERSION@ Libs: -L${libdir} -lgnutls -Libs.private: @LIBGNUTLS_LIBS@ @LTLIBTASN1@ @LTLIBPAKCHOIS@ +Libs.private: @LTLIBPAKCHOIS@ @LTLIBGCRYPT@ +@GNUTLS_REQUIRES_PRIVATE@ Cflags: -I${includedir} diff --git a/lib/m4/hooks.m4 b/lib/m4/hooks.m4 index f7d84f0f61..42e45574b0 100644 --- a/lib/m4/hooks.m4 +++ b/lib/m4/hooks.m4 @@ -94,6 +94,10 @@ fi AC_MSG_RESULT($included_libtasn1) AM_CONDITIONAL(ENABLE_MINITASN1, test "$included_libtasn1" = "yes") + if test "$included_libtasn1" = "no"; then + GNUTLS_REQUIRES_PRIVATE="Requires.private: libtasn1" + fi + AC_ARG_WITH(included-pakchois, AS_HELP_STRING([--with-included-pakchois], [use the included pakchois]), included_pakchois=$withval,