summaryrefslogtreecommitdiff
path: root/source4/build/m4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-18 17:55:50 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-18 17:55:50 +0200
commit353afc8d943f6ecfad83af830919afdcc5a853fc (patch)
tree1a6b344176cc0713550f981fcaf4cbf005250d52 /source4/build/m4
parent9207a22a0e624b60f148fe7ac261b130ba6c285d (diff)
downloadsamba-353afc8d943f6ecfad83af830919afdcc5a853fc.tar.gz
samba-353afc8d943f6ecfad83af830919afdcc5a853fc.tar.bz2
samba-353afc8d943f6ecfad83af830919afdcc5a853fc.zip
Move writing of data.mk file to m4 macro.
(This used to be commit 7fee112d2b86b423c397118f0333065825ea3518)
Diffstat (limited to 'source4/build/m4')
-rw-r--r--source4/build/m4/public.m431
1 files changed, 31 insertions, 0 deletions
diff --git a/source4/build/m4/public.m4 b/source4/build/m4/public.m4
index 7a9a76d60f..300c64f854 100644
--- a/source4/build/m4/public.m4
+++ b/source4/build/m4/public.m4
@@ -190,3 +190,34 @@ $SMB_INFO_ENABLES
1;
CEOF
])
+
+dnl SMB_BUILD_RUN(OUTPUT_FILE)
+AC_DEFUN([SMB_BUILD_RUN],
+[
+AC_OUTPUT_COMMANDS(
+[
+test "x$ac_abs_srcdir" != "x$ac_abs_builddir" && (
+ cd $builddir;
+ # NOTE: We *must* use -R so we don't follow symlinks (at least on BSD
+ # systems).
+ test -d heimdal || cp -R $srcdir/heimdal $builddir/
+ test -d heimdal_build || cp -R $srcdir/heimdal_build $builddir/
+ test -d build || builddir="$builddir" \
+ srcdir="$srcdir" \
+ $PERL ${srcdir}/script/buildtree.pl
+ )
+
+$PERL -I${builddir} -I${builddir}/build \
+ -I${srcdir} -I${srcdir}/build \
+ ${srcdir}/build/smb_build/main.pl $1 || exit $?
+],
+[
+srcdir="$srcdir"
+builddir="$builddir"
+PERL="$PERL"
+
+export PERL
+export srcdir
+export builddir
+])
+])