build: Add --disable-man
Gnome Continuous doesn't have docbook, so copy what we do for glib.
This commit is contained in:
parent
ca57ec4aa5
commit
c74ea8b075
|
|
@ -26,7 +26,7 @@ man5_MANS = $(addprefix man/,$(man5_files))
|
||||||
|
|
||||||
EXTRA_DIST += $(man1_MANS) $(man5_MANS)
|
EXTRA_DIST += $(man1_MANS) $(man5_MANS)
|
||||||
|
|
||||||
if ENABLE_XSLTPROC
|
if ENABLE_MAN
|
||||||
|
|
||||||
XSLT_STYLESHEET = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
|
XSLT_STYLESHEET = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
|
||||||
|
|
||||||
|
|
@ -51,4 +51,4 @@ CLEANFILES += \
|
||||||
$(man5_MANS) \
|
$(man5_MANS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
endif # ENABLE_GTK_DOC
|
endif
|
||||||
|
|
|
||||||
20
configure.ac
20
configure.ac
|
|
@ -126,8 +126,22 @@ enable_gtk_doc=no
|
||||||
AM_CONDITIONAL([ENABLE_GTK_DOC], false)
|
AM_CONDITIONAL([ENABLE_GTK_DOC], false)
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
AC_ARG_ENABLE(man,
|
||||||
AM_CONDITIONAL([ENABLE_XSLTPROC], test -n "${XSLTPROC}")
|
[AS_HELP_STRING([--enable-man],
|
||||||
|
[generate man pages [default=auto]])],,
|
||||||
|
enable_man=maybe)
|
||||||
|
|
||||||
|
AS_IF([test "$enable_man" != no], [
|
||||||
|
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
||||||
|
AS_IF([test -z "$XSLTPROC"], [
|
||||||
|
AS_IF([test "$enable_man" = yes], [
|
||||||
|
AC_MSG_ERROR([xsltproc is required for --enable-man])
|
||||||
|
])
|
||||||
|
enable_man=no
|
||||||
|
])
|
||||||
|
enable_man=yes
|
||||||
|
])
|
||||||
|
AM_CONDITIONAL(ENABLE_MAN, test "$enable_man" != no)
|
||||||
|
|
||||||
AC_ARG_WITH(libarchive,
|
AC_ARG_WITH(libarchive,
|
||||||
AS_HELP_STRING([--without-libarchive], [Do not use libarchive]),
|
AS_HELP_STRING([--without-libarchive], [Do not use libarchive]),
|
||||||
|
|
@ -248,7 +262,7 @@ echo "
|
||||||
SELinux: $with_selinux
|
SELinux: $with_selinux
|
||||||
libarchive (parse tar files directly): $with_libarchive
|
libarchive (parse tar files directly): $with_libarchive
|
||||||
static deltas: $enable_static_deltas
|
static deltas: $enable_static_deltas
|
||||||
man pages (xsltproc): $XSLTPROC
|
man pages (xsltproc): $enable_man
|
||||||
api docs (gtk-doc): $enable_gtk_doc
|
api docs (gtk-doc): $enable_gtk_doc
|
||||||
gjs-based tests: $have_gjs
|
gjs-based tests: $have_gjs
|
||||||
dracut: $with_dracut
|
dracut: $with_dracut
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue