comparison configure.ac @ 14471:885168774b68

[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 <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Fri, 08 Sep 2006 01:34:46 +0000
parents b1a6effcb37a
children ca36763497d9
comparison
equal deleted inserted replaced
14470:c8704dd8059b 14471:885168774b68
1768 AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h) 1768 AC_CHECK_HEADERS(malloc.h paths.h sgtty.h stdarg.h sys/cdefs.h)
1769 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h) 1769 AC_CHECK_HEADERS(sys/file.h sys/filio.h sys/ioctl.h sys/msgbuf.h)
1770 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h) 1770 AC_CHECK_HEADERS(sys/select.h sys/uio.h sys/utsname.h sys/wait.h)
1771 AC_CHECK_HEADERS(termios.h) 1771 AC_CHECK_HEADERS(termios.h)
1772 AC_VAR_TIMEZONE_EXTERNALS 1772 AC_VAR_TIMEZONE_EXTERNALS
1773
1774 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
1775 AC_TRY_COMPILE([
1776 #include <time.h>
1777 ], [
1778 struct tm tm;
1779 tm.tm_gmtoff = 1;
1780 ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
1781 if test $ac_cv_struct_tm_gmtoff = yes; then
1782 AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm])
1783 fi
1773 1784
1774 dnl ####################################################################### 1785 dnl #######################################################################
1775 dnl # Check for Doxygen and dot (part of GraphViz) 1786 dnl # Check for Doxygen and dot (part of GraphViz)
1776 dnl ####################################################################### 1787 dnl #######################################################################
1777 AC_ARG_ENABLE(doxygen, 1788 AC_ARG_ENABLE(doxygen,