ax_zoneinfo

Synopsis

AX_ZONEINFO([options...])

Description

This macro finds compiled zoneinfo files. If successful it will define HAVE_ZONEINFO per:

  AC_DEFINE([HAVE_ZONEINFO], [1], [...])

and have the variable TZDIR point to the zoneinfo directory as per

  AC_SUBST([TZDIR])
  AC_DEFINE_UNQUOTED([TZDIR], [/path/to/zic/files], [...])

Optionally, OPTIONS can be ‘right’ to trigger further tests that will determine if leap second fix-ups are available. If so the variables HAVE_ZONEINFO_RIGHT, ZONEINFO_UTC_RIGHT and TZDIR_RIGHT will be populated:

  AC_DEFINE([HAVE_ZONEINFO_RIGHT], [1], [...])
  AC_SUBST([TZDIR_RIGHT])
  AC_DEFINE_UNQUOTED([TZDIR_RIGHT], [/path/to/right/zic/files], [...])
  AC_SUBST([ZONEINFO_UTC_RIGHT])
  AC_DEFINE_UNQUOTED([ZONEINFO_UTC_RIGHT], [$ZONEINFO_UTC_RIGHT], [...])

Source Code

Download the latest version of ax_zoneinfo.m4 or browse the macro’s revision history.

License

Copyright © 2012 Sebastian Freundt 

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.