# HG changeset patch # User Elliott Sales de Andrade # Date 1268197843 0 # Node ID 9472a82eb553ab53690619dfe57df2d7c39ebe52 # Parent a0e90156741ce602a2657c680ec9010da6960477 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. diff -r a0e90156741c -r 9472a82eb553 configure.ac --- a/configure.ac Wed Mar 10 05:10:11 2010 +0000 +++ b/configure.ac Wed Mar 10 05:10:43 2010 +0000 @@ -1049,9 +1049,28 @@ #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 ]], [[ +#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