Merge pull request #6 from RyanGlScott/master
[packages/old-time.git] / configure.ac
1 AC_INIT([Haskell old-time package], [1.0], [libraries@haskell.org], [old-time])
2
3 # Safety check: Ensure that we are in the correct source directory.
4 AC_CONFIG_SRCDIR([include/HsTime.h])
5
6 AC_CONFIG_HEADERS([include/HsTimeConfig.h])
7
8 AC_ARG_WITH([cc],
9             [C compiler],
10             [CC=$withval])
11 AC_PROG_CC()
12
13 # check for specific header (.h) files that we are interested in
14 AC_CHECK_HEADERS([sys/time.h sys/timeb.h time.h])
15
16 AC_CHECK_FUNCS([ftime gmtime_r localtime_r gettimeofday])
17
18 dnl ** how do we get a timezone name, and UTC offset ?
19 AC_STRUCT_TIMEZONE
20
21 dnl ** do we have altzone?
22 FP_DECL_ALTZONE
23
24 AC_OUTPUT