Use floor instead of truncate
[packages/time.git] / configure.ac
1 AC_INIT([Haskell time package], [1.8.0.1], [ashley@semantic.org], [time])
2
3 # Safety check: Ensure that we are in the correct source directory.
4 AC_CONFIG_SRCDIR([lib/include/HsTime.h])
5
6 # These are to silence warnings with older Cabal versions
7 AC_ARG_WITH([gcc],[Gnu C compiler])
8 AC_ARG_WITH([compiler],[Haskell compiler])
9
10 AC_PROG_CC()
11
12 AC_USE_SYSTEM_EXTENSIONS
13
14 AC_CONFIG_HEADERS([lib/include/HsTimeConfig.h])
15
16 AC_CHECK_HEADERS([time.h])
17 AC_CHECK_FUNCS([gmtime_r localtime_r])
18
19 AC_CHECK_FUNCS([clock_gettime])
20
21 AC_STRUCT_TM
22 AC_STRUCT_TIMEZONE
23
24 FP_DECL_ALTZONE
25
26 AC_OUTPUT