[vlc-devel] commit: Require libxml2 < 2.7 ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Mar 15 17:22:23 CET 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Mar 15 18:06:37 2009 +0200| [5aa35524799114bae811469407337f1d0c219202] | committer: Rémi Denis-Courmont
Require libxml2 < 2.7
Thread initialization has changed in 2.7, such that VLC and Qt4 cannot
both use libxml2. While this maximum version requirement is bound to
frustrate Linux/BSD users, we cannot fix this within VLC. Falling back
to xtag is not quite as bad as crashing.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5aa35524799114bae811469407337f1d0c219202
---
configure.ac | 4 ++--
modules/misc/xml/libxml.c | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index d502f2c..1d8c127 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4311,13 +4311,13 @@ dnl
AC_ARG_ENABLE(libxml2,
[ --enable-libxml2 libxml2 support (default enabled)])
AS_IF([test "${enable_libxml2}" != "no"], [
- PKG_CHECK_MODULES([XML2], [libxml-2.0 >= 2.5], [
+ PKG_CHECK_MODULES([XML2], [libxml-2.0 >= 2.5 libxml-2.0 < 2.7], [
VLC_ADD_CPPFLAGS([xml],[${XML2_CFLAGS}])
VLC_ADD_LIBS([xml],[${XML2_LIBS}])
VLC_ADD_PLUGIN([xml])
], [
AS_IF([test "x${enable_xml2}" != "x"], [
- AC_MSG_ERROR([Could not find libxml2])
+ AC_MSG_ERROR([Could not find libxml version 2.5 or 2.6])
])
])
])
diff --git a/modules/misc/xml/libxml.c b/modules/misc/xml/libxml.c
index 28a6696..09c200e 100644
--- a/modules/misc/xml/libxml.c
+++ b/modules/misc/xml/libxml.c
@@ -35,6 +35,10 @@
#include <libxml/xmlreader.h>
#include <libxml/catalog.h>
+#if !defined (LIBXML_VERSION) || (LIBXML_VERSION > 20700)
+# error Stale config.cache detected. Erase it and re-run configure.
+#endif
+
/*****************************************************************************
* Module descriptor
*****************************************************************************/
More information about the vlc-devel
mailing list