8 test -z "$srcdir" && srcdir=.
10 test $TEST_TYPE $FILE || {
11 echo "You must run this script in the top-level $PROJECT directory"
17 # we need to patch gtk-doc.make to support pretty output with
18 # libtool 1.x. Should be fixed in the next version of gtk-doc.
19 # To be more resilient with the various versions of gtk-doc one
20 # can find, just sed gkt-doc.make rather than patch it.
21 sed -e 's#) --mode=compile#) --tag=CC --mode=compile#' gtk-doc.make > gtk-doc.temp \
22 && mv gtk-doc.temp gtk-doc.make
23 sed -e 's#) --mode=link#) --tag=CC --mode=link#' gtk-doc.make > gtk-doc.temp \
24 && mv gtk-doc.temp gtk-doc.make
26 ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" autoreconf -v --install || exit $?
28 ./configure "$@" && echo Now type make to compile $PKG_NAME.