configure.in 1.43 KB
Newer Older
chak's avatar
chak committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
dnl GHC-only part of fptools configuration
dnl 
dnl Copyright (c) 1999 Manuel M. T. Chakravarty <chak@acm.org>
dnl 
dnl This file is subject to the same free software license as GHC.

dnl ######################################################################
dnl Process this file with autoconf to produce a configure script.
dnl ######################################################################


dnl * Initialise and check sanity.
AC_INIT(ghc.spec.in)

dnl * Compute the version number.
version=`sed -e 's/.*\([[0-9]]\)\.\([[0-9]]*\).*/\1.\2/' VERSION`
patchlevel=1

dnl These are needed by the .spec file.
AC_SUBST(version)
AC_SUBST(patchlevel)

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
dnl Uncomment links to ObjectIO docs if necessary
AC_ARG_ENABLE(objectio,
[  --enable-objectio
        Build ObjectIO, a portable GUI library for Haskell.
        (This option is only relevant when libraries are built.)
],
[
ObjectIOHTMLStart=""
ObjectIOHTMLEnd=""
],
[
ObjectIOHTMLStart="<!--"
ObjectIOHTMLEnd="-->"
]
)

AC_SUBST(ObjectIOHTMLStart)
AC_SUBST(ObjectIOHTMLEnd)

42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
dnl Uncomment links to HOpenGL docs if necessary
AC_ARG_ENABLE(hopengl,
[  --enable-hopengl
        Build HOpenGL, a Haskell binding for OpenGL/GLUT, too.
        (This option is only relevant when hslibs are built.)
],
[
HOpenGLHTMLStart=""
HOpenGLHTMLEnd=""
],
[
HOpenGLHTMLStart="<!--"
HOpenGLHTMLEnd="-->"
]
)

AC_SUBST(HOpenGLHTMLStart)
AC_SUBST(HOpenGLHTMLEnd)

chak's avatar
chak committed
61
dnl * Write the results...
62
AC_OUTPUT(ghc.spec docs/index.html)