summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfmx/dvipdfmx-20110305/m4/maw-time.m4
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-03-07 17:11:26 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-03-07 17:11:26 +0000
commitd2ccbc405f5e3e2b19679e4729617b0ef427ac28 (patch)
treea6b2966a9b41fffdda3e5477966d208d7d29360d /Build/source/texk/dvipdfmx/dvipdfmx-20110305/m4/maw-time.m4
parente3b8dc2318b24a320bd0f057f5be50b89ef2241a (diff)
dvipdfmx 20110305
git-svn-id: svn://tug.org/texlive/trunk@21626 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfmx/dvipdfmx-20110305/m4/maw-time.m4')
-rw-r--r--Build/source/texk/dvipdfmx/dvipdfmx-20110305/m4/maw-time.m434
1 files changed, 34 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfmx/dvipdfmx-20110305/m4/maw-time.m4 b/Build/source/texk/dvipdfmx/dvipdfmx-20110305/m4/maw-time.m4
new file mode 100644
index 00000000000..69a6b191353
--- /dev/null
+++ b/Build/source/texk/dvipdfmx/dvipdfmx-20110305/m4/maw-time.m4
@@ -0,0 +1,34 @@
+# maw-time.m4 - timezone tests
+# Copyright (C) 1998 - 2008 Mark A. Wicks <mwicks@kettering.edu>
+# Kettering University
+#
+# This file is free software; the copyright holders
+# give unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# serial 1
+
+# MAW_EXT_TIMEZONE
+# ----------------
+AC_DEFUN([MAW_EXT_TIMEZONE],
+[AC_MSG_CHECKING([whether time.h defines timezone as an external variable])
+ AC_TRY_LINK(
+ [#include <time.h>],
+ [-timezone;],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_TIMEZONE, [], [external timezone variable])],
+ [AC_MSG_RESULT(no)])
+])# MAW_EXT_TIMEZONE
+
+# MAW_TZ_HAS_TM_GMTOFF
+# --------------------
+AC_DEFUN([MAW_TZ_HAS_TM_GMTOFF],
+[AC_MSG_CHECKING([whether struct tz has tm_gmtoff as a member])
+ AC_TRY_COMPILE(
+ [#include <time.h>],
+ [struct tm *tp; tp->tm_gmtoff],
+ [AC_MSG_RESULT(yes)
+ AC_DEFINE(HAVE_TM_GMTOFF, [], [struct tz has tm_gmtoff])],
+ [AC_MSG_RESULT(no)])
+])# MAW_TZ_HAS_TM_GMTOFF
+