From 71977769ec5168eda6f49697b570bbd1dd6991d8 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Mon, 19 Mar 2018 09:03:35 +0100 Subject: [PATCH] check for enchant-2 Fixes rest of #10986 --- config/spell.m4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/spell.m4 b/config/spell.m4 index 5810f17eed..8d98331914 100644 --- a/config/spell.m4 +++ b/config/spell.m4 @@ -45,7 +45,9 @@ AC_DEFUN([CHECK_WITH_ENCHANT], test "$with_enchant" = "no" && lyx_use_enchant=false if $lyx_use_enchant; then - PKG_CHECK_MODULES([ENCHANT], [enchant], [], [lyx_use_enchant=false]) + PKG_CHECK_MODULES([ENCHANT], [enchant], [], + [PKG_CHECK_MODULES([ENCHANT], [enchant-2], [], + [lyx_use_enchant=false])]) AC_MSG_CHECKING([whether to use enchant]) if $lyx_use_enchant ; then AC_MSG_RESULT(yes)