Add bounds checking prior to IOs in vldb_check
[openafs.git] / regen.sh
index 8d04e24..8ef4349 100755 (executable)
--- a/regen.sh
+++ b/regen.sh
@@ -16,7 +16,15 @@ done
 
 echo "Updating configuration..."
 echo "Running aclocal"
-aclocal -I src/cf
+if which aclocal > /dev/null 2>&1; then
+  aclocal -I src/cf
+elif which aclocal-1.10 > /dev/null 2>&1; then
+  aclocal-1.10 -I src/cf
+else
+  echo "No aclocal found on your system (looked for aclocal & aclocal-1.10)"
+  exit 1
+fi
+
 echo "Running autoconf"
 autoconf
 echo "Running autoconf for configure-libafs"