Update of /cvsroot/gaim/gaim
In directory usw-pr-cvs1:/tmp/cvs-serv7944
Modified Files:
acconfig.h configure.ac
Log Message:
Now EVERYBODY can compile! Whee!
Index: acconfig.h
===================================================================
RCS file: /cvsroot/gaim/gaim/acconfig.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- acconfig.h 15 Apr 2002 03:23:08 -0000 1.15
+++ acconfig.h 21 Apr 2002 22:08:41 -0000 1.16
@@ -23,3 +23,5 @@
#undef STATIC_PROTO_INIT
#endif
#undef socklen_t
+#undef HAVE_TM_GMTOFF
+#undef HAVE_TIMEZONE
Index: configure.ac
===================================================================
RCS file: /cvsroot/gaim/gaim/configure.ac,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- configure.ac 18 Apr 2002 01:22:37 -0000 1.54
+++ configure.ac 21 Apr 2002 22:08:41 -0000 1.55
@@ -256,6 +256,35 @@
AC_SUBST(XSS_LIBS)
+dnl Shamelessly stolen from gnome-pim
+dnl This determines, if struct tm containes tm_gmtoff field
+dnl or we should use extern long int timezone.
+dnl Actually this should go into acinclude.m4
+AC_DEFUN(GC_TIMEZONE,
+[AC_REQUIRE([AC_STRUCT_TM])dnl
+AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;],
+ ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)])
+if test "$ac_cv_struct_tm_gmtoff" = yes; then
+ AC_DEFINE(HAVE_TM_GMTOFF)
+else
+ AC_CACHE_CHECK(for timezone, ac_cv_var_timezone,
+[AC_TRY_LINK(
+changequote(<<, >>)dnl
+<<#include <time.h>
+extern long int timezone;>>,
+changequote([, ])dnl
+[long int l = timezone;], ac_cv_var_timezone=yes, ac_cv_var_timezone=no)])
+ if test $ac_cv_var_timezone = yes; then
+ AC_DEFINE(HAVE_TIMEZONE)
+ fi
+fi
+])
+
+GC_TIMEZONE
+
+
dnl This was taken straight from X-Chat.
dnl X-Chat is the greatest application ever, not only
|