summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/configure.in.in
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-12-13 06:26:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-12-13 06:26:27 +0000
commit9fab5b8a216e283e563f3457315715672bc8b55a (patch)
treec1251952e4e0e28fad0bca829d49335ff15b6e98 /kopete/protocols/configure.in.in
parentbcb704366cb5e333a626c18c308c7e0448a8e69f (diff)
downloadtdenetwork-9fab5b8a216e283e563f3457315715672bc8b55a.tar.gz
tdenetwork-9fab5b8a216e283e563f3457315715672bc8b55a.zip
Update to Trinity 3.5.11
Will need to watch for commit warnings and rebuild test git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1061808 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/configure.in.in')
-rw-r--r--kopete/protocols/configure.in.in16
1 files changed, 14 insertions, 2 deletions
diff --git a/kopete/protocols/configure.in.in b/kopete/protocols/configure.in.in
index bc946d92..05da3ea5 100644
--- a/kopete/protocols/configure.in.in
+++ b/kopete/protocols/configure.in.in
@@ -40,8 +40,20 @@ if test "x$with_external_libgadu" != xno; then
int main()
{
#if defined __GG_LIBGADU_HAVE_PTHREAD && defined GG_LOGIN60
- int maj, min, date;
- sscanf( gg_libgadu_version(), "%u.%u.%u", &maj,&min,&date );
+ int maj, min, date, items;
+ const char *libgadu_version = gg_libgadu_version();
+
+ items = sscanf( libgadu_version, "%u.%u.%u", &maj,&min,&date );
+
+ if ( items != 3 ) { /* version in YYYYDDMM format only */
+ sscanf( libgadu_version, "%u", &date );
+
+ if ( date < 20040520 )
+ return 1;
+ else
+ return 0;
+ }
+
if ( maj != 1 ) {
return 1;
}