autogen.sh 920 字节
Newer Older
B
Behdad Esfahbod 已提交
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=.
B
Behdad Esfahbod 已提交
6

7
olddir=`pwd`
B
Behdad Esfahbod 已提交
8 9
cd $srcdir

10 11 12 13 14 15
echo -n "checking for ragel... "
which ragel || {
	echo "You need to install ragel... See http://www.complang.org/ragel/"
	exit 1
}

16 17 18 19 20 21
echo -n "checking for pkg-config... "
which pkg-config || {
	echo "*** No pkg-config found, please install it ***"
	exit 1
}

A
Anthony Carrico 已提交
22
echo -n "checking for gtkdocize... "
23 24 25 26
if which gtkdocize ; then
	gtkdocize --copy || exit 1
else
	echo "*** No gtkdocize found, skipping documentation ***"
27
	> gtk-doc.make
28
fi
A
Anthony Carrico 已提交
29

30 31
echo -n "checking for autoreconf... "
which autoreconf || {
32 33
	echo "*** No autoreconf found, please install it ***"
	exit 1
34 35
}

36 37
echo "running autoreconf --force --install --verbose"
autoreconf --force --install --verbose || exit $?
B
Behdad Esfahbod 已提交
38

39
cd $olddir
40
echo "running configure $@"
41
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"