From 2b8895da5eed09ff0a45594fbab4541246a61f68 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Thu, 11 Jan 2024 18:46:01 +0100 Subject: treewide: strictly separate builddir and srcdir Building outside of source directory fails if --disable-doc is not explicitly chosen. This happens because generated files are sometimes expected in the source directory, where they won't exist. Signed-off-by: Tobias Stoeckmann --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 1d027a3f..f7ed917b 100644 --- a/configure.ac +++ b/configure.ac @@ -263,9 +263,10 @@ AC_ARG_ENABLE(txt_stylesheet, TXT_STYLESHEET=$enableval, TXT_STYLESHEET=http://docbook.sourceforge.net/release/xsl-ns/current/html/docbook.xsl) +${MKDIR_P} doc AC_SUBST(TXT_STYLESHEET) # It has to be TXT_STYLESHEET otherwise a html tree will be generated while generating all README files. -sed "s+HTML_STYLESHEET+$TXT_STYLESHEET+g" doc/custom-html.xsl +sed "s+HTML_STYLESHEET+$TXT_STYLESHEET+g" <$srcdir/doc/custom-html.xsl.in >doc/custom-html.xsl AC_ARG_ENABLE(pdf_stylesheet, AS_HELP_STRING([--enable-pdf-stylesheet=FILE],[pdf stylesheet path @<:@default=http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl@:>@]), @@ -278,7 +279,7 @@ AC_ARG_ENABLE(man_stylesheet, AC_SUBST(MAN_STYLESHEET) -sed "s+MAN_STYLESHEET+$MAN_STYLESHEET+g" doc/custom-man.xsl +sed "s+MAN_STYLESHEET+$MAN_STYLESHEET+g" <$srcdir/doc/custom-man.xsl.in >doc/custom-man.xsl AC_ARG_ENABLE(securedir, AS_HELP_STRING([--enable-securedir=DIR],[path to location of PAMs @<:@default=$libdir/security@:>@]), -- cgit v1.2.3