Mercurial > pidgin
comparison configure.ac @ 25499:309f6dca369a
Use _set_default_priority on gnutls versions lacking _priority_set_direct.
Versions of gnutls prior to 2.2.0 do not have gnutls_priority_set_direct.
This fixes a compilation issue in c84a41f40179331c218ac05005ce7805129049e5
on such systems. This should not represent a regression from 2.5.4 on
systems without gnutls 2.2.0 or newer.
Fixes #8526
author | Ethan Blanton <elb@pidgin.im> |
---|---|
date | Sun, 01 Mar 2009 20:56:20 +0000 |
parents | bacb1e93e7c4 |
children | c1e166da7e46 |
comparison
equal
deleted
inserted
replaced
25498:6eff00e729ac | 25499:309f6dca369a |
---|---|
1699 GNUTLS_LIBS="" | 1699 GNUTLS_LIBS="" |
1700 fi | 1700 fi |
1701 | 1701 |
1702 AC_SUBST(GNUTLS_CFLAGS) | 1702 AC_SUBST(GNUTLS_CFLAGS) |
1703 AC_SUBST(GNUTLS_LIBS) | 1703 AC_SUBST(GNUTLS_LIBS) |
1704 | |
1705 if test "x$enable_gnutls" = "xyes"; then | |
1706 AC_MSG_CHECKING(for gnutls_priority_set_direct) | |
1707 LIBS_save="$LIBS" | |
1708 LIBS="$LIBS $GNUTLS_LIBS" | |
1709 CPPFLAGS_save="$CPPFLAGS" | |
1710 CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS" | |
1711 AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <gnutls/gnutls.h>], | |
1712 [gnutls_session s; gnutls_priority_set_direct(s, NULL, NULL);])], | |
1713 [AC_DEFINE([HAVE_GNUTLS_PRIORITY_FUNCS], 1, | |
1714 [Define if your gnutls has gnutls_priority_set_direct and friends]) | |
1715 AC_MSG_RESULT(yes)], | |
1716 [AC_MSG_RESULT(no)]) | |
1717 CPPFLAGS="$CPPFLAGS_save" | |
1718 LIBS="$LIBS_save" | |
1719 fi | |
1704 | 1720 |
1705 AM_CONDITIONAL(USE_GNUTLS, test "x$enable_gnutls" = "xyes") | 1721 AM_CONDITIONAL(USE_GNUTLS, test "x$enable_gnutls" = "xyes") |
1706 | 1722 |
1707 | 1723 |
1708 dnl # | 1724 dnl # |