#!/bin/sh

make=$(which gmake 2>/dev/null)
test x$make = x && {
    make=$(which make 2>/dev/null)
}

test x$make = x && {
    echo "Error: 'make' not found!"
    exit 1
}

cat <<EOF

This tree requires no configuration nor compilation.

To see the install instructions run make, or simply run 'make install'
to install under the default location (/usr/include/...).

If you want to build the test apps, run one of these targets:

    stest locallock globallock

Run the 'test' target to build and run all tests, and run 'bins' to
build the tests without running them. The tests live in test.cpp.

EOF

doxy=$(which doxygen 2>/dev/null)

test -x "$doxy" -a -e doxy.make && {

    cat <<EOF
You appear to have doxygen. Run 'make doxygen' to build API docs using
Doxygen.

EOF
}

cat <<EOF
    Good luck compiling, and happy hacking!

EOF