[libcroco] Adding libxml2 install check whether its present or not
- From: Abhishek Sharma <abhisheks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libcroco] Adding libxml2 install check whether its present or not
- Date: Sun, 26 Jun 2011 06:42:03 +0000 (UTC)
commit 903f13254d71f127bd5221779c3441c93f1ca92b
Author: Abhishek Sharma <sharma abhishek it gmail com>
Date: Sun Jun 26 12:02:19 2011 +0530
Adding libxml2 install check whether its present or not
configure.in | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/configure.in b/configure.in
index 29e7f13..aab89dc 100644
--- a/configure.in
+++ b/configure.in
@@ -93,6 +93,7 @@ dnl
dnl check glib-2.0 version
dnl
have_glib2=no
+CROCO_HAVE_GLIB2=0
PKG_CHECK_MODULES(GLIB2,
[glib-2.0 >= $GLIB2_VERSION],
[have_glib2=yes
@@ -105,13 +106,19 @@ fi
AC_SUBST(GLIB2_VERSION)
AC_SUBST(CROCO_HAVE_GLIB2)
+dnl
dnl check libxml2 version
+dnl
have_libxml2=no
CROCO_HAVE_LIBXML2=0
-PKG_CHECK_MODULES(LIBXML2, [libxml-2.0 >= $LIBXML2_VERSION],
- [have_libxml2=yes
- CROCO_HAVE_LIBXML2=1],
- have_libxml2=no)
+PKG_CHECK_MODULES(LIBXML2,
+ [libxml-2.0 >= $LIBXML2_VERSION],
+ [have_libxml2=yes
+ CROCO_HAVE_LIBXML2=1],
+ have_libxml2=no)
+if test "$have_libxml2" = no ; then
+ AC_MSG_ERROR([*** libxml2 not found. See http://xmlsoft.org/])
+fi
AC_SUBST(LIBXML2_VERSION)
AC_SUBST(CROCO_HAVE_LIBXML2)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]