2010-06-11 23:14:37 +04:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2012-02-14 12:03:01 +04:00
|
|
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
|
|
test -n "$srcdir" || srcdir=.
|
2010-06-11 23:14:37 +04:00
|
|
|
|
2012-02-14 12:03:01 +04:00
|
|
|
olddir=`pwd`
|
2010-06-11 23:14:37 +04:00
|
|
|
cd $srcdir
|
|
|
|
|
2012-02-14 12:03:01 +04:00
|
|
|
echo -n "checking for ragel... "
|
|
|
|
which ragel || {
|
|
|
|
echo "You need to install ragel... See http://www.complang.org/ragel/"
|
|
|
|
exit 1
|
2010-06-11 23:14:37 +04:00
|
|
|
}
|
|
|
|
|
2012-02-14 12:03:01 +04:00
|
|
|
echo -n "checking for pkg-config... "
|
|
|
|
which pkg-config || {
|
|
|
|
echo "*** No pkg-config found, please install it ***"
|
|
|
|
exit 1
|
2010-06-11 23:14:37 +04:00
|
|
|
}
|
|
|
|
|
2016-10-26 12:53:00 +03:00
|
|
|
echo -n "checking for libtoolize... "
|
|
|
|
which glibtoolize || which libtoolize || {
|
|
|
|
echo "*** No libtoolize (libtool) found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
echo -n "checking for gtkdocize... "
|
|
|
|
if which gtkdocize ; then
|
|
|
|
gtkdocize --copy || exit 1
|
|
|
|
else
|
|
|
|
echo "*** No gtkdocize (gtk-doc) found, skipping documentation ***"
|
|
|
|
echo "EXTRA_DIST = " > gtk-doc.make
|
|
|
|
fi
|
|
|
|
|
2012-02-14 12:03:01 +04:00
|
|
|
echo -n "checking for autoreconf... "
|
|
|
|
which autoreconf || {
|
2016-10-26 12:53:00 +03:00
|
|
|
echo "*** No autoreconf (autoconf) found, please install it ***"
|
2012-02-14 12:03:01 +04:00
|
|
|
exit 1
|
2010-06-11 23:14:37 +04:00
|
|
|
}
|
|
|
|
|
2012-02-14 12:03:01 +04:00
|
|
|
echo "running autoreconf --force --install --verbose"
|
|
|
|
autoreconf --force --install --verbose || exit $?
|
2010-06-11 23:14:37 +04:00
|
|
|
|
2012-02-14 12:03:01 +04:00
|
|
|
cd $olddir
|
|
|
|
echo "running configure $@"
|
|
|
|
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
|