]> git.lyx.org Git - lyx.git/blobdiff - config/pspell.m4
uses references instead of returning vectors
[lyx.git] / config / pspell.m4
index 29a322be1cc381da8a1823127f0bba7e9aba661b..cbc018734a18432e9aca7d8d260007d15d8729b7 100644 (file)
@@ -1,4 +1,4 @@
-# Macro to add for using pspell spellchecker libraries!
+# Macro to add for using pspell spellchecker libraries!     -*- sh -*-
 # @author@: Jürgen Vigna
 
 AC_DEFUN(CHECK_WITH_PSPELL,
@@ -31,19 +31,19 @@ AC_DEFUN(CHECK_WITH_PSPELL,
       pspell_lib_found="Setting to $pspell_use_lib"
     else
       pspell_libs="/usr/lib /usr/lib/pspell /usr/local/lib /usr/local/lib/pspell"
-      AC_FIND_FILE(libpspell.a,$pspell_libs,pspell_use_lib)
+      AC_FIND_FILE(libpspell.la libpspell.so libpspell.a,$pspell_libs,pspell_use_lib)
       pspell_lib_found="yes"
     fi
 
     if test "$pspell_use_include" = "NO" || \
-       test "$pspell_use_include" = "NO"; then
+       test "$pspell_use_lib" = "NO"; then
       if test "$USE_PSPELL" = "yes"; then
        USE_PSPELL="not found"
       fi
     fi
 
     if test "$USE_PSPELL" = "yes"; then
-      AC_DEFINE(USE_PSPELL)
+      AC_DEFINE(USE_PSPELL, 1, [Define as 1 to use the pspell library])
       PSPELL_INCLUDES="-I$pspell_use_include"
       PSPELL_LIBS="-L$pspell_use_lib -lpspell"
       USE_PSPELL="yes ($pspell_use_include $pspell_use_lib)"