Merge branch 'wip/lantw/gspawn-declare-environ' into 'master'
[glib.git] / autogen.sh
blob9e4ba4c39b22ea86fa4d5c9b12dc3f1d589081b3
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 olddir=`pwd`
8 cd "$srcdir"
10 GTKDOCIZE=$(which gtkdocize 2>/dev/null)
11 if test -z $GTKDOCIZE; then
12 echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
13 rm -f gtk-doc.make
14 cat > gtk-doc.make <<EOF
15 EXTRA_DIST =
16 CLEANFILES =
17 EOF
18 else
19 gtkdocize || exit $?
22 AUTORECONF=`which autoreconf`
23 if test -z $AUTORECONF; then
24 echo "*** No autoreconf found, please install it ***"
25 exit 1
28 # INSTALL is required by automake, but may be deleted by clean
29 # up rules. to get automake to work, simply touch it here. It will be
30 # regenerated from its corresponding *.in file by ./configure anyway.
31 touch INSTALL
33 autoreconf --force --install --verbose || exit $?
35 cd "$olddir"
36 test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"