summaryrefslogtreecommitdiff
path: root/source4/build/m4/env.m4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-30 19:18:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:49:04 -0500
commit83acc688e3cb21d3fe25129f1fa1522872e6eec2 (patch)
tree093ee254dd6ffb0da50e745cb4c70241c94aecb5 /source4/build/m4/env.m4
parent87a97acdfecbeb3651112639d2bb7eab3372171e (diff)
downloadsamba-83acc688e3cb21d3fe25129f1fa1522872e6eec2.tar.gz
samba-83acc688e3cb21d3fe25129f1fa1522872e6eec2.tar.bz2
samba-83acc688e3cb21d3fe25129f1fa1522872e6eec2.zip
r12615: prepare building with ../samba4/source/configure --srcdir=../samba4/source/
metze (This used to be commit bf35c74218476fc568e251bb337e794ed9d51fac)
Diffstat (limited to 'source4/build/m4/env.m4')
-rw-r--r--source4/build/m4/env.m413
1 files changed, 11 insertions, 2 deletions
diff --git a/source4/build/m4/env.m4 b/source4/build/m4/env.m4
index f156bd34b9..c20160fdb5 100644
--- a/source4/build/m4/env.m4
+++ b/source4/build/m4/env.m4
@@ -7,10 +7,19 @@ dnl
AC_CANONICAL_HOST
-SMB_VERSION_STRING=`cat include/version.h | grep 'SAMBA_VERSION_OFFICIAL_STRING' | cut -d '"' -f2`
+AC_SUBST(srcdir)
+export srcdir;
+
+# we always set builddir to "." as that's nicer than
+# having the absolute path of the current work directory
+builddir=.
+AC_SUBST(builddir)
+export builddir;
+
+SMB_VERSION_STRING=`cat ${srcdir}/include/version.h | grep 'SAMBA_VERSION_OFFICIAL_STRING' | cut -d '"' -f2`
echo "SAMBA VERSION: ${SMB_VERSION_STRING}"
-SAMBA_VERSION_SVN_REVISION=`cat include/version.h | grep 'SAMBA_VERSION_SVN_REVISION' | cut -d ' ' -f3-`
+SAMBA_VERSION_SVN_REVISION=`cat ${srcdir}/include/version.h | grep 'SAMBA_VERSION_SVN_REVISION' | cut -d ' ' -f3-`
if test -n "${SAMBA_VERSION_SVN_REVISION}";then
echo "BUILD REVISION: ${SAMBA_VERSION_SVN_REVISION}"
fi