clutter/Makefile.am: Made up for missed sources
[profile/ivi/clutter.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 srcdir=`dirname $0`
5 test -z "$srcdir" && srcdir=.
6
7 ORIGDIR=`pwd`
8
9 cd $srcdir
10 PROJECT=Clutter
11 TEST_TYPE=-f
12 FILE=clutter/clutter.h
13
14 test $TEST_TYPE $FILE || {
15         echo "You must run this script in the top-level $PROJECT directory"
16         exit 1
17 }
18
19 if automake-1.11 --version < /dev/null > /dev/null 2>&1 ; then
20     AUTOMAKE=automake-1.11
21     ACLOCAL=aclocal-1.11
22     export AUTOMAKE ACLOCAL
23 else
24         echo
25         echo "You must have automake 1.11.x installed to compile $PROJECT
26 ECT."
27         echo "Install the appropriate package for your distribution,"
28         echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
29         exit 1
30 fi
31
32 (gtkdocize --version) < /dev/null > /dev/null 2>&1 || {
33         echo
34         echo "You must have gtk-doc installed to compile $PROJECT."
35         echo "Install the appropriate package for your distribution,"
36         echo "or get the source tarball at http://ftp.gnome.org/pub/GNOME/sources/gtk-doc/"
37         exit 1
38 }
39
40 # NOCONFIGURE is used by gnome-common
41 if test -z "$NOCONFIGURE"; then
42         if test -z "$*"; then
43                 echo "I am going to run ./configure with no arguments - if you wish "
44                 echo "to pass any to it, please specify them on the $0 command line."
45         fi
46 fi
47
48 if test -z "$ACLOCAL_FLAGS"; then
49         acdir=`$ACLOCAL --print-ac-dir`
50         m4list="glib-2.0.m4"
51         for file in $m4list; do
52                 if [ ! -f "$acdir/$file" ]; then
53                         echo "WARNING: aclocal's directory is $acdir, but..."
54                         echo "         no file $acdir/$file"
55                         echo "         You may see fatal macro warnings below."
56                         echo "         If these files are installed in /some/dir, set the ACLOCAL_FLAGS "
57                         echo "         environment variable to \"-I /some/dir\", or install"
58                         echo "         $acdir/$file."
59                         echo ""
60                 fi
61         done
62 fi
63
64 rm -rf autom4te.cache
65
66 gtkdocize || exit $?
67 autoreconf -vfi || exit $?
68 cd $ORIGDIR || exit $?
69
70 if test -z "$NOCONFIGURE"; then
71         $srcdir/configure $AUTOGEN_CONFIGURE_ARGS "$@" || exit $?
72         echo "Now type 'make' to compile $PROJECT."
73 fi