2001-05-29 Dave Peticolas <dave@krondo.com>

* configure.in: call new macro below

	* acinclude.m4: add macro to check for tm_gmtoff struct tm member


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4333 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Dave Peticolas
2001-05-29 22:41:41 +00:00
parent 11423a3076
commit 7d39624cd9
3 changed files with 22 additions and 0 deletions

View File

@@ -1,5 +1,9 @@
2001-05-29 Dave Peticolas <dave@krondo.com>
* configure.in: call new macro below
* acinclude.m4: add macro to check for tm_gmtoff struct tm member
* src/engine/date.c: handle all uses of nl_langinfo.
2001-05-30 Robert Graham Merkel <rgmerk@mira.net>

View File

@@ -277,3 +277,19 @@ AC_DEFUN([LANGINFO_D_FMT_CHECK],
fi
])
AC_DEFUN([STRUCT_TM_GMTOFF_CHECK],
[
AC_CACHE_CHECK([for the tm_gmtoff member of struct tm], am_cv_struct_tm_gmtoff,
[AC_TRY_LINK([#include <time.h>
#define _GNU_SOURCE
#define __EXTENSIONS__],
[struct tm tm;
tm.tm_gmtoff = 0;],
am_cv_struct_tm_gmtoff=yes,
am_cv_struct_tm_gmtoff=no)
])
if test $am_cv_struct_tm_gmtoff = yes; then
AC_DEFINE(HAVE_STRUCT_TM_GMTOFF, 1,
[Define if you have the tm_gmtoff member of struct tm.])
fi
])

View File

@@ -45,6 +45,8 @@ AC_HEADER_STDC
AC_CHECK_HEADERS(limits.h)
AC_CHECK_FUNCS(stpcpy memcpy timegm)
STRUCT_TM_GMTOFF_CHECK
AM_PATH_GLIB
if test ${no_glib}x = yesx