diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-05-25 13:31:22 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-05-25 13:31:22 +0200 |
commit | 5d9b79251c54a73a8a79b2b2aa185e8516d0b402 (patch) | |
tree | 1dc6072a8e967d3423ad3d7e7af777fb5e31db00 | |
parent | 0602496cb6cedc917abbd0a12468e9329c6967e1 (diff) | |
parent | 0a69d7bf97b76852c25b7f6634204c5fb5532487 (diff) |
Merging from Jelmer.
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | protocols/nogaim.h | 2 | ||||
-rw-r--r-- | util.c | 7 |
3 files changed, 13 insertions, 2 deletions
@@ -162,24 +162,28 @@ if [ -z "$PKG_CONFIG" ]; then PKG_CONFIG=pkg-config fi +GLIB=0 + if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then cat<<EOF>>Makefile.settings EFLAGS+=`$PKG_CONFIG --libs glib-2.0 gmodule-2.0` CFLAGS+=`$PKG_CONFIG --cflags glib-2.0 gmodule-2.0` EOF echo '#define GLIB2' >> config.h + GLIB=2 elif type glib-config > /dev/null 2> /dev/null; then cat<<EOF>>Makefile.settings EFLAGS+=`glib-config --libs` CFLAGS+=`glib-config --cflags` EOF echo '#define GLIB1' >> config.h + GLIB=1 else echo 'Cannot find glib development libraries, aborting. (Install libglib-dev?)' exit 1; fi -if [ -r /usr/include/iconv.h ]; then +if [ GLIB = 1 -o -r /usr/include/iconv.h ]; then :; elif [ -r /usr/local/include/iconv.h ]; then echo CFLAGS+=-I/usr/local/include >> Makefile.settings; diff --git a/protocols/nogaim.h b/protocols/nogaim.h index 282a2455..8744054a 100644 --- a/protocols/nogaim.h +++ b/protocols/nogaim.h @@ -51,7 +51,7 @@ #define SELF_ALIAS_LEN 400 #define BUDDY_ALIAS_MAXLEN 388 /* because MSN names can be 387 characters */ -#define WEBSITE "http://www.bitlee.org/" +#define WEBSITE "http://www.bitlbee.org/" #define IM_FLAG_AWAY 0x0020 #define OPT_CONN_HTML 0x00000001 #define OPT_LOGGED_IN 0x00010000 @@ -38,7 +38,14 @@ #include <ctype.h> #include <glib.h> #include <time.h> +#ifdef GLIB2 +#define iconv_t GIConv +#define iconv_open g_iconv_open +#define iconv_close g_iconv_close +#define iconv g_iconv +#else #include <iconv.h> +#endif void strip_linefeed(gchar *text) { |