-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathconfigure.ac
29 lines (23 loc) · 1 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
AC_PREREQ(2.52)
AC_INIT([Apertium Hindi], [0.1.0], [[email protected]], [apertium-hin])
AM_INIT_AUTOMAKE
dnl HFST support
AH_TEMPLATE(HAVE_HFSTOSPELL, [Have HFSTOSPELL])
AC_ARG_ENABLE(ospell, AC_HELP_STRING([--enable-ospell],
[enable HFST spellchecking backend]),
[hfstospell=${enableval}], [hfstospell=no])
dnl must be AS_IF for some aclocals to pick PKG_CHECK_MODULES somehow.
dnl AC_PROVIDE_IFELSE doesn't work on mac?
AS_IF([test x$hfstospell = xyes], [
PKG_CHECK_MODULES([HFSTOSPELL], [hfstospell >= 0.2])
AC_DEFINE(HAVE_HFSTOSPELL, 1)
CXXFLAGS="$CXXFLAGS $HFSTOSPELL_CFLAGS"
])
AM_CONDITIONAL([HAVE_HFSTOSPELL], [test x$hfstospell = xyes])
PKG_CHECK_MODULES(APERTIUM, apertium >= 3.6.0)
PKG_CHECK_MODULES(LTTOOLBOX, lttoolbox >= 3.5.0)
PKG_CHECK_MODULES(CG3, cg3 >= 1.3.0)
PKG_CHECK_MODULES(REGTEST, apertium-regtest >= 0.0.1, [],
[AC_MSG_WARN([Running tests requires apertium-regtest])])
AP_MKINCLUDE
AC_OUTPUT([Makefile apertium-hin.pc])