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