2005-07-21 [darko] 1.9.12cvs89
authorDarko Koruga <darko@users.sourceforge.net>
Thu, 21 Jul 2005 10:03:48 +0000 (10:03 +0000)
committerDarko Koruga <darko@users.sourceforge.net>
Thu, 21 Jul 2005 10:03:48 +0000 (10:03 +0000)
* configure.ac
link against libresolv if necessary (patch by Paul)
* src/msgcache.c
use glib's portable macros to determine endianness

ChangeLog-gtk2.claws
PATCHSETS
commitHelper
configure.ac
src/msgcache.c

index 29167c2..2aa1b0a 100644 (file)
@@ -1,3 +1,10 @@
+2005-07-21 [darko]     1.9.12cvs89
+
+       * configure.ac
+               link against libresolv if necessary (patch by Paul)
+       * src/msgcache.c
+               use glib's portable macros to determine endianness
+
 2005-07-21 [paul]      1.9.12cvs88
 
        * src/crash.c
index ebfa426..d3e8290 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.395.2.96 -r 1.395.2.97 src/summaryview.c;  ) > 1.9.12cvs86.patchset
 ( cvs diff -u -r 1.213.2.41 -r 1.213.2.42 src/folder.c;  cvs diff -u -r 1.96.2.64 -r 1.96.2.65 src/textview.c;  cvs diff -u -r 1.13.2.6 -r 1.13.2.7 src/plugins/clamav/clamav_plugin.c;  cvs diff -u -r 1.18.2.7 -r 1.18.2.8 src/plugins/spamassassin/spamassassin.c;  ) > 1.9.12cvs87.patchset
 ( cvs diff -u -r 1.23.2.10 -r 1.23.2.11 src/crash.c;  cvs diff -u -r 1.4.2.13 -r 1.4.2.14 src/gtk/about.c;  ) > 1.9.12cvs88.patchset
+( cvs diff -u -r 1.1.2.24 -r 1.1.2.25 commitHelper;  cvs diff -u -r 1.654.2.723 -r 1.654.2.724 configure.ac;  cvs diff -u -r 1.16.2.22 -r 1.16.2.23 src/msgcache.c;  ) > 1.9.12cvs89.patchset
index e5f5275..04ed44d 100644 (file)
@@ -51,7 +51,7 @@ fi;
 if [ "$name" == "dinh" ]; then
        name="hoa";
 fi;
-if [ "$name" == "f" ]; then
+if [ "$name" == "f" -o "$name" == "darkok" ]; then
        name="darko";
 fi;
 
index baebb6d..ebfecbb 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=12
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=88
+EXTRA_VERSION=89
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
@@ -419,6 +419,29 @@ else
 fi
 AC_SUBST(PTHREAD_LIBS)
 
+t_oldLibs="$LIBS"
+LIBS="$LIBS"
+ac_cv_var__res_options=no
+AC_TRY_LINK([#include <sys/types.h>
+            #include <sys/socket.h>
+            #include <netinet/in.h>
+            #include <arpa/nameser.h>
+            #include <resolv.h>],
+               [_res.options = RES_INIT;],
+               ac_cv_var__res_options=yes);
+if test "$ac_cv_var__res_options" != "yes"; then
+       LIBRESOLV="-lresolv"
+fi
+LIBS="$t_oldLibs"
+
+if test "x$LIBRESOLV" = "x"; then
+       AC_CHECK_LIB(resolv, res_query, [LIBRESOLV=-lresolv])
+       LIBS="$t_oldLibs"
+fi
+AC_SUBST(LIBRESOLV)
+
+LIBS="$LIBS $LIBRESOLV"
+                
 dnl for LDAP support in addressbook
 dnl no check for libraries; dynamically loaded
 AC_ARG_ENABLE(ldap,
index 18ff7ca..06eed7f 100644 (file)
 
 #include <time.h>
 
-#include <endian.h>
-
 #include "msgcache.h"
 #include "utils.h"
 #include "procmsg.h"
 #include "codeconv.h"
 
-#ifdef __BIG_ENDIAN__
+#if G_BYTE_ORDER == G_BIG_ENDIAN
 #define bswap_32(x) \
      ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >>  8) | \
       (((x) & 0x0000ff00) <<  8) | (((x) & 0x000000ff) << 24))