Add a program check for Hunspell.
Originally committed to SVN as r2120.
This commit is contained in:
parent
2c495b5d80
commit
1f5e67b9fc
1 changed files with 17 additions and 2 deletions
19
configure.in
19
configure.in
|
@ -386,11 +386,26 @@ AM_CONDITIONAL([HAVE_HUNSPELL], [test "$with_old_hunspell" != "no"])
|
||||||
if test "$with_old_hunspell" = "yes"; then
|
if test "$with_old_hunspell" = "yes"; then
|
||||||
AC_DEFINE(WITH_OLD_HUNSPELL, 1, [Enable Older Hunspell support.])
|
AC_DEFINE(WITH_OLD_HUNSPELL, 1, [Enable Older Hunspell support.])
|
||||||
HUNSPELL_CFLAGS="$HUNSPELL_CFLAGS -DWITH_OLD_HUNSPELL"
|
HUNSPELL_CFLAGS="$HUNSPELL_CFLAGS -DWITH_OLD_HUNSPELL"
|
||||||
with_hunspell="yes (old hunspell)"
|
with_hunspell="yes"
|
||||||
|
with_hunspell_version="(old hunspell)"
|
||||||
else
|
else
|
||||||
with_hunspell="no"
|
with_hunspell="no"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_AGI_COMPILE([Hunspell], [hunspell], [$HUNSPELL_CFLAGS], [$HUNSPELL_LIBS],[
|
||||||
|
#include <hunspell.hxx>
|
||||||
|
int main(void) {
|
||||||
|
Hunspell *hunspell;
|
||||||
|
hunspell = new Hunspell(NULL,NULL);
|
||||||
|
if (!hunspell) return 1;
|
||||||
|
return 0;
|
||||||
|
])
|
||||||
|
|
||||||
|
if test "$agi_with_hunspell" = "no"; then
|
||||||
|
AC_MSG_WARN([Hunspell detected, but it doesn't work..])
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
######################
|
######################
|
||||||
## universalchardetect
|
## universalchardetect
|
||||||
|
@ -760,6 +775,6 @@ Subtitle Providers:
|
||||||
libass (external): $with_libass $libass_disabled
|
libass (external): $with_libass $libass_disabled
|
||||||
libass (internal) $with_internal_libass (requires iconv, fontconfig) $libass_internal_disabled
|
libass (internal) $with_internal_libass (requires iconv, fontconfig) $libass_internal_disabled
|
||||||
Misc Packages:
|
Misc Packages:
|
||||||
hunspell: $with_hunspell $hunspell_disabled
|
hunspell: $with_hunspell $with_hunspell_version $hunspell_disabled
|
||||||
universalchardet: $with_univchardet $univchardet_disabled
|
universalchardet: $with_univchardet $univchardet_disabled
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue