diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-11 18:46:01 +0100 |
---|---|---|
committer | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-12 18:01:01 +0100 |
commit | 2b8895da5eed09ff0a45594fbab4541246a61f68 (patch) | |
tree | 6f28d61075b6f05481c3791746211a826856d8fd /configure.ac | |
parent | cb9f88ba944d56c0b6c65be18500f7d56c9f514c (diff) | |
download | pam-2b8895da5eed09ff0a45594fbab4541246a61f68.tar.gz pam-2b8895da5eed09ff0a45594fbab4541246a61f68.tar.bz2 pam-2b8895da5eed09ff0a45594fbab4541246a61f68.zip |
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 <tobias@stoeckmann.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
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.in >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.in >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@:>@]), |