-
Notifications
You must be signed in to change notification settings - Fork 19
/
configure.ac
50 lines (40 loc) · 1.28 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
AC_INIT([Agda], [2.0], [[email protected]])
#
# Check for programs
#
# C compiler (also does other stuff like figure out extension of executables)
AC_PROG_CC
# Building Agda
AGDA_WITH_PROG_VERSION(GHC,ghc,6.4)
AGDA_WITH_PROG_VERSION(ALEX,alex,2.0)
AGDA_WITH_PROG_VERSION(HAPPY,happy,1.14)
# We need to know if we have ghc 7.7
FP_COMPARE_VERSIONS($GHC_VERSION,[-ge],7.7,
[HAVE_GHC_7_7=Yes],[HAVE_GHC_7_7=No]
)
AC_SUBST(HAVE_GHC_7_7)
# Building the documentation
AGDA_WITH_OPTIONAL_PROG_VERSION(HADDOCK,haddock,0.6,
[AC_MSG_WARN(haddock is needed to build parts of the documentation.)]
)
AGDA_WITH_OPTIONAL_PROG(LATEX,latex)
AGDA_WITH_OPTIONAL_PROG(PDFLATEX,pdflatex)
AS_IF([test $HAVE_LATEX == No -a $HAVE_PDFLATEX == No],
[AC_MSG_WARN(You need at least one of latex and pdflatex to build parts of the documentation.)
]
)
# Utility programs
AC_PROG_INSTALL
AGDA_WITH_OPTIONAL_PROG(WGET,wget)
AGDA_WITH_PROG(FALSE,false)
AGDA_WITH_PROG(FIND,find)
AGDA_WITH_PROG(DIFF,diff)
AGDA_WITH_OPTIONAL_PROG(DARCS,darcs)
AGDA_WITH_PROG(MKDIR,mkdir)
AGDA_WITH_OPTIONAL_PROG(RUNHASKELL,runhaskell)
# Output
AC_CONFIG_FILES([mk/config.mk])
AC_OUTPUT