2005-04-13 15:49:56 -04:00
|
|
|
#! /bin/sh
|
2008-04-09 06:51:15 -04:00
|
|
|
|
|
|
|
srcdir=`dirname $0`
|
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
|
|
|
PROJECT=Clutter
|
|
|
|
TEST_TYPE=-d
|
|
|
|
FILE=clutter
|
|
|
|
|
|
|
|
test $TEST_TYPE $FILE || {
|
|
|
|
echo "You must run this script in the top-level $PROJECT directory"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2008-04-17 06:41:03 -04:00
|
|
|
GTKDOCIZE=`which gtkdocize`
|
|
|
|
if test -z $GTKDOCIZE; then
|
|
|
|
echo "*** No gtk-doc support ***"
|
2008-04-28 11:38:30 -04:00
|
|
|
echo "EXTRA_DIST =" > gtk-doc.make
|
2008-04-17 06:41:03 -04:00
|
|
|
else
|
|
|
|
gtkdocize || exit $?
|
2009-02-19 05:47:38 -05:00
|
|
|
# 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
|
2008-04-17 06:41:03 -04:00
|
|
|
fi
|
2007-06-19 10:15:42 -04:00
|
|
|
|
2008-06-11 05:36:35 -04:00
|
|
|
AUTORECONF=`which autoreconf`
|
|
|
|
if test -z $AUTORECONF; then
|
|
|
|
echo "*** No autoreconf found ***"
|
|
|
|
exit 1
|
|
|
|
else
|
2009-02-13 14:14:43 -05:00
|
|
|
ACLOCAL="${ACLOCAL-aclocal} $ACLOCAL_FLAGS" autoreconf -v --install || exit $?
|
2008-06-11 05:36:35 -04:00
|
|
|
fi
|
2008-04-09 06:51:15 -04:00
|
|
|
|
2010-09-07 18:35:06 -04:00
|
|
|
autopoint --force || exit $?
|
|
|
|
|
2010-06-29 11:25:18 -04:00
|
|
|
if test -z "$NOCONFIGURE"; then
|
|
|
|
./configure "$@" && echo "Now type 'make' to compile $PROJECT."
|
|
|
|
fi
|