]> git.lyx.org Git - features.git/commitdiff
Check for hunspell
authorKornel Benko <kornel@lyx.org>
Mon, 13 Jul 2009 07:44:00 +0000 (07:44 +0000)
committerKornel Benko <kornel@lyx.org>
Mon, 13 Jul 2009 07:44:00 +0000 (07:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30534 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/CMakeLists.txt
development/cmake/src/CMakeLists.txt

index cdbdf219e8f44b0bc0b3f2c5dca742f051ceff06..5b2124e778b65e3c1bb35092a67afce0e6acae38 100644 (file)
@@ -194,6 +194,14 @@ if(use_external_libintl)
        add_definitions(-DHAVE_GETTEXT)
 endif()
 
+find_file(HUNSPELL_FOUND hunspell.hxx)
+
+if (HUNSPELL_FOUND)
+    message(STATUS "----- Building with Hunspell)
+else()
+    message(STATUS "----- Hunspell not found, building without hunspell support")
+endif()
+
 message(STATUS "")
 if(nls OR all)
        set(nls TRUE CACHE TYPE STRING)
index 6965d68da4a6173cd01bedc2ef474bef6fd27dc7..d4a1f2e5dec9234c8e4742bb2ad978c360df46fe 100644 (file)
@@ -29,6 +29,10 @@ list(REMOVE_ITEM lyx_sources
        ${TOP_SRC_DIR}/src/Variables.cpp
        ${TOP_SRC_DIR}/src/Section.cpp)
 
+if (NOT HUNSPELL_FOUND)
+    list(REMOVE_ITEM lyx_sources ${TOP_SRC_DIR}/src/HunspellSpellChecker.cpp)
+endif()
+
 if (ASPELL_FOUND)
   include_directories(${ASPELL_INCLUDE_DIR})
   list(APPEND lyx_sources ${TOP_SRC_DIR}/src/ASpell.cpp)