/pidgin/main: 99a1117a296f: Gadu-Gadu: revert things accidentall...
Tomasz Wasilczyk
twasilczyk at pidgin.im
Mon Jun 16 19:43:52 EDT 2014
Changeset: 99a1117a296ff315326ccdaca886f707135e77cb
Author: Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date: 2014-06-17 01:43 +0200
Branch: release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/99a1117a296f
Description:
Gadu-Gadu: revert things accidentally removed, fix build
diffstat:
configure.ac | 28 ++++++++++++++++++++++++++++
libpurple/protocols/gg/Makefile.am | 8 ++------
pidgin/Makefile.am | 4 ----
3 files changed, 30 insertions(+), 10 deletions(-)
diffs (75 lines):
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -1048,6 +1048,34 @@ fi
AM_CONDITIONAL(HAVE_LIBGADU, test "x$have_libgadu" = "xyes")
if test "x$have_libgadu" = "xyes"; then
AC_DEFINE(HAVE_LIBGADU, 1, [Linked with external libgadu])
+else
+ AC_CHECK_LIB(gnutls, gnutls_certificate_set_x509_system_trust, [gg_have_gnutls_csxst=yes], [gg_have_gnutls_csxst=no])
+
+ gg_gnutls_sts=""
+ if test "x$gg_have_gnutls_csxst" = "xno"; then
+ for i in /etc/ssl/ca-bundle.pem \
+ /etc/ssl/certs/ca-certificates.crt \
+ /etc/pki/tls/cert.pem \
+ /usr/local/share/certs/ca-root-nss.crt \
+ /etc/ssl/cert.pem
+ do
+ if test -e $i; then
+ gg_gnutls_sts="$i"
+ break
+ fi
+ done
+ fi
+
+ if test "x$gg_have_gnutls_csxst" = "xyes"; then
+ AC_DEFINE(HAVE_GNUTLS_CERTIFICATE_SET_X509_SYSTEM_TRUST, 1, [gnutls contains the gnutls_certificate_set_x509_system_trust function])
+ fi
+ if test "x$gg_gnutls_sts" != "x"; then
+ AC_DEFINE_UNQUOTED(GG_CONFIG_GNUTLS_SYSTEM_TRUST_STORE, ["$gg_gnutls_sts"], [use the given file as GnuTLS default trust store])
+ fi
+
+ PKG_CHECK_MODULES([GNUTLS_2_10], [gnutls >= 2.10.0], [
+ AC_DEFINE([HAVE_GNUTLS_2_10], [], [Defined if GnuTLS >= 2.10.0 is available.])
+ ],:)
fi
AC_SUBST(LIBGADU_LIBS)
diff --git a/libpurple/protocols/gg/Makefile.am b/libpurple/protocols/gg/Makefile.am
--- a/libpurple/protocols/gg/Makefile.am
+++ b/libpurple/protocols/gg/Makefile.am
@@ -89,17 +89,13 @@ INTGG_SOURCES = \
lib/tvbuilder.c \
lib/tvbuilder.h
-INTGG_LIBS = $(ZLIB_LIBS)
+INTGG_LIBS = $(ZLIB_LIBS) $(GNUTLS_LIBS)
INTGG_CFLAGS = \
-I$(top_srcdir)/libpurple/protocols/gg/lib \
$(ZLIB_CFLAGS) \
+ $(GNUTLS_CFLAGS) \
-DGG_IGNORE_DEPRECATED
-if USE_GNUTLS
- INTGG_LIBS += $(GNUTLS_LIBS)
- INTGG_CFLAGS += $(GNUTLS_CFLAGS)
-endif
-
endif
GGSOURCES = \
diff --git a/pidgin/Makefile.am b/pidgin/Makefile.am
--- a/pidgin/Makefile.am
+++ b/pidgin/Makefile.am
@@ -160,10 +160,6 @@ pidgin_LDADD = \
$(GTK_LIBS) \
$(top_builddir)/libpurple/libpurple.la
-if USE_INTERNAL_LIBGADU
-INTGG_CFLAGS = -DUSE_INTERNAL_LIBGADU
-endif
-
AM_CPPFLAGS = \
-DDATADIR=\"$(datadir)\" \
-DLIBDIR=\"$(libdir)/pidgin/\" \
More information about the Commits
mailing list