diff options
Diffstat (limited to 'Build/source/texk/dvipdfmx/m4/maw-time.m4')
-rw-r--r-- | Build/source/texk/dvipdfmx/m4/maw-time.m4 | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Build/source/texk/dvipdfmx/m4/maw-time.m4 b/Build/source/texk/dvipdfmx/m4/maw-time.m4 index 69a6b191353..91a6c005ddd 100644 --- a/Build/source/texk/dvipdfmx/m4/maw-time.m4 +++ b/Build/source/texk/dvipdfmx/m4/maw-time.m4 @@ -1,34 +1,34 @@ # maw-time.m4 - timezone tests -# Copyright (C) 1998 - 2008 Mark A. Wicks <mwicks@kettering.edu> +# Copyright (C) 1998 - 2009 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, +# This file is free software; the copyright holder +# gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. -# serial 1 +# serial 2 # 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)]) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], + [[-timezone;]])], + [AC_MSG_RESULT([yes]) + AC_DEFINE([HAVE_TIMEZONE], 1, + [Define if <time.h> has timezone as an external variable.])], + [AC_MSG_RESULT([no])]) ])# MAW_EXT_TIMEZONE -# MAW_TZ_HAS_TM_GMTOFF +# MAW_TM_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 +AC_DEFUN([MAW_TM_HAS_TM_GMTOFF], +[AC_MSG_CHECKING([whether struct tm has tm_gmtoff as a member]) + AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <time.h>]], + [[struct tm *tp; tp->tm_gmtoff;]])], + [AC_MSG_RESULT([yes]) + AC_DEFINE([HAVE_TM_GMTOFF], 1, + [Define if struct tm has tm_gmtoff as a member.])], + [AC_MSG_RESULT([no])]) +])# MAW_TM_HAS_TM_GMTOFF |