comparison mcabber/configure.ac @ 1179:0f7e0346d9cb

Add aspell support [Note: Patch slightly modified by Mikael]
author entragian <entragian@o2.pl>
date Wed, 04 Apr 2007 23:23:37 +0200
parents 36450491b884
children 56f7f504b4ba
comparison
equal deleted inserted replaced
1178:220e04816524 1179:0f7e0346d9cb
150 # AC_DEFINE([HAVE_GNUTLS], [], [GNU TLS]) 150 # AC_DEFINE([HAVE_GNUTLS], [], [GNU TLS])
151 # ]) 151 # ])
152 fi 152 fi
153 fi 153 fi
154 154
155 # Check for Aspell stuff
156 AC_ARG_ENABLE(aspell, [ --enable-aspell Enable aspell support],
157 enable_aspell=$enableval, aspell="")
158 if test "x$enable_aspell" = "xyes"; then
159 AC_CHECK_HEADERS(aspell.h, [ have_aspell_includes=yes ])
160 if test "x$have_aspell_includes" = "xyes"; then
161 AC_CHECK_LIB(aspell, new_aspell_config, [ have_aspell_libs=yes ])
162 if test "x$have_aspell_libs" = "xyes"; then
163 AC_DEFINE(WITH_ASPELL, 1, [define if you want aspell support])
164 LIBS="$LIBS -laspell"
165 else
166 enable_aspell=no
167 fi
168 else
169 enable_aspell=no
170 fi
171 fi
172
155 AC_DEFINE(BUILD_JABBER, 1, [build with jabber support]) 173 AC_DEFINE(BUILD_JABBER, 1, [build with jabber support])
156 174
157 # Export $datadir to the source tree. 175 # Export $datadir to the source tree.
158 if test x"${datadir}" != x""; then 176 if test x"${datadir}" != x""; then
159 AC_DEFINE_DIR(DATA_DIR, "${datadir}", [Data files directory]) 177 AC_DEFINE_DIR(DATA_DIR, "${datadir}", [Data files directory])