summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Laager <rlaager@pidgin.im>2006-02-22 03:21:20 +0000
committerRichard Laager <rlaager@pidgin.im>2006-02-22 03:21:20 +0000
commit7277f55ad77033052d64bd7ba222b224ef2d1603 (patch)
tree97ca59b3ea8607cff0f85f613cedf53eeccc0edd
parent50c392a0174c00411626cea2da07dfb74ca27a94 (diff)
downloadpidgin-7277f55ad77033052d64bd7ba222b224ef2d1603.tar.gz
[gaim-migrate @ 15688]
We probably want to know when we have libgadu compiled in...
-rw-r--r--config.h.mingw3
-rw-r--r--configure.ac9
-rw-r--r--src/gtkdialogs.c10
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