7556f16ce2a4965b3dd286c38ade25f01f90d27e
[ira/wip.git] / source / build / m4 / env.m4
1 dnl SMB Build Environment Checks
2 dnl -------------------------------------------------------
3 dnl  Copyright (C) Stefan (metze) Metzmacher 2004
4 dnl  Released under the GNU GPL
5 dnl -------------------------------------------------------
6 dnl
7
8 AC_SUBST(srcdir)
9 export srcdir;
10
11 # we always set builddir to "." as that's nicer than
12 # having the absolute path of the current work directory
13 builddir=.
14 AC_SUBST(builddir)
15 export builddir;
16
17 AC_SUBST(datarootdir)
18
19 SMB_VERSION_STRING=`cat ${srcdir}/version.h | grep 'SAMBA_VERSION_OFFICIAL_STRING' | cut -d '"' -f2`
20 echo "SAMBA VERSION: ${SMB_VERSION_STRING}"
21
22 SAMBA_VERSION_SVN_REVISION=`cat ${srcdir}/version.h | grep 'SAMBA_VERSION_SVN_REVISION' | cut -d ' ' -f3-`
23 if test -n "${SAMBA_VERSION_SVN_REVISION}";then
24         echo "BUILD REVISION: ${SAMBA_VERSION_SVN_REVISION}"
25 fi
26
27 m4_include(build/m4/check_path.m4)
28 m4_include(build/m4/check_perl.m4)
29 m4_include(build/m4/check_cc.m4)
30 m4_include(build/m4/check_ld.m4)
31 m4_include(build/m4/check_make.m4)
32 m4_include(build/m4/check_doc.m4)