if ! $cmd --version >/dev/null ; then
error_msg "missing"
fi
- version=$($cmd --version | awk "BEGIN { IGNORECASE=1 } /$tool \(GNU $tool\)/ { print \$4 }")
+ version=$($cmd --version | awk "/$tool \(GNU/ { print \$4 }")
echo "found $version"
if ! compare_versions "$required" "$version" ; then
error_msg "too old"
}
echo "Checking for a complete tree..."
-for dir in build portals lustre ; do
+# required directories
+for dir in build lnet lustre ; do
if [ ! -d "$dir" ] ; then
cat >&2 <<EOF
Your tree seems to be missing $dir.
fi
ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
done
+# some are optional
+for dir in snmp portals; do
+ if [ -d "$dir" ] ; then
+ ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
+ fi
+done
check_version automake automake-1.7 "1.7.8"
check_version autoconf autoconf "2.57"