summaryrefslogtreecommitdiff
blob: b8985b2a3c5198ccf2c7dc2ff256193f6ced69f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Allow spellchecking support to be disabled.

--- cone-1.0/cone/configure.ac
+++ cone-1.0/cone/configure.ac
@@ -183,8 +183,10 @@
 	ALLSPELLOBJ='spellcheckerPspell.$(OBJEXT)'" $ALLSPELLOBJ"
 fi
 
-AC_ARG_WITH(spellcheck, [  --with-spellcheck=pspell      Use pspell for spell checking
-  --with-spellcheck=aspell      Use aspell for spell checking], [
+AC_ARG_WITH(spellcheck, [
+  --with-spellcheck=pspell      Use pspell for spell checking
+  --with-spellcheck=aspell      Use aspell for spell checking
+  --with-spellcheck=none        Disable spell checking], [
 
 case "$withval" in
 pspell)
@@ -200,6 +202,10 @@
 		AC_MSG_ERROR(aspell library not found)
 	fi
 	;;
+none)
+	PSPELL="none"
+	ASPELL="none"
+	;;
 *)
 	AC_MSG_ERROR(Invalid --with-spellcheck option)
 	;;
@@ -232,10 +238,13 @@
 		SPELL_OBJ='spellcheckerPspell.$(OBJEXT)'
 		SPELL_LIB='-lpspell'
 	else
-		AC_MSG_WARN(---------------------------------------------------------------)
-		AC_MSG_WARN(Neither pspell nor aspell was found -- disabling spell checking)
-		AC_MSG_WARN(---------------------------------------------------------------)
-		sleep 5
+		if test "$ASPELL" != "none" && test "$PSPELL" != "none"
+		then
+			AC_MSG_WARN(---------------------------------------------------------------)
+			AC_MSG_WARN(Neither pspell nor aspell was found -- disabling spell checking)
+			AC_MSG_WARN(---------------------------------------------------------------)
+			sleep 5
+		fi
 		SPELL_OBJ='spellcheckerNone.$(OBJEXT)'
 		SPELL_LIB=''
 	fi