diff options
author | J M Maurer <uwog@uwog.net> | 2009-05-25 15:21:21 +0000 |
---|---|---|
committer | J M Maurer <uwog@uwog.net> | 2009-05-25 15:21:21 +0000 |
commit | 300c19a7152aaf8438e15e79d4bd68fa20ec2842 (patch) | |
tree | c9c6174823057b7b387c24fa1507fb2ff5170603 | |
parent | f524af6c8a17bb3c846e7235486324ded9ddbfd8 (diff) | |
download | enchant-300c19a7152aaf8438e15e79d4bd68fa20ec2842.tar.gz |
Add --with-system-myspell option
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@26531 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r-- | configure.in | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/configure.in b/configure.in index 77350c0..0df8a74 100644 --- a/configure.in +++ b/configure.in @@ -295,9 +295,15 @@ if test "x$with_myspell_dir" != "x" ; then fi MYSPELL_CFLAGS="$MYSPELL_CFLAGS -DENCHANT_MYSPELL_DICT_DIR='\"$myspell_dir\"'" -PKG_CHECK_MODULES(MYSPELL, [hunspell], have_system_myspell=true, have_system_myspell=false) -AC_SUBST(MYSPELL_CFLAGS) -AC_SUBST(MYSPELL_LIBS) + +AC_ARG_WITH(system-myspell, AS_HELP_STRING([--with-system-myspell=yes/no],[use the system myspell/hunspell @<:@default=auto@:>@])) +if test "x$with_system_myspell" != "xno"; then + PKG_CHECK_MODULES(MYSPELL, [hunspell], have_system_myspell=true, have_system_myspell=false) + AC_SUBST(MYSPELL_CFLAGS) + AC_SUBST(MYSPELL_LIBS) +else + have_system_myspell=false; +fi AM_CONDITIONAL(WITH_SYSTEM_MYSPELL, test "x$have_system_myspell" = "xtrue") check_aspell=yes @@ -522,6 +528,6 @@ $PACKAGE-$VERSION Build Hspell backend: ${build_hspell} Build Myspell/Hunspell backend: ${build_myspell} Build Voikko backend: ${build_voikko} - Build Zemberek backend: ${build_zemberek} + Build Zemberek backend: ${build_zemberek} Build a relocatable library: ${relocatable_library} " |