Add dependencies
[clutter-gtk] / autogen.sh
1 #! /bin/sh
2
3 PKG_NAME=Clutter-Gtk
4 TEST_TYPE=-d
5 FILE=clutter-gtk
6
7 srcdir=`dirname $0`
8 test -z "$srcdir" && srcdir=.
9
10 test $TEST_TYPE $FILE || {
11         echo "You must run this script in the top-level $PROJECT directory"
12         exit 1
13 }
14
15 gtkdocize || exit $?
16
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
25
26 ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" autoreconf -v --install || exit $?
27
28 ./configure "$@" && echo Now type make to compile $PKG_NAME.