Blame m4/timegm.m4

Packit 33f14e
# timegm.m4 serial 12
Packit 33f14e
dnl Copyright (C) 2003, 2007, 2009-2017 Free Software Foundation, Inc.
Packit 33f14e
dnl This file is free software; the Free Software Foundation
Packit 33f14e
dnl gives unlimited permission to copy and/or distribute it,
Packit 33f14e
dnl with or without modifications, as long as this notice is preserved.
Packit 33f14e
Packit 33f14e
AC_DEFUN([gl_FUNC_TIMEGM],
Packit 33f14e
[
Packit 33f14e
  AC_REQUIRE([gl_HEADER_TIME_H_DEFAULTS])
Packit 33f14e
  AC_REQUIRE([gl_FUNC_MKTIME_WORKS])
Packit 33f14e
  REPLACE_TIMEGM=0
Packit 33f14e
  AC_CHECK_FUNCS_ONCE([timegm])
Packit 33f14e
  if test $ac_cv_func_timegm = yes; then
Packit 33f14e
    if test "$gl_cv_func_working_mktime" != yes; then
Packit 33f14e
      # Assume that timegm is buggy if mktime is.
Packit 33f14e
      REPLACE_TIMEGM=1
Packit 33f14e
    fi
Packit 33f14e
  else
Packit 33f14e
    HAVE_TIMEGM=0
Packit 33f14e
  fi
Packit 33f14e
])
Packit 33f14e
Packit 33f14e
# Prerequisites of lib/timegm.c.
Packit 33f14e
AC_DEFUN([gl_PREREQ_TIMEGM], [
Packit 33f14e
  :
Packit 33f14e
])