updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / apertium-cy-en / configure.ac.patch
bloba3bde0a1860bb17883b5cbad11a21f035e947e77
1 --- ../apertium-cy-en-0.1.0/configure.ac 2008-08-01 10:21:25.000000000 +0200
2 +++ apertium-cy-en-0.1.0/configure.ac 2010-09-15 17:34:36.000000000 +0200
3 @@ -10,8 +10,60 @@
4 AC_PROG_AWK
5 AC_CONFIG_HEADER([config])
7 -PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox-3.0 >= 3.0.3)
8 -PKG_CHECK_MODULES(APERTIUM, apertium-3.0 >= 3.0.9)
9 +m4_define([required_apertium_version], [3.0.3])
10 +m4_define([required_lttolbox_version], [3.0.9])
12 +AC_DEFUN([PKG_CHECK_APERTIUM], [
13 + APERTIUM_VER=0
14 + PKG_CHECK_MODULES(APERTIUM, apertium-1.0 >= 1.0.0,
15 + [
16 + APERTIUM_VER=10
17 + ],
18 + [
19 + PKG_CHECK_MODULES(APERTIUM, apertium-2.0 >= 2.0.0,
20 + [
21 + APERTIUM_VER=20
22 + ],
23 + [
24 + PKG_CHECK_MODULES(APERTIUM, apertium-3.0 >= 3.0.0,
25 + [
26 + APERTIUM_VER=30
27 + ],
28 + [
29 + PKG_CHECK_MODULES(APERTIUM, apertium-3.1 >= 3.1.0,
30 + [
31 + APERTIUM_VER=31
32 + ],
33 + [
34 + PKG_CHECK_MODULES(APERTIUM, apertium-3.2 >= 3.2.0)
35 + APERTIUM_VER=32
36 + ])
37 + ])
38 + ])
39 + ])
40 + AC_SUBST(APERTIUM_VER)
41 +])
42 +AC_DEFUN([PKG_CHECK_LTTOOLBOX], [
43 + LTTOOLBOX_VER=0
44 + PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox-3.0 >= 3.0.0,
45 + [
46 + LTTOOLBOX_VER=30
47 + ],
48 + [
49 + PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox-3.1 >= 3.1.0,
50 + [
51 + LTTOOLBOX_VER=31
52 + ],
53 + [
54 + PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox-3.2 >= 3.2.0)
55 + LTTOOLBOX_VER=32
56 + ])
57 + ])
58 + AC_SUBST(LTTOOLBOX_VER)
59 +])
61 +PKG_CHECK_APERTIUM
62 +PKG_CHECK_LTTOOLBOX
64 APERTIUM_VER=30