Fix libtdb some to move back towards allowing out of tree builds
authorGerald (Jerry) Carter <jerry@samba.org>
Mon, 24 Mar 2008 19:27:01 +0000 (14:27 -0500)
committerGerald (Jerry) Carter <jerry@samba.org>
Mon, 24 Mar 2008 22:25:13 +0000 (17:25 -0500)
Remaining problem is that not all *.syms linker scripts are generated
so the LD command needs to look in a single place.  Out of tree
builds now work but report write access to the source tree in order
to create the $(srcdir)/expotrs/libtdb.sysms file.

source/Makefile.in
source/configure.in
source/script/mksyms.sh

index 19bdad39e4abe6886107a467517316beb46e64cf..d9d0ea2d48ef51e55effdd222c854cb0a3f0ac84 100644 (file)
@@ -150,7 +150,7 @@ LIBTALLOC=$(LIBTALLOC_STATIC_TARGET) @LIBTALLOC_SHARED@
 LIBTDB_SHARED_TARGET=@LIBTDB_SHARED_TARGET@
 LIBTDB_STATIC_TARGET=@LIBTDB_STATIC_TARGET@
 LIBTDB=$(LIBTDB_STATIC_TARGET) @LIBTDB_SHARED@
-LIBTDB_SYMS=exports/libtdb.syms
+LIBTDB_SYMS=$(srcdir)/exports/libtdb.syms
 LIBTDB_HEADERS=@tdbdir@/include/tdb.h
 
 LIBSMBCLIENT=bin/libsmbclient.a @LIBSMBCLIENT_SHARED@
index 8b227d01421fa23d20d271244b76a6e66fa68262..bcfad68875d825368d4252df7f8f85faf2b2ffaf 100644 (file)
@@ -33,7 +33,7 @@ AC_SUBST(TALLOC_OBJS)
 
 # TODO: These should come from m4_include(lib/tdb/libtdb.m4)
 # but currently this fails: things have to get merged from s4.
-tdbdir="lib/tdb"
+tdbdir="${srcdir-.}/lib/tdb"
 AC_SUBST(tdbdir)
 TDB_CFLAGS="-I$tdbdir/include"
 AC_SUBST(TDB_CFLAGS)
index 637ec5027c40aeedf5934cbd3ff69f533d37cd11..51d3fbd99925069bf9beead03f3a41c58881b2a6 100755 (executable)
@@ -34,7 +34,7 @@ echo creating $symsfile
 
 mkdir -p `dirname $symsfile`
 
-${awk} -f script/mksyms.awk $proto_src > $symsfile_tmp
+${awk} -f `dirname $0`/mksyms.awk $proto_src > $symsfile_tmp
 
 if cmp -s $symsfile $symsfile_tmp 2>/dev/null
 then