autogen.sh 847 Bytes
Newer Older
1 2 3
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

Javier Jardón's avatar
Javier Jardón committed
4 5
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
6

Javier Jardón's avatar
Javier Jardón committed
7 8
olddir=`pwd`
cd "$srcdir"
9

Javier Jardón's avatar
Javier Jardón committed
10 11 12 13
GTKDOCIZE=`which gtkdocize`
if test -z $GTKDOCIZE; then
        echo "*** No GTK-Doc found, please install it ***"
        exit 1
14
else
Javier Jardón's avatar
Javier Jardón committed
15
        gtkdocize || exit $?
16 17
fi

18 19 20 21 22
# README and INSTALL are required by automake, but may be deleted by clean
# up rules. to get automake to work, simply touch these here, they will be
# regenerated from their corresponding *.in files by ./configure anyway.
touch README INSTALL

Javier Jardón's avatar
Javier Jardón committed
23 24 25 26 27 28
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
        echo "*** No autoreconf found, please install it ***"
        exit 1
else
        autoreconf --force --install --verbose || exit $?
29
fi
Javier Jardón's avatar
Javier Jardón committed
30 31 32

cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"