summaryrefslogtreecommitdiff
path: root/source4/build/scons/pidl.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-09-24 22:37:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:52 -0500
commita6b1c74cc7f78d7d04926861634cbe310ea73ace (patch)
tree398c0065e827f8d454fa5a6d833f85c280ced37d /source4/build/scons/pidl.py
parentcb6a4b280fc98994a4d764480d5b10be4f2d085c (diff)
downloadsamba-a6b1c74cc7f78d7d04926861634cbe310ea73ace.tar.gz
samba-a6b1c74cc7f78d7d04926861634cbe310ea73ace.tar.bz2
samba-a6b1c74cc7f78d7d04926861634cbe310ea73ace.zip
r10480: Fix build for people that don't have pidl installed
(This used to be commit 4cf25c8312b7da0cde0d618e7d386938e1d0adba)
Diffstat (limited to 'source4/build/scons/pidl.py')
-rw-r--r--source4/build/scons/pidl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/build/scons/pidl.py b/source4/build/scons/pidl.py
index 0c5c16b0b5..e225e7ce9c 100644
--- a/source4/build/scons/pidl.py
+++ b/source4/build/scons/pidl.py
@@ -40,7 +40,7 @@ tdr_builder = SCons.Builder.Builder(action='$TDRCOM',
scanner = idl_scanner)
def generate(env):
- env['PIDL'] = env.Detect(['./pidl/pidl', 'pidl'])
+ env['PIDL'] = env.WhereIs('pidl', ['pidl'])
env['NDRFLAGS'] = ['--outputdir', 'librpc/gen_ndr','--ndr-header', '--ndr-parser','--header']
env['TDRFLAGS'] = ['--tdr-parser', '--tdr-header','--header']
env['NDRCOM'] = '$PIDL $NDRFLAGS -- $SOURCES'
@@ -49,4 +49,4 @@ def generate(env):
env['BUILDERS']['TdrMarshaller'] = tdr_builder
def exists(env):
- return env.Detect(['./pidl/pidl','pidl'])
+ return env.WhereIs('pidl', ['pidl'])