mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
Check if libxml provides HTML parser which subparse needs.
Original commit message from CVS: Patch by: Daniel Díaz <yosoy@danieldiaz.org> * configure.ac: * gst/Makefile.am: Check if libxml provides HTML parser which subparse needs. Fixes #451970.
This commit is contained in:
parent
af6eee1084
commit
b2f2cfc132
3 changed files with 29 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2007-08-30 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
|
Patch by: Daniel Díaz <yosoy@danieldiaz.org>
|
||||||
|
|
||||||
|
* configure.ac:
|
||||||
|
* gst/Makefile.am:
|
||||||
|
Check if libxml provides HTML parser which subparse needs.
|
||||||
|
Fixes #451970.
|
||||||
|
|
||||||
2007-08-29 Tim-Philipp Müller <tim at centricular dot net>
|
2007-08-29 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* ext/alsa/gstalsa.c:
|
* ext/alsa/gstalsa.c:
|
||||||
|
|
15
configure.ac
15
configure.ac
|
@ -200,6 +200,21 @@ dnl used in gst/subparse/gstsubparse.c
|
||||||
AC_CHECK_HEADERS([regex.h], HAVE_REGEX_H="yes", HAVE_REGEX_H="no")
|
AC_CHECK_HEADERS([regex.h], HAVE_REGEX_H="yes", HAVE_REGEX_H="no")
|
||||||
AM_CONDITIONAL(HAVE_REGEX_H, test "x$HAVE_REGEX_H" = "xyes")
|
AM_CONDITIONAL(HAVE_REGEX_H, test "x$HAVE_REGEX_H" = "xyes")
|
||||||
|
|
||||||
|
if test "x$HAVE_REGEX_H" = "xyes"; then
|
||||||
|
ac_cppflags_save="$CPPFLAGS"
|
||||||
|
CPPFLAGS="-Wall -Werror `$PKG_CONFIG --cflags libxml-2.0`"
|
||||||
|
AC_COMPILE_IFELSE(
|
||||||
|
AC_LANG_PROGRAM([
|
||||||
|
#include <libxml/HTMLparser.h>
|
||||||
|
],[
|
||||||
|
#ifndef LIBXML_HTML_ENABLED
|
||||||
|
#error libxml2 has no HTML support
|
||||||
|
#endif /* LIBXML_HTML_ENABLED */
|
||||||
|
]), HAVE_LIBXML_HTML=yes, HAVE_LIBXML_HTML=no)
|
||||||
|
AM_CONDITIONAL(HAVE_LIBXML_HTML, test "x$HAVE_LIBXML_HTML" = "xyes")
|
||||||
|
CPPFLAGS="$ac_cppflags_save"
|
||||||
|
fi
|
||||||
|
|
||||||
dnl used in gst/tcp
|
dnl used in gst/tcp
|
||||||
AC_CHECK_HEADERS([sys/socket.h],
|
AC_CHECK_HEADERS([sys/socket.h],
|
||||||
HAVE_SYS_SOCKET_H="yes", HAVE_SYS_SOCKET_H="no")
|
HAVE_SYS_SOCKET_H="yes", HAVE_SYS_SOCKET_H="no")
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
if HAVE_REGEX_H
|
if HAVE_REGEX_H
|
||||||
|
if HAVE_LIBXML_HTML
|
||||||
SUBPARSE = subparse
|
SUBPARSE = subparse
|
||||||
else
|
else
|
||||||
SUBPARSE =
|
SUBPARSE =
|
||||||
endif
|
endif
|
||||||
|
else
|
||||||
|
SUBPARSE =
|
||||||
|
endif
|
||||||
|
|
||||||
if HAVE_SYS_SOCKET_H
|
if HAVE_SYS_SOCKET_H
|
||||||
TCP = tcp
|
TCP = tcp
|
||||||
|
@ -12,3 +16,4 @@ endif
|
||||||
|
|
||||||
SUBDIRS = $(GST_PLUGINS_SELECTED) $(SUBPARSE) $(TCP)
|
SUBDIRS = $(GST_PLUGINS_SELECTED) $(SUBPARSE) $(TCP)
|
||||||
DIST_SUBDIRS = $(GST_PLUGINS_ALL) subparse tcp
|
DIST_SUBDIRS = $(GST_PLUGINS_ALL) subparse tcp
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue