mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
configure.ac: Correctly check for XML tools. Correctly set
Original commit message from CVS: * configure.ac: Correctly check for XML tools. Correctly set BUILD_DOCS variable depending on tools. * docs/Makefile.am: Use XML variables.
This commit is contained in:
parent
fb892000aa
commit
39381dbd87
3 changed files with 40 additions and 18 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-07-02 David Schleef <ds@schleef.org>
|
||||
|
||||
* configure.ac: Correctly check for XML tools. Correctly set
|
||||
BUILD_DOCS variable depending on tools.
|
||||
* docs/Makefile.am: Use XML variables.
|
||||
|
||||
2004-06-21 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* configure.ac: back to cvs
|
||||
|
|
44
configure.ac
44
configure.ac
|
@ -107,29 +107,47 @@ dnl AM_CONDITIONAL(BUILD_EDITOR, test "x$HAVE_EDITOR" = "xyes")
|
|||
dnl AC_SUBST(GST_EDITOR_CFLAGS)
|
||||
dnl AC_SUBST(GST_EDITOR_LIBS)
|
||||
|
||||
AC_CHECK_PROG(HAVE_XMLTO, xmlto, true, false)
|
||||
AC_CHECK_PROG(HAVE_XMLCATALOG, xmlcatalog, true, false)
|
||||
BUILD_DOCS=yes
|
||||
AC_CHECK_PROG(XMLTO, xmlto, xmlto, no)
|
||||
if test "x$XMLTO" = xno ; then
|
||||
BUILD_DOCS=no
|
||||
fi
|
||||
AC_SUBST(XMLTO)
|
||||
AC_CHECK_PROG(XMLCATALOG, xmlcatalog, xmlcatalog, no)
|
||||
if test "x$XMLCATALOG" = xno ; then
|
||||
BUILD_DOCS=no
|
||||
fi
|
||||
AC_SUBST(XMLCATALOG)
|
||||
AC_CHECK_PROG(XMLLINT, xmllint, xmllint, no)
|
||||
if test "x$XMLLINT" = xno ; then
|
||||
BUILD_DOCS=no
|
||||
fi
|
||||
AC_SUBST(XMLLINT)
|
||||
|
||||
AC_ARG_ENABLE(docs,
|
||||
AC_HELP_STRING([--enable-docs],[enable building of documentation]),
|
||||
[case "${enableval}" in
|
||||
yes)
|
||||
if test "x$HAVE_XMLTO" = "xtrue" ; then
|
||||
BUILD_DOCS=yes
|
||||
else
|
||||
if test "x$XMLTO" = "xno" ; then
|
||||
AC_MSG_ERROR([you don't have xmlto, so don't use --enable-docs])
|
||||
BUILD_DOCS=no
|
||||
fi
|
||||
if test "x$HAVE_XMLCATALOG" = "xtrue" ; then
|
||||
BUILD_DOCS=yes
|
||||
else
|
||||
if test "x$XMLCATALOG" = "xno" ; then
|
||||
AC_MSG_ERROR([you don't have xmlcatalog, so don't use --enable-docs])
|
||||
BUILD_DOCS=no
|
||||
fi ;;
|
||||
no) BUILD_DOCS=no ;;
|
||||
*) AC_MSG_ERROR(bad value ${enableval} for --enable-docs) ;;
|
||||
esac],
|
||||
[BUILD_DOCS=yes]) dnl Default value
|
||||
fi
|
||||
if test "x$XMLLINT" = "xno" ; then
|
||||
AC_MSG_ERROR([you don't have xmllint, so don't use --enable-docs])
|
||||
BUILD_DOCS=no
|
||||
fi
|
||||
;;
|
||||
no)
|
||||
BUILD_DOCS=no
|
||||
;;
|
||||
*)
|
||||
AC_MSG_ERROR(bad value ${enableval} for --enable-docs)
|
||||
;;
|
||||
esac])
|
||||
|
||||
AM_CONDITIONAL(BUILD_DOCS, test "x$BUILD_DOCS" = "xyes")
|
||||
|
||||
|
|
|
@ -18,17 +18,15 @@ CLEANFILES = $(DOCS) $(TOPDOCS) $(RELNOTES) tmpbuildcatalog
|
|||
|
||||
if BUILD_DOCS
|
||||
|
||||
XMLTO = xmlto
|
||||
XMLTOFLAGS = --skip-validation -o $(CURDIR)
|
||||
XMLLINT = xmllint
|
||||
XMLLINTFLAGS = --xinclude --noout --loaddtd --catalogs --postvalid
|
||||
|
||||
all: $(DOCS)
|
||||
|
||||
tmpbuildcatalog: gst-python.ent
|
||||
xmlcatalog --noout --create $@
|
||||
xmlcatalog --noout --add system `cd $(srcdir) && pwd`/gst-python.ent $(CURDIR)/gst-python.ent $@
|
||||
xmlcatalog --noout --add system $(srcdir)/gst-python.ent $(CURDIR)/gst-python.ent $@
|
||||
$(XMLCATALOG) --noout --create $@
|
||||
$(XMLCATALOG) --noout --add system `cd $(srcdir) && pwd`/gst-python.ent $(CURDIR)/gst-python.ent $@
|
||||
$(XMLCATALOG) --noout --add system $(srcdir)/gst-python.ent $(CURDIR)/gst-python.ent $@
|
||||
|
||||
#check: tmpbuildcatalog
|
||||
# for d in $(XMLFILES); do \
|
||||
|
|
Loading…
Reference in a new issue