s3: Add support for make test to use a share dir outside of the prefix dir
[metze/samba/wip.git] / source3 / m4 / check_path.m4
index 9c994680849bed5158d25d5267ae9a01235ae076..0cff397c93b5616096619ebb56621372fab1e8f4 100644 (file)
@@ -275,6 +275,22 @@ AC_ARG_WITH(selftest-prefix,
   esac
 ])
 
+#################################################
+# set shrdir for 'make test'
+selftest_shrdir=""
+AC_SUBST(selftest_shrdir)
+AC_ARG_WITH(selftest-shrdir,
+[AS_HELP_STRING([--with-selftest-shrdir=DIR], [The share directory that make test will be run against ($selftest_shrdir)])],
+[ case "$withval" in
+  yes|no)
+    AC_MSG_WARN([--with-selftest-shrdir called without argument - will use default])
+  ;;
+  * )
+    selftest_shrdir="$withval"
+    ;;
+  esac
+])
+
 #################################################
 # set path of samba4's smbtorture
 smbtorture4_path=""