Mercurial > urweb
comparison configure.ac @ 1165:7a17588edbff
'configure' checks for libmhash and MLton
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 11 Feb 2010 11:29:36 -0500 |
parents | 15767031950c |
children | be2ef50780ed |
comparison
equal
deleted
inserted
replaced
1164:8679ba87cf3c | 1165:7a17588edbff |
---|---|
2 AC_USE_SYSTEM_EXTENSIONS | 2 AC_USE_SYSTEM_EXTENSIONS |
3 AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define]) | 3 AM_INIT_AUTOMAKE([-Wall -Werror foreign no-define]) |
4 AC_PROG_CC() | 4 AC_PROG_CC() |
5 AC_PROG_LIBTOOL() | 5 AC_PROG_LIBTOOL() |
6 AC_CONFIG_MACRO_DIR([m4]) | 6 AC_CONFIG_MACRO_DIR([m4]) |
7 | |
8 AC_CHECK_LIB(mhash, mhash_get_block_size, [], [echo "You must install libmhash."; exit 1]) | |
9 AC_CHECK_HEADER([mhash.h], [], [echo "You must install libmhash dev files."; exit 1]) | |
10 | |
11 AC_CHECK_PROG(MLTON, mlton, yes, []) | |
12 | |
13 if test [-z $MLTON]; then | |
14 echo "You must install MLton." | |
15 exit 1 | |
16 fi | |
17 | |
18 AC_CHECK_PROG(MLLEX, mllex, yes, []) | |
19 | |
20 if test [-z $MLLEX]; then | |
21 echo "You must install MLton (to get mllex)." | |
22 exit 1 | |
23 fi | |
24 | |
25 AC_CHECK_PROG(MLYACC, mlyacc, yes, []) | |
26 | |
27 if test [-z $MLYACC]; then | |
28 echo "You must install MLton (to get mlyacc)." | |
29 exit 1 | |
30 fi | |
7 | 31 |
8 if test [$prefix = "NONE"]; then | 32 if test [$prefix = "NONE"]; then |
9 prefix=/usr/local | 33 prefix=/usr/local |
10 fi | 34 fi |
11 | 35 |