-# die a horrible death. All output goes to stderr.
-#
-die()
-{
- echo "bootstrap failure: $*"
- echo Aborting
- exit 1
-} 1>&2
-
-run_cmd()
-{
- echo -n "Running $*"
- eval "$@" || die "command exited with code $?"
- echo
-}
-
-echo "Checking for a complete tree..."
-REQUIRED_DIRS="libcfs lnet lustre"
-OPTIONAL_DIRS="snmp portals"
-CONFIGURE_DIRS="libsysio lustre-iokit ldiskfs"
-
-for dir in $REQUIRED_DIRS ; do
- test -d "$dir" || \
- die "Your tree seems to be missing $dir.
-Please read README.lustrecvs for details."
-
- ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"