merged in Shawn's build tools checker for autogen
[OpenSRF.git] / autogen.sh
old mode 100644 (file)
new mode 100755 (executable)
index dc8591f..9190b41
@@ -15,6 +15,22 @@ ${AUTOMAKE} --add-missing
 
 ${AUTOCONF}
 
+SILENT=`which libtoolize aclocal autoheader automake autoconf`
+case "$?" in
+    0 )
+        echo All build tools found.
+        ;;
+    1)
+        echo
+        echo "--------------------------------------------------------------"
+        echo "          >>> Some build tools are missing! <<<"
+        echo Please make sure your system has the GNU autoconf and automake
+        echo toolchains installed.
+        echo "--------------------------------------------------------------"
+        exit
+        ;;
+esac
+
 echo 
 echo "---------------------------------------------"
 echo "autogen finished running, now run ./configure"