]> Pileus Git - ~andy/gtk/blob - autogen.sh
Merge branch 'master' into broadway2
[~andy/gtk] / 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 # README and INSTALL are required by automake, but may be deleted by clean
19 # up rules. to get automake to work, simply touch these here, they will be
20 # regenerated from their corresponding *.in files by ./configure anyway.
21 touch README INSTALL
22
23 AUTORECONF=`which autoreconf`
24 if test -z $AUTORECONF; then
25         echo "*** No autoreconf found, please install it ***"
26         exit 1
27 else
28         autoreconf --force --install --verbose || exit $?
29 fi
30
31 cd "$olddir"
32 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"