summary refs log tree commit diff stats
path: root/configure.in
diff options
context:
space:
mode:
authorBerke Viktor <berkeviktor@aol.com>2011-12-11 19:27:37 +0100
committerBerke Viktor <berkeviktor@aol.com>2011-12-11 19:27:37 +0100
commit38a42ed51950661edd5a5ea59151795e12b259f3 (patch)
tree724f1cbbe4cc932ea277f61d789a53b81d0e5fb4 /configure.in
parent13ee029364b37eca95c43641420e75c872b32653 (diff)
fix built-in spelling on linux
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 620268d2..1ebc46f5 100644
--- a/configure.in
+++ b/configure.in
@@ -10,6 +10,7 @@ AC_CONFIG_SRCDIR([configure.in])
 
 AM_INIT_AUTOMAKE([1.9 dist-bzip2 subdir-objects no-define])
 
+AC_USE_SYSTEM_EXTENSIONS
 AM_MAINTAINER_MODE
 AC_PROG_CC
 AM_PROG_CC_C_O
@@ -40,6 +41,7 @@ dnl AH_VERBATIM([USE_GNOME],[#undef USE_GNOME])
 AH_VERBATIM([USE_SHM],[#undef USE_SHM])
 AH_VERBATIM([USE_GTKSPELL],[#undef USE_GTKSPELL])
 AH_VERBATIM([USE_LIBSEXY],[#undef USE_LIBSEXY])
+AH_VERBATIM([HAVE_ISO_CODES],[#undef HAVE_ISO_CODES])
 AH_VERBATIM([USE_LIBNOTIFY],[#undef USE_LIBNOTIFY])
 AH_VERBATIM([USE_IPV6],[#undef USE_IPV6])
 AH_VERBATIM([USE_MMX],[#undef USE_MMX])
@@ -549,7 +551,14 @@ if test "$spell" = "libsexy" ; then
 fi
 
 if test "$spell" = "static" ; then
+	PKG_CHECK_MODULES(LIBXML2, libxml-2.0 >= 2.0.0, [
+	AC_DEFINE(HAVE_ISO_CODES)
 	AC_DEFINE(USE_LIBSEXY)
+	GUI_CFLAGS="$GUI_CFLAGS -I/usr/include/libxml2"
+	LIBS="$LIBS -lxml2"
+	], [
+	AC_MSG_ERROR("Cannot find libxml2")
+	])
 fi
 
 dnl *********************************************************************