summaryrefslogtreecommitdiff
path: root/pcr/apertium/apertium-en-es/configure.ac.patch
blob: 38219b361ff65a2db5c390dfed980d92de061103 (plain)
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
--- src/apertium-en-es-0.8.0/configure.ac.old	2014-10-06 10:34:40.274729186 +0200
+++ src/apertium-en-es-0.8.0/configure.ac	2014-10-06 10:34:47.024262162 +0200
@@ -10,38 +10,7 @@
 AC_PROG_AWK
 AC_CONFIG_HEADER([config])
 
-AC_DEFUN([PKG_CHECK_APERTIUM], [
-  APERTIUM_VER=0
-  PKG_CHECK_MODULES(APERTIUM, apertium-1.0 >= 1.0.0,
-  [
-      APERTIUM_VER=10
-  ],
-  [
-      PKG_CHECK_MODULES(APERTIUM, apertium-2.0 >= 2.0.0,
-      [
-          APERTIUM_VER=20
-      ],
-      [
-          PKG_CHECK_MODULES(APERTIUM, apertium-3.0 >= 3.0.0,
-          [
-              APERTIUM_VER=30
-          ],
-          [
-              PKG_CHECK_MODULES(APERTIUM, apertium-3.1 >= 3.1.0,
-              [
-                  APERTIUM_VER=31
-              ],
-              [
-                  PKG_CHECK_MODULES(APERTIUM, apertium-3.2 >= 3.2.0)
-                  APERTIUM_VER=32
-              ])
-          ])
-      ])
-  ])
-  AC_SUBST(APERTIUM_VER)
-])
-                          
-PKG_CHECK_APERTIUM
+PKG_CHECK_MODULES(APERTIUM,   apertium >= required_apertium_version, [], [PKG_CHECK_MODULES(APERTIUM,   apertium-3.2 >= required_apertium_version)])
 
 if test $APERTIUM_VER = 10;
 then MODES="";
@@ -53,5 +22,5 @@
 AC_SUBST(MODES)
 AC_SUBST(ALTXSL)
 
-  
+
 AC_OUTPUT([Makefile])