gl: Whitespace cleanup
[cairo.git] / autogen.sh
blob4b10251db941801c017be653731d006087318f43
1 #!/bin/sh
2 # Run this to generate all the initial makefiles, etc.
4 test -n "$srcdir" || srcdir=`dirname "$0"`
5 test -n "$srcdir" || srcdir=.
7 ORIGDIR=`pwd`
8 cd $srcdir
10 AUTORECONF=`which autoreconf`
11 if test -z $AUTORECONF; then
12 echo "*** No autoreconf found, please install it ***"
13 exit 1
16 GTKDOCIZE=`which gtkdocize`
17 if test -z $GTKDOCIZE; then
18 echo "*** No GTK-Doc found, documentation won't be generated ***"
19 else
20 gtkdocize || exit $?
23 # create dummy */Makefile.am.features and ChangeLog to make automake happy
24 > boilerplate/Makefile.am.features
25 > src/Makefile.am.features
26 touch ChangeLog
28 autoreconf --install --verbose || exit $?
30 cd $ORIGDIR
31 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"