diff options
-rw-r--r-- | config.h.mingw | 3 | ||||
-rw-r--r-- | configure.ac | 9 | ||||
-rw-r--r-- | src/gtkdialogs.c | 10 |
3 files changed, 16 insertions, 6 deletions
diff --git a/config.h.mingw b/config.h.mingw index b20b6b429b..1061753311 100644 --- a/config.h.mingw +++ b/config.h.mingw @@ -204,6 +204,9 @@ /* Define if your <locale.h> 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 --git a/configure.ac b/configure.ac index ed8371d1ac..82501744b6 100644 --- a/configure.ac +++ b/configure.ac @@ -309,17 +309,14 @@ fi if test "x$gadu_libs" = "xyes"; then AC_MSG_CHECKING(for libgadu GPL compatibility) - AC_TRY_COMPILE([], [ -#include <libgadu.h> -int main() -{ + AC_TRY_COMPILE([#include <libgadu.h>], [ #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 --git a/src/gtkdialogs.c b/src/gtkdialogs.c index bac260f857..9effcfe6d3 100644 --- a/src/gtkdialogs.c +++ b/src/gtkdialogs.c @@ -412,6 +412,16 @@ g_string_append(str, "<br/> <b>Library Support</b><br/>"); #endif #endif +#ifdef HAVE_LIBGADU +#ifdef _WIN32 + g_string_append(str, " <b>Gadu-Gadu library (libgadu):</b> Internal<br/>"); +#else + g_string_append(str, " <b>Gadu-Gadu library (libgadu):</b> Enabled<br/>"); +#endif +#else + g_string_append(str, " <b>Gadu-Gadu library (libgadu):</b> Disabled<br/>"); +#endif + #ifdef USE_GTKSPELL g_string_append(str, " <b>GtkSpell:</b> Enabled<br/>"); #else |