From: Björn Jacke Date: Fri, 3 Jul 2009 16:22:16 +0000 (+0200) Subject: tdb: fix define of tdbdir when srcdir != "." X-Git-Tag: talloc-2.0.0~784 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdf025f012d6a426396da5478735663468023bd4;p=thirdparty%2Fsamba.git tdb: fix define of tdbdir when srcdir != "." --- diff --git a/lib/tdb/libtdb.m4 b/lib/tdb/libtdb.m4 index f5ed012a80f..8c847363044 100644 --- a/lib/tdb/libtdb.m4 +++ b/lib/tdb/libtdb.m4 @@ -1,9 +1,9 @@ dnl find the tdb sources. This is meant to work both for dnl tdb standalone builds, and builds of packages using tdb tdbdir="" -tdbpaths="$srcdir $srcdir/lib/tdb $srcdir/tdb $srcdir/../tdb $srcdir/../lib/tdb" +tdbpaths=". lib/tdb tdb ../tdb ../lib/tdb" for d in $tdbpaths; do - if test -f "$d/common/tdb.c"; then + if test -f "$srcdir/$d/common/tdb.c"; then tdbdir="$d" AC_SUBST(tdbdir) break;