# HG changeset patch # User Richard Laager # Date 1140578480 0 # Node ID d5bfc701e1e571b00ea7b4c17a5ab80e3c328c33 # Parent c87ab056417b40afcdac9a9c8c3de874df6438c1 [gaim-migrate @ 15688] We probably want to know when we have libgadu compiled in... committer: Tailor Script diff -r c87ab056417b -r d5bfc701e1e5 config.h.mingw --- a/config.h.mingw Wed Feb 22 03:07:46 2006 +0000 +++ b/config.h.mingw Wed Feb 22 03:21:20 2006 +0000 @@ -204,6 +204,9 @@ /* Define if your file defines LC_MESSAGES. */ /* #define HAVE_LC_MESSAGES 1 */ +/* Define to 1 if you have libgadu. */ +#define HAVE_LIBGADU 1 + /* Define to 1 if you have the `nsl' library (-lnsl). */ /* #define HAVE_LIBNSL 1 */ diff -r c87ab056417b -r d5bfc701e1e5 configure.ac --- a/configure.ac Wed Feb 22 03:07:46 2006 +0000 +++ b/configure.ac Wed Feb 22 03:21:20 2006 +0000 @@ -309,17 +309,14 @@ if test "x$gadu_libs" = "xyes"; then AC_MSG_CHECKING(for libgadu GPL compatibility) - AC_TRY_COMPILE([], [ -#include -int main() -{ + AC_TRY_COMPILE([#include ], [ #ifdef __GG_LIBGADU_HAVE_OPENSSL #error "libgadu is not compatible with the GPL when compiled with OpenSSL support." #endif - return 0; -} ], [ AC_MSG_RESULT(yes) + AC_DEFINE([HAVE_LIBGADU], [1], + [Define to 1 if you have libgadu.]) ], [ AC_MSG_RESULT(no) echo diff -r c87ab056417b -r d5bfc701e1e5 src/gtkdialogs.c --- a/src/gtkdialogs.c Wed Feb 22 03:07:46 2006 +0000 +++ b/src/gtkdialogs.c Wed Feb 22 03:21:20 2006 +0000 @@ -412,6 +412,16 @@ #endif #endif +#ifdef HAVE_LIBGADU +#ifdef _WIN32 + g_string_append(str, " Gadu-Gadu library (libgadu): Internal
"); +#else + g_string_append(str, " Gadu-Gadu library (libgadu): Enabled
"); +#endif +#else + g_string_append(str, " Gadu-Gadu library (libgadu): Disabled
"); +#endif + #ifdef USE_GTKSPELL g_string_append(str, " GtkSpell: Enabled
"); #else