summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorArnav Singh <arnavion@gmail.com>2013-06-01 13:46:33 -0700
committerArnav Singh <arnavion@gmail.com>2013-06-01 13:46:33 -0700
commite1ce1c90f78192c67826e307efccd0d35da3615d (patch)
tree3b153b25c271cab9b87d425969392655eb647988
parentf45c2dd0610bb60b5b6a98636099da6f42965558 (diff)
configure.ac: Use pkg-config's CFLAGS for libxml2 instead of guessing our own.
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 56a7abe1..1beea6dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -659,7 +659,7 @@ 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"
+	GUI_CFLAGS="$GUI_CFLAGS $LIBXML2_CFLAGS"
 	LIBS="$LIBS -lxml2"
 	], [
 	AC_MSG_ERROR(Cannot find libxml2!)