pidgin: 60c9671d: Don't use old versions of libgadu if the...
qulogic at pidgin.im
qulogic at pidgin.im
Wed Mar 10 00:25:53 EST 2010
-----------------------------------------------------------------
Revision: 60c9671daa2b521f9de4c0980f8798876959570e
Ancestor: 87b17dbaabb71cb46ea5e7a233125baa6ab180a8
Author: qulogic at pidgin.im
Date: 2010-03-10T05:10:43
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/60c9671daa2b521f9de4c0980f8798876959570e
Modified files:
configure.ac
ChangeLog:
Don't use old versions of libgadu if the user specified a location for the
headers/libraries. GG_DEFAULT_PROTOCOL_VERSION seemed the best bet since
GG_LIBGADU_VERSION is a string, but maybe someone can find something that's
better.
Refs #10542.
-------------- next part --------------
============================================================
--- configure.ac 4911f2319f80ab205dbecde535e404c50c4f0f9f
+++ configure.ac d498f747efc43b80aacde20129171c1fb08bda58
@@ -1049,9 +1049,28 @@ if test "x$gadu_libs" = "xyes"; then
#error "libgadu is not compatible with the GPL when compiled with OpenSSL support."
#endif
]])], [
- AC_MSG_RESULT(yes)
- AC_DEFINE([HAVE_LIBGADU], [1],
- [Define to 1 if you have libgadu.])
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgadu.h>]], [[
+#if GG_DEFAULT_PROTOCOL_VERSION < 0x2e
+#error "Your libgadu version is too old. libpurple requires 1.9.0-rc2 or higher."
+#endif
+ ]])], [
+ AC_MSG_RESULT(yes)
+ AC_DEFINE([HAVE_LIBGADU], [1],
+ [Define to 1 if you have libgadu.])
+ ], [
+ AC_MSG_RESULT(no)
+ echo
+ echo
+ echo "Your supplied copy of libgadu is too old."
+ echo "Install version 1.9.0-rc2 or newer."
+ echo "Then rerun this ./configure"
+ echo
+ echo "Falling back to using our own copy of libgadu"
+ echo
+ GADU_LIBS=""
+ GADU_CFLAGS=""
+ gadu_libs=no
+ ])
], [
AC_MSG_RESULT(no)
echo
More information about the Commits
mailing list