echo "Checking for a complete tree..."
# required directories
-#for dir in build lnet portals lustre ; do
for dir in build lnet lustre ; do
if [ ! -d "$dir" ] ; then
cat >&2 <<EOF
ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
done
# some are optional
-for dir in snmp ; do
+for dir in snmp portals; do
if [ -d "$dir" ] ; then
ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
fi