# HG changeset patch # User Evan Schoenberg # Date 1157679286 0 # Node ID 885168774b684e42b3a3ba34799224601a7e70e0 # Parent c8704dd8059b1387b4081f88fd6aba45cffdf2f8 [gaim-migrate @ 17187] At least one place (oscar.c:2294) uses the HAVE_TM_GMTOFF definition, but it was always undefined because the configure.ac did nothing about it. We now check for the tm_gmtoff member of struct tm and set the define appropriately. The block added to configure.ac was taken from KDE Kopete's configure.ac. This was particularly a problem for me because while OS X has timezone such that HAVE_TIMEZONE is defined, it's also a function, char * timezone(int zone, int dst), which wrecks havoc. committer: Tailor Script diff -r c8704dd8059b -r 885168774b68 configure.ac --- a/configure.ac Thu Sep 07 23:26:55 2006 +0000 +++ b/configure.ac Fri Sep 08 01:34:46 2006 +0000 @@ -1771,6 +1771,17 @@ AC_CHECK_HEADERS(termios.h) AC_VAR_TIMEZONE_EXTERNALS +AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff, + AC_TRY_COMPILE([ + #include + ], [ + struct tm tm; + tm.tm_gmtoff = 1; + ], 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, 1, [Define if you have a tm_gmtoff member in struct tm]) +fi + dnl ####################################################################### dnl # Check for Doxygen and dot (part of GraphViz) dnl #######################################################################