5 test -n "$srcdir" || srcdir="`dirname \"$0\"`"
6 test -n "$srcdir" || srcdir=.
8 if ! test -f "$srcdir/configure.ac"; then
9 echo "Failed to find the top-level $PROJECT directory"
18 AUTORECONF=`which autoreconf`
19 if test -z $AUTORECONF; then
20 echo "*** No autoreconf found ***"
23 autoreconf -v --install || exit $?
28 if test -z "$NO_CONFIGURE"; then
29 $srcdir/configure "$@" && echo "Now type 'make' to compile $PROJECT."