diff options
author | James Peach <jpeach@samba.org> | 2007-04-02 17:06:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:49:42 -0500 |
commit | 2882b2ba63ea65c806643f86d996513414c827d0 (patch) | |
tree | 566cae1d3cfc3e3b2b5a301f55405b72ff2bd5b8 /source4/pidl | |
parent | dec40d3463383fa525a97f0463010c87f5375a86 (diff) | |
download | samba-2882b2ba63ea65c806643f86d996513414c827d0.tar.gz samba-2882b2ba63ea65c806643f86d996513414c827d0.tar.bz2 samba-2882b2ba63ea65c806643f86d996513414c827d0.zip |
r22029: Make sure we respect $srcdir correctly for the srcdir != builddir case.
(This used to be commit 0db4256a472975c5097135fa87315038a1350a72)
Diffstat (limited to 'source4/pidl')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4.pm b/source4/pidl/lib/Parse/Pidl/Samba4.pm index f0c6ae38e8..f6c0ee38f7 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4.pm @@ -18,8 +18,10 @@ $VERSION = '0.01'; sub is_intree() { - return 4 if (-f "kdc/kdc.c"); - return 3 if (-f "include/smb.h"); + my $srcdir = $ENV{srcdir}; + $srcdir = $srcdir ? "$srcdir/" : ""; + return 4 if (-f "${srcdir}kdc/kdc.c"); + return 3 if (-f "${srcdir}include/smb.h"); return 0; } |