]> git.lyx.org Git - lyx.git/blobdiff - config/spell.m4
typo
[lyx.git] / config / spell.m4
index c1d881798923cf0935c168e733fb23097a44a970..ec4c75e526bfa2b274a3e650eba5b10ab9f6dc4f 100644 (file)
@@ -17,9 +17,6 @@ AC_DEFUN([CHECK_WITH_ASPELL],
                AC_MSG_RESULT(yes)
                AC_DEFINE(USE_ASPELL, 1, [Define as 1 to use the aspell library])
                lyx_flags="$lyx_flags use-aspell"
-               ### Check for aspell framework name
-               LYX_WITH_DIR([aspell-framework], [name of aspell framework],aspell_framework, [])
-               AC_DEFINE_UNQUOTED([ASPELL_FRAMEWORK], "${lyx_cv_aspell_framework}", [Define as name of aspell framework])
        else
                AC_MSG_RESULT(no)
        fi
@@ -54,11 +51,11 @@ AC_DEFUN([CHECK_WITH_HUNSPELL],
        test "$with_hunspell" = "no" && lyx_use_hunspell=false
 
        if $lyx_use_hunspell ; then
-       AC_CHECK_HEADERS(hunspell/hunspell.hxx,
-               [lyx_use_hunspell=true; break;],
+         AC_CHECK_HEADERS(hunspell/hunspell.hxx,
+               [AC_SEARCH_LIBS(Hunspell_spell,
+                    [hunspell hunspell-1.2],, [lyx_use_hunspell=false])],
                [lyx_use_hunspell=false])
-       AC_CHECK_LIB(hunspell, main, LIBS="-lhunspell $LIBS", lyx_use_hunspell=false)
-
+       fi
        AC_MSG_CHECKING([whether to use hunspell])
        if $lyx_use_hunspell ; then
                AC_MSG_RESULT(yes)
@@ -67,7 +64,6 @@ AC_DEFUN([CHECK_WITH_HUNSPELL],
        else
                AC_MSG_RESULT(no)
        fi
-       fi
        ])