-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
70 lines (60 loc) · 1.64 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
AC_PREREQ(2.52)
AC_INIT([apertium-hbs], [0.5.0], [francis.tyers@gmail.com])
AM_INIT_AUTOMAKE([apertium-hbs], [0.5.0], no-define)
AC_PROG_LN_S
AC_PROG_AWK
m4_define([required_apertium_version], [3.3.0])
PKG_CHECK_MODULES(APERTIUM, apertium >= required_apertium_version, [], [PKG_CHECK_MODULES(APERTIUM, apertium-3.2 >= required_apertium_version)])
#AC_DEFUN([PKG_CHECK_HFST], [
# HFST_VER=0
# PKG_CHECK_MODULES(HFST, hfst-3.2 >= 3.2.0,
# [
# HFST_VER=32
# ],
# [
# PKG_CHECK_MODULES(HFST, hfst-3.1 >= 3.1.0,
# [
# HFST_VER=31
# ],
# [
# PKG_CHECK_MODULES(HFST, hfst-3.0 >= 3.0.0,
# [
# HFST_VER=30
# ])
# ])
# ])
# AC_SUBST(HFST_VER)
#])
#
#PKG_CHECK_HFST
AC_PATH_PROG(LTPRINT, lt-print, no)
if test x$ac_cv_path_LTPRINT = x
then
AC_MSG_ERROR([You don't have lt-print installed.])
fi
if test x$ac_cv_path_LTPRINT = xno
then
AC_MSG_ERROR([You don't have lt-print installed.])
fi
AC_PATH_PROG(CGCOMP, cg-comp, no)
if test x$ac_cv_path_CGCOMP = x
then
AC_MSG_ERROR([You don't have cg-comp installed.])
fi
if test x$ac_cv_path_CGPROC = xno
then
AC_MSG_ERROR([You don't have cg-comp installed.])
fi
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test x$ac_cv_path_PKG_CONFIG = x
then
AC_MSG_ERROR([You don't have pkg-config installed.])
fi
if test x$ac_cv_path_PKG_CONFIG = xno
then
AC_MSG_ERROR([You don't have pkg-config installed.])
fi
PKG_CHECK_MODULES(REGTEST, apertium-regtest >= 0.0.1, [],
[AC_MSG_WARN([Running tests requires apertium-regtest])])
AP_MKINCLUDE
AC_OUTPUT([Makefile apertium-hbs.pc])