summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-05-31 20:44:30 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-05-31 20:45:14 +0200
commita22d7db30813127690d5c3758e7abfa8805e76c9 (patch)
tree6b1d8baa92d7c79a45e8e8b744c1e8e7b9fb5e89
parent41cdac9c3e5b2e9eea3067892a3e60b4bff67154 (diff)
downloadsamba-a22d7db30813127690d5c3758e7abfa8805e76c9.tar.gz
samba-a22d7db30813127690d5c3758e7abfa8805e76c9.tar.bz2
samba-a22d7db30813127690d5c3758e7abfa8805e76c9.zip
wafsamba: Only try to build manpages if XSLTPROC was actually found.
-rw-r--r--buildtools/wafsamba/wafsamba.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index a9b81f4918..13f3f8cd93 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -213,7 +213,7 @@ def SAMBA_LIBRARY(bld, libname, source,
if pc_files is not None:
bld.PKG_CONFIG_FILES(pc_files, vnum=vnum)
- if manpages is not None and 'XSLTPROC' in bld.env:
+ if manpages is not None and 'XSLTPROC' in bld.env and bld.env['XSLTPROC']:
bld.MANPAGES(manpages)
@@ -304,7 +304,7 @@ def SAMBA_BINARY(bld, binname, source,
if subsystem_name is not None:
bld.TARGET_ALIAS(subsystem_name, binname)
- if manpages is not None and 'XSLTPROC' in bld.env:
+ if manpages is not None and 'XSLTPROC' in bld.env and bld.env['XSLTPROC']:
bld.MANPAGES(manpages)
Build.BuildContext.SAMBA_BINARY = SAMBA_BINARY