test release infrastructure
[profile/ivi/pango.git] / autogen.sh
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
3
4 test -n "$srcdir" || srcdir=`dirname "$0"`
5 test -n "$srcdir" || srcdir=.
6
7 olddir=`pwd`
8 cd "$srcdir"
9
10 GTKDOCIZE=`which gtkdocize`
11 if test -z $GTKDOCIZE; then
12         echo "*** No GTK-Doc found, please install it ***"
13         exit 1
14 else
15         gtkdocize || exit $?
16 fi
17
18 AUTORECONF=`which autoreconf`
19 if test -z $AUTORECONF; then
20         echo "*** No autoreconf found, please install it ***"
21         exit 1
22 else
23         ACLOCAL="aclocal $ACLOCAL_FLAGS" autoreconf --force --install || exit $?
24 fi
25
26
27 cd "$olddir"
28 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"