tdb: fix define of tdbdir when srcdir != "."
authorBjörn Jacke <bj@sernet.de>
Fri, 3 Jul 2009 16:22:16 +0000 (18:22 +0200)
committerBjörn Jacke <bj@sernet.de>
Fri, 3 Jul 2009 16:24:42 +0000 (18:24 +0200)
lib/tdb/libtdb.m4

index f5ed012a80f4f42f8c15f70b6922c550e9c4488d..8c847363044f35cb0c7bfb06959be384f2a48a70 100644 (file)
@@ -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;