time_rz.m4 655 B

12345678910111213141516171819202122
  1. dnl Time zone functions: tzalloc, localtime_rz, etc.
  2. dnl Copyright (C) 2015-2017 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. dnl Written by Paul Eggert.
  7. AC_DEFUN([gl_TIME_RZ],
  8. [
  9. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  10. AC_REQUIRE([gl_HEADER_SYS_TIME_H_DEFAULTS])
  11. AC_REQUIRE([AC_STRUCT_TIMEZONE])
  12. AC_CHECK_FUNCS_ONCE([tzset])
  13. AC_CHECK_TYPES([timezone_t], [], [], [[#include <time.h>]])
  14. if test "$ac_cv_type_timezone_t" = yes; then
  15. HAVE_TIMEZONE_T=1
  16. fi
  17. ])