Detect missing 'witch' before detecting missing autoconf
authorAndrew Bartlett <abartlet@samba.org>
Mon, 18 May 2009 05:56:31 +0000 (15:56 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 May 2009 02:45:37 +0000 (12:45 +1000)
source4/autogen.sh

index 8b970230739c67a6ac6f48928ce8176d5e092e70..2d995caeaecd79e7c72d9ecb600527d057007258 100755 (executable)
@@ -22,7 +22,12 @@ TESTAUTOCONF="autoconf autoconf-2.53 autoconf2.50 autoconf259 autoconf253"
 AUTOHEADERFOUND="0"
 AUTOCONFFOUND="0"
 
-
+if which which > /dev/null 2>&1; then
+        echo -n
+else
+       echo "$0: need 'which' to figure out if we have the right autoconf to build samba from git" >&2
+       exit 1
+fi
 ##
 ## Look for autoheader
 ##