summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-10-03 21:14:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:09 -0500
commit33c0cebd75a3b94f551587b5fc2d067b7b887211 (patch)
tree8ed0711bf07c4efc111b58217926070950b96d6d /source3
parent7c4df041a66e9d9913dec3008ae3ef4f74c5e505 (diff)
downloadsamba-33c0cebd75a3b94f551587b5fc2d067b7b887211.tar.gz
samba-33c0cebd75a3b94f551587b5fc2d067b7b887211.tar.bz2
samba-33c0cebd75a3b94f551587b5fc2d067b7b887211.zip
r25494: Sanity check --with-samba4srcdir argument.
(This used to be commit d05bf1fbeeb5504d3b372b03db1ab5fd535f7b2e)
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in15
1 files changed, 12 insertions, 3 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 2eb06bdcac..1a74583b3b 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -427,10 +427,19 @@ AC_ARG_WITH(samba4srcdir,
AC_MSG_ERROR([--with-samba4srcdir should take a path])
;;
* )
- samba4srcdir="$withval"
- if test -z "$samba4srcdir" -a ! -f $samba4srcdir; then
- AC_MSG_ERROR(['$samba4srcdir' does not exist!])
+ if test -z "$withval" -a ! -f $withval; then
+ AC_MSG_ERROR(['$withval' does not exist!])
fi
+
+ if test -f "$withval/selftest/selftest.pl"; then
+ samba4srcdir="$withval"
+ else
+ if test -f "$withval/source/selftest/selftest.pl"; then
+ samba4srcdir="$withval/source"
+ else
+ AC_MSG_ERROR([unable to find selftest.pl in '$withval'!])
+ fi
+ fi
;;
esac
])