mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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>
|
||||
|
||||
16
acinclude.m4
16
acinclude.m4
@@ -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
|
||||
])
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user