-set -e
-set -x
-
-##
-## Check for various tools
-##
-
-ACLOCAL_ARGS="-I m4 ${ACLOCAL_ARGS}"
-
-# Check for contrib directory
-if test -d extras/contrib/bin; then
- PATH="`pwd`/extras/contrib/bin:$PATH"
- if test -d extras/contrib/share/aclocal; then
- ACLOCAL_ARGS="${ACLOCAL_ARGS} -I extras/contrib/share/aclocal"
- fi
- if test ".`uname -s`" = ".Darwin"; then
- LD_LIBRARY_PATH=./extras/contrib/lib:$LD_LIBRARY_PATH
- DYLD_LIBRARY_PATH=./extras/contrib/lib:$DYLD_LIBRARY_PATH
- export LD_LIBRARY_PATH
- export DYLD_LIBRARY_PATH
- elif test ".`uname -s`" = ".BeOS"; then
- LIBRARY_PATH=./extras/contrib/lib:$LIBRARY_PATH
- BELIBRARIES=./extras/contrib/lib:$BELIBRARIES
- export LIBRARY_PATH
- export BELIBRARIES
- fi
-elif test ".`uname -s`" = ".Darwin"; then
- set +x
- echo ""
- echo "ERR: Contribs haven't been built"
- echo "ERR: Please run:"
- echo "ERR: "
- echo "ERR: 'cd extras/contrib && ./bootstrap && make && cd ../..'"
- echo "ERR: "
- echo "ERR: Make sure fink has been disabled too."
- echo ""
- set -x
- exit 1
-fi
-