2010-09-09 10:58:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
2008-04-09 10:51:15 +00:00
|
|
|
|
|
|
|
srcdir=`dirname $0`
|
|
|
|
test -z "$srcdir" && srcdir=.
|
|
|
|
|
2010-09-09 10:58:03 +00:00
|
|
|
ORIGDIR=`pwd`
|
2010-10-20 08:42:34 +00:00
|
|
|
|
2010-09-09 10:58:03 +00:00
|
|
|
cd $srcdir
|
2008-04-09 10:51:15 +00:00
|
|
|
PROJECT=Clutter
|
2010-09-09 10:58:03 +00:00
|
|
|
TEST_TYPE=-f
|
|
|
|
FILE=clutter/clutter.h
|
2008-04-09 10:51:15 +00:00
|
|
|
|
2010-10-20 08:42:34 +00:00
|
|
|
test $TEST_TYPE $FILE || {
|
|
|
|
echo "You must run this script in the top-level $PROJECT directory"
|
|
|
|
exit 1
|
|
|
|
}
|
2010-09-09 10:58:03 +00:00
|
|
|
|
|
|
|
(gtkdocize --version) < /dev/null > /dev/null 2>&1 || {
|
|
|
|
echo
|
|
|
|
echo "You must have gtk-doc installed to compile $PROJECT."
|
|
|
|
echo "Install the appropriate package for your distribution,"
|
|
|
|
echo "or get the source tarball at http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/"
|
2010-10-20 08:42:34 +00:00
|
|
|
exit 1
|
2008-04-09 10:51:15 +00:00
|
|
|
}
|
|
|
|
|
2010-10-20 08:42:34 +00:00
|
|
|
# NOCONFIGURE is used by gnome-common
|
2010-06-29 15:25:18 +00:00
|
|
|
if test -z "$NOCONFIGURE"; then
|
2010-09-09 10:58:03 +00:00
|
|
|
if test -z "$*"; then
|
|
|
|
echo "I am going to run ./configure with no arguments - if you wish "
|
|
|
|
echo "to pass any to it, please specify them on the $0 command line."
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -rf autom4te.cache
|
|
|
|
|
|
|
|
gtkdocize || exit $?
|
2010-10-20 08:42:34 +00:00
|
|
|
autoreconf -vfi || exit $?
|
2010-09-09 10:58:03 +00:00
|
|
|
cd $ORIGDIR || exit $?
|
|
|
|
|
|
|
|
if test -z "$NOCONFIGURE"; then
|
|
|
|
$srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
|
|
|
|
echo "Now type 'make' to compile $PROJECT."
|
2010-06-29 15:25:18 +00:00
|
|
|
fi
|