diff options
Diffstat (limited to 'm4/gmtime_tm_gmtoff.m4')
-rw-r--r-- | m4/gmtime_tm_gmtoff.m4 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/m4/gmtime_tm_gmtoff.m4 b/m4/gmtime_tm_gmtoff.m4 new file mode 100644 index 0000000..57df6ae --- /dev/null +++ b/m4/gmtime_tm_gmtoff.m4 @@ -0,0 +1,14 @@ +dnl * do we have tm_gmtoff +AC_DEFUN([DOVECOT_TM_GMTOFF], [ + AC_MSG_CHECKING([for tm_gmtoff]) + AC_CACHE_VAL(i_cv_field_tm_gmtoff, + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ + #include <time.h>]], + [[struct tm *tm; return tm->tm_gmtoff;]])], + [i_cv_field_tm_gmtoff=yes], + [i_cv_field_tm_gmtoff=no])]) + if test $i_cv_field_tm_gmtoff = yes; then + AC_DEFINE(HAVE_TM_GMTOFF,, [Define if you have struct tm->tm_gmtoff]) + fi + AC_MSG_RESULT($i_cv_field_tm_gmtoff) +]) |