changeset 13319:d5bfc701e1e5

[gaim-migrate @ 15688] We probably want to know when we have libgadu compiled in... committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Wed, 22 Feb 2006 03:21:20 +0000
parents c87ab056417b
children ab67558271ff
files config.h.mingw configure.ac src/gtkdialogs.c
diffstat 3 files changed, 16 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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 <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 */
 
--- 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 <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
--- 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, "    <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