autogen.sh 584 Bytes
Newer Older
Owen Taylor's avatar
Owen Taylor committed
1 2 3
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

4 5
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
Owen Taylor's avatar
Owen Taylor committed
6

7 8
olddir=`pwd`
cd "$srcdir"
Owen Taylor's avatar
Owen Taylor committed
9

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

18 19 20 21 22
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
	echo "*** No autoreconf found, please install it ***"
	exit 1
else
23
	ACLOCAL="aclocal $ACLOCAL_FLAGS" autoreconf --force --install || exit $?
24
fi
25

26 27 28

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