X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=autogen.sh;h=f5feee2f6578b677ca031a51d2a47d704107646f;hb=42da1d2aeb955eebba382f1a142e15d7273021c8;hp=aecfb84cea04490c534dd7e34f63b018322ae851;hpb=ab534ae073c187d550497ce90cc65265b83de4d4;p=clutter-gtk diff --git a/autogen.sh b/autogen.sh index aecfb84..f5feee2 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,4 +1,28 @@ #! /bin/sh -gtkdocize || exit 1 -autoreconf -v --install || exit 1 -./configure --enable-maintainer-mode "$@" + +PKG_NAME=Clutter-Gtk +TEST_TYPE=-d +FILE=clutter-gtk + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +test $TEST_TYPE $FILE || { + echo "You must run this script in the top-level $PROJECT directory" + exit 1 +} + +gtkdocize || exit $? + +# we need to patch gtk-doc.make to support pretty output with +# libtool 1.x. Should be fixed in the next version of gtk-doc. +# To be more resilient with the various versions of gtk-doc one +# can find, just sed gkt-doc.make rather than patch it. +sed -e 's#) --mode=compile#) --tag=CC --mode=compile#' gtk-doc.make > gtk-doc.temp \ + && mv gtk-doc.temp gtk-doc.make +sed -e 's#) --mode=link#) --tag=CC --mode=link#' gtk-doc.make > gtk-doc.temp \ + && mv gtk-doc.temp gtk-doc.make + +ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" autoreconf -v --install || exit $? + +./configure "$@" && echo Now type make to compile $PKG_NAME.