summaryrefslogtreecommitdiff
path: root/pcr/apertium/apertium-es-ro/configure.ac.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/apertium/apertium-es-ro/configure.ac.patch')
-rw-r--r--pcr/apertium/apertium-es-ro/configure.ac.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/pcr/apertium/apertium-es-ro/configure.ac.patch b/pcr/apertium/apertium-es-ro/configure.ac.patch
new file mode 100644
index 000000000..11d0e3e47
--- /dev/null
+++ b/pcr/apertium/apertium-es-ro/configure.ac.patch
@@ -0,0 +1,42 @@
+--- ../apertium-es-ro-0.7.1/configure.ac 2007-10-11 21:06:44.000000000 +0200
++++ apertium-es-ro-0.7.1/configure.ac 2010-09-15 17:16:41.000000000 +0200
+@@ -12,7 +12,37 @@
+ AC_PROG_AWK
+ AC_CONFIG_HEADER([config])
+
+-PKG_CHECK_MODULES(apertium, [dnl
+- apertium-3.0 >= required_apertium_version])
++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
+
+ AC_OUTPUT([Makefile])