build: autogenarate VPATH by configure
[ira/wip.git] / source4 / build / m4 / env.m4
index 9510a8ee0d0bb0ecdf6bb44ae2a138412aa7a6d2..6c040b9babc276a5563a810f149e4292506b1031 100644 (file)
@@ -16,6 +16,9 @@ export builddir;
 
 AC_SUBST(datarootdir)
 
+AC_SUBST(VPATH)
+VPATH="\$(builddir):\$(srcdir)"
+
 SMB_VERSION_STRING=`cat ${srcdir}/version.h | grep 'SAMBA_VERSION_OFFICIAL_STRING' | cut -d '"' -f2`
 echo "SAMBA VERSION: ${SMB_VERSION_STRING}"