1diff -uNrp misc/build/mythes-1.2.0/configure misc/mythes-1.2.0/configure
2--- misc/build/mythes-1.2.0/configure	2010-02-27 12:57:37.000000000 -0300
3+++ misc/mythes-1.2.0/configure	2011-11-21 10:48:03.724435792 -0300
4@@ -748,6 +748,7 @@ LTLIBOBJS
5 LIBOBJS
6 HUNSPELL_LIBS
7 HUNSPELL_CFLAGS
8+ENABLE_EXAMPLE
9 PKG_CONFIG
10 CXXCPP
11 CPP
12@@ -867,6 +868,7 @@ ac_subst_files=''
13 ac_user_opts='
14 enable_option_checking
15 enable_dependency_tracking
16+enable_example
17 with_gnu_ld
18 enable_rpath
19 enable_shared
20@@ -1519,6 +1521,8 @@ Optional Features:
21                           optimize for fast installation [default=yes]
22   --disable-libtool-lock  avoid locking (might break parallel builds)
23
24+  --enable-example        compiles the example (requires hunspell library)
25+
26 Optional Packages:
27   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
28   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
29@@ -3723,6 +3727,19 @@ fi
30
31
32
33+# Check whether --enable-example was given.
34+if test "${enable_example+set}" != set; then :
35+  ENABLE_EXAMPLE=no;
36+  $enable_example=no;
37+else
38+  ENABLE_EXAMPLE=$enable_example;
39+fi
40+
41+
42+
43+
44+
45+
46 depcc="$CC"   am_compiler_list=
47
48 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
49@@ -14476,6 +14493,8 @@ $as_echo "no" >&6; }
50
51 fi
52
53+
54+if test "$ENABLE_EXAMPLE" != "no"; then
55 pkg_failed=no
56 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUNSPELL" >&5
57 $as_echo_n "checking for HUNSPELL... " >&6; }
58@@ -14561,6 +14580,9 @@ else
59 $as_echo "yes" >&6; }
60 	:
61 fi
62+fi
63+export ENABLE_EXAMPLE
64+
65
66 ac_config_files="$ac_config_files Makefile mythes.pc"
67
68diff -uNrp misc/build/mythes-1.2.0/Makefile.in misc/mythes-1.2.0/Makefile.in
69--- misc/build/mythes-1.2.0/Makefile.in	2010-02-27 12:57:35.000000000 -0300
70+++ misc/mythes-1.2.0/Makefile.in	2011-11-22 20:39:45.589038536 -0300
71@@ -675,7 +675,7 @@ distcleancheck: distclean
72 	       exit 1; } >&2
73 check-am: all-am
74 check: check-am
75-all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(DATA) \
76+all-am: Makefile $(LTLIBRARIES) $(SCRIPTS) $(DATA) \
77 		$(HEADERS) config.h
78 installdirs:
79 	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfdir)" "$(DESTDIR)$(libmythes_1_2_includedir)"; do \
80