diff options
Diffstat (limited to 'gl/m4/mktime.m4')
| -rw-r--r-- | gl/m4/mktime.m4 | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gl/m4/mktime.m4 b/gl/m4/mktime.m4 index e9d31f35..eca6c4d8 100644 --- a/gl/m4/mktime.m4 +++ b/gl/m4/mktime.m4 | |||
| @@ -1,9 +1,11 @@ | |||
| 1 | # serial 37 | 1 | # mktime.m4 |
| 2 | dnl Copyright (C) 2002-2003, 2005-2007, 2009-2023 Free Software Foundation, | 2 | # serial 42 |
| 3 | dnl Copyright (C) 2002-2003, 2005-2007, 2009-2025 Free Software Foundation, | ||
| 3 | dnl Inc. | 4 | dnl Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 5 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 6 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 7 | dnl with or without modifications, as long as this notice is preserved. |
| 8 | dnl This file is offered as-is, without any warranty. | ||
| 7 | 9 | ||
| 8 | dnl From Jim Meyering. | 10 | dnl From Jim Meyering. |
| 9 | 11 | ||
| @@ -264,9 +266,9 @@ main () | |||
| 264 | [gl_cv_func_working_mktime=yes], | 266 | [gl_cv_func_working_mktime=yes], |
| 265 | [gl_cv_func_working_mktime=no], | 267 | [gl_cv_func_working_mktime=no], |
| 266 | [case "$host_os" in | 268 | [case "$host_os" in |
| 267 | # Guess no on native Windows. | 269 | # Guess no on native Windows. |
| 268 | mingw*) gl_cv_func_working_mktime="guessing no" ;; | 270 | mingw* | windows*) gl_cv_func_working_mktime="guessing no" ;; |
| 269 | *) gl_cv_func_working_mktime="$gl_cross_guess_normal" ;; | 271 | *) gl_cv_func_working_mktime="$gl_cross_guess_normal" ;; |
| 270 | esac | 272 | esac |
| 271 | ]) | 273 | ]) |
| 272 | fi | 274 | fi |
| @@ -280,7 +282,6 @@ AC_DEFUN([gl_FUNC_MKTIME], | |||
| 280 | AC_REQUIRE([AC_CANONICAL_HOST]) | 282 | AC_REQUIRE([AC_CANONICAL_HOST]) |
| 281 | AC_REQUIRE([gl_FUNC_MKTIME_WORKS]) | 283 | AC_REQUIRE([gl_FUNC_MKTIME_WORKS]) |
| 282 | 284 | ||
| 283 | REPLACE_MKTIME=0 | ||
| 284 | if test "$gl_cv_func_working_mktime" != yes; then | 285 | if test "$gl_cv_func_working_mktime" != yes; then |
| 285 | REPLACE_MKTIME=1 | 286 | REPLACE_MKTIME=1 |
| 286 | AC_DEFINE([NEED_MKTIME_WORKING], [1], | 287 | AC_DEFINE([NEED_MKTIME_WORKING], [1], |
| @@ -288,7 +289,7 @@ AC_DEFUN([gl_FUNC_MKTIME], | |||
| 288 | with the algorithmic workarounds.]) | 289 | with the algorithmic workarounds.]) |
| 289 | fi | 290 | fi |
| 290 | case "$host_os" in | 291 | case "$host_os" in |
| 291 | mingw*) | 292 | mingw* | windows*) |
| 292 | REPLACE_MKTIME=1 | 293 | REPLACE_MKTIME=1 |
| 293 | AC_DEFINE([NEED_MKTIME_WINDOWS], [1], | 294 | AC_DEFINE([NEED_MKTIME_WINDOWS], [1], |
| 294 | [Define if the compilation of mktime.c should define 'mktime' | 295 | [Define if the compilation of mktime.c should define 'mktime' |
