fenv: Add explicit definitions for infinity, nan and pi.
[altfloat.git] / configure.ac
blob69248716c613a5f7d6169eac3ae146d21987836c
1 dnl Copyright (C) 2009-2010 Nick Bowler
2 dnl Copying and distribution of this file, with or without modification,
3 dnl are permitted in any medium without royalty provided the copyright
4 dnl notice and this notice are preserved.  This file is offered as-is,
5 dnl without any warranty.
7 AC_PREREQ(2.62)
8 AC_INIT([altfloat],[0.2],[nbowler@draconx.ca])
9 AC_CONFIG_SRCDIR([altfloat.cabal])
10 AC_CONFIG_HEADER([config.h])
12 dnl We don't actually care, but this shuts up the warning.
13 AC_ARG_WITH([compiler], [AS_HELP_STRING([--with-compiler],
14         [specify which Haskell compiler to use])])
16 AC_PROG_CC_C99
18 dnl Cabal won't let us specify the C compiler, so we need this hack.
19 CC_OPTS=`echo $CC | sed 's/@<:@^@<:@:space:@:>@@:>@*//'`
20 AC_SUBST([CC_OPTS])
22 dnl We need to know the size and alignment of fenv_t in order to allocate it
23 dnl in Haskell code.
24 m4_define([FENV_HEADERS], [dnl
25 #include <fenv.h>
28 AC_CHECK_SIZEOF([fenv_t], [], [FENV_HEADERS])
29 AC_CHECK_ALIGNOF([fenv_t], [FENV_HEADERS])
31 AC_CONFIG_FILES([
32         altfloat.buildinfo
34 AC_OUTPUT