]> git.lyx.org Git - lyx.git/commitdiff
Allow bundled saxon not to be installed.
authorPavel Sanda <sanda@lyx.org>
Wed, 17 Mar 2021 20:51:01 +0000 (21:51 +0100)
committerPavel Sanda <sanda@lyx.org>
Wed, 17 Mar 2021 20:51:01 +0000 (21:51 +0100)
config/lyxinclude.m4
configure.ac
lib/Makefile.am

index b7abe0db64d1379ecbfe3c1fbaed647d0feb1266..a3f89a5ef412eb94ff8d8af2eb0b942d0c015085 100644 (file)
@@ -952,3 +952,16 @@ AC_DEFUN([LYX_CHECK_WITH_SAXON],
        AM_CONDITIONAL(SAXON_INSTALL, $lyx_use_saxon)
     ])
 
+AC_DEFUN([LYX_CHECK_WITH_XSLT_SHEETS],
+[
+       lyx_use_xslt_stylesheets=true
+       AC_ARG_WITH(xslt-stylesheets, AS_HELP_STRING([--without-xslt-stylesheets],[do not install XSLT Stylesheets (epub export)]))
+       test "$with_xslt_stylesheets" = "no" && lyx_use_xslt_stylesheets=false
+
+       if $lyx_use_xslt_stylesheets ; then
+               AC_MSG_RESULT(Set to installing XSLT Stylesheets.)
+       fi
+
+       AM_CONDITIONAL(XSLT_SHEETS_INSTALL, $lyx_use_xslt_stylesheets)
+    ])
+
index d7a49c5d41e189cc3e1878b5639aec042b213247..785d5c96cd3a878da24918e8c310794053bba03f 100644 (file)
@@ -197,6 +197,7 @@ LYX_CHECK_SPELL_ENGINES
 LYX_USE_INCLUDED_MYTHES
 
 LYX_CHECK_WITH_SAXON
+LYX_CHECK_WITH_XSLT_SHEETS
 
 lyx_client_subdir=true
 dnl LIBS already contains some X extra libs that may interfere.
index ae02d702eff163fa5fe2097752912d2485c0d671..7db272891c9cbb822674e90400ff98d60082d67a 100644 (file)
@@ -2884,14 +2884,14 @@ endif
 
 #3) xslt Stylesheets 1.79.2
 docbookdir = $(pkgdatadir)/docbook
-dist_docbook_DATA = \
+docbook_FILES = \
        docbook/COPYING \
        docbook/source.txt \
        docbook/VERSION \
        docbook/VERSION.xsl
 
 docbookcommondir = $(pkgdatadir)/docbook/common
-dist_docbookcommon_DATA = \
+docbookcommon_FILES = \
        docbook/common/addns.xsl \
        docbook/common/af.xml \
        docbook/common/am.xml \
@@ -2996,7 +2996,7 @@ dist_docbookcommon_DATA = \
        docbook/common/zh.xml
 
 docbookepub3dir = $(pkgdatadir)/docbook/epub3
-dist_docbookepub3_DATA = \
+docbookepub3_FILES = \
        docbook/epub3/build.xml \
        docbook/epub3/chunkfast.xsl \
        docbook/epub3/chunk.xsl \
@@ -3011,12 +3011,12 @@ dist_docbookepub3_DATA = \
        docbook/epub3/titlepage.templates.xsl
 
 docbooklibdir = $(pkgdatadir)/docbook/lib
-dist_docbooklib_DATA = \
+docbooklib_FILES = \
        docbook/lib/build.xml \
        docbook/lib/lib.xsl
 
 docbookxhtml5dir = $(pkgdatadir)/docbook/xhtml5
-dist_docbookxhtml5_DATA = \
+docbookxhtml5_FILES = \
        docbook/xhtml5/build.xml \
        docbook/xhtml5/chunkfast.xsl \
        docbook/xhtml5/chunk.xsl \
@@ -3033,7 +3033,7 @@ dist_docbookxhtml5_DATA = \
        docbook/xhtml5/xhtml-profile-docbook.xsl
 
 docbookxhtmldir = $(pkgdatadir)/docbook/xhtml
-dist_docbookxhtml_DATA = \
+docbookxhtml_FILES = \
        docbook/xhtml/admon.xsl \
        docbook/xhtml/annotations.xsl \
        docbook/xhtml/autoidx-kimber.xsl \
@@ -3099,6 +3099,22 @@ dist_docbookxhtml_DATA = \
        docbook/xhtml/verbatim.xsl \
        docbook/xhtml/xref.xsl
 
+if XSLT_SHEETS_INSTALL
+dist_docbook_DATA = $(docbook_FILES)
+dist_docbookcommon_DATA = $(docbookcommon_FILES)
+dist_docbookepub3_DATA = $(docbookepub3_FILES)
+dist_docbooklib_DATA = $(docbooklib_FILES)
+dist_docbookxhtml5_DATA = $(docbookxhtml5_FILES)
+dist_docbookxhtml_DATA = $(docbookxhtml_FILES)
+else
+dist_noinst_DATA += $(docbook_FILES)
+dist_noinst_DATA += $(docbookcommon_FILES)
+dist_noinst_DATA += $(docbookepub3_FILES)
+dist_noinst_DATA += $(docbooklib_FILES)
+dist_noinst_DATA += $(docbookxhtml5_FILES)
+dist_noinst_DATA += $(docbookxhtml_FILES)
+endif
+
 
 if INSTALL_POSIX
 # install application icons. The 'hicolor' theme is the default theme