[libbluray-devel] [PATCH] Allow to disable manually libxml2

Jean-Baptiste Kempf jb at videolan.org
Wed Nov 30 02:23:10 CET 2011


This can be useful to build smaller packages
---
 configure.ac |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 88bb989..e9d5960 100644
--- a/configure.ac
+++ b/configure.ac
@@ -99,6 +99,12 @@ AC_ARG_ENABLE([bdjava],
   [use_bdjava=$enableval],
   [use_bdjava=no])
 
+AC_ARG_ENABLE([libxml2],
+  [AS_HELP_STRING([--enable-libxml2],
+  [enable libxml2 support (default is yes)])],
+  [use_libxml2=$enableval],
+  [use_libxml2=no])
+
 # required programs
 AC_PROG_CC
 AC_PROG_LIBTOOL
@@ -143,7 +149,7 @@ fi
 AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
 
 # libxml2 for metadata parser
-if test "x$HAVE_PKG_CONFIG" = "xyes"
+if test "x$HAVE_PKG_CONFIG" = "xyes" && "x$use_libxml2"= "xyes";
 then
     PKG_CHECK_MODULES([LIBXML2], libxml-2.0 >= 2.6, 
         [AC_DEFINE([HAVE_LIBXML2], [1], 
-- 
1.7.8.rc3



More information about the libbluray-devel mailing list