Adding prob files
[apertium.git] / trunk / apertium-eu-es / configure.ac
blob828dbb584dc375794691321a5173a14816c4fc2d
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
5 AC_PREREQ(2.52)
7 AC_INIT([apertium-eu-es], [0.8], [sortiz@users.sourceforge.net])
8 AM_INIT_AUTOMAKE([apertium-eu-es], [0.8], no-define)
9 AC_PROG_LN_S
10 AC_PROG_AWK
11 AC_CONFIG_HEADER([config])
13 AC_DEFUN(PKG_CHECK_APERTIUM, [
14   APERTIUM_VER=0
15   PKG_CHECK_MODULES(APERTIUM, apertium-3.0 >= 3.0.0,
16   [
17       APERTIUM_VER=30
18   ],
19   [
20       PKG_CHECK_MODULES(APERTIUM, apertium-2.0 >= 2.0.0)
21       APERTIUM_VER=20
22   ])
23   AC_SUBST(APERTIUM_VER)
25                           
26 PKG_CHECK_APERTIUM
28 AC_PATH_PROG(XSLTPROC, xsltproc, no)
29 if test x$ac_cv_path_XSLTPROC = x
30 then
31   AC_MSG_ERROR([You don't have xsltproc installed.])
33 if test x$ac_cv_path_XSLTPROC = xno
34 then
35   AC_MSG_ERROR([You don't have xsltproc installed.])
37                      
38   
39 AC_OUTPUT([Makefile])