2009-11-02 22:28:39 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2011-01-10 04:18:53 +01:00
|
|
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
|
|
test -n "$srcdir" || srcdir=.
|
2009-11-02 22:28:39 +01:00
|
|
|
|
2011-01-10 04:18:53 +01:00
|
|
|
olddir=`pwd`
|
2009-11-02 22:28:39 +01:00
|
|
|
cd $srcdir
|
|
|
|
|
2013-02-07 05:43:27 +01:00
|
|
|
echo -n "checking for ragel... "
|
|
|
|
which ragel || {
|
|
|
|
echo "You need to install ragel... See http://www.complang.org/ragel/"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2011-08-02 17:25:13 +02:00
|
|
|
echo -n "checking for pkg-config... "
|
|
|
|
which pkg-config || {
|
|
|
|
echo "*** No pkg-config found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2015-02-26 22:58:32 +01:00
|
|
|
echo -n "checking for libtoolize... "
|
2015-03-05 00:47:25 +01:00
|
|
|
which glibtoolize || which libtoolize || {
|
2015-02-26 22:58:32 +01:00
|
|
|
echo "*** No libtoolize (libtool) found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
}
|
2013-02-24 19:00:33 +01:00
|
|
|
echo -n "checking for gtkdocize... "
|
2014-02-11 23:29:40 +01:00
|
|
|
if which gtkdocize ; then
|
|
|
|
gtkdocize --copy || exit 1
|
|
|
|
else
|
2015-02-26 22:58:32 +01:00
|
|
|
echo "*** No gtkdocize (gtk-doc) found, skipping documentation ***"
|
2014-03-21 20:53:08 +01:00
|
|
|
echo "EXTRA_DIST = " > gtk-doc.make
|
2014-02-11 23:29:40 +01:00
|
|
|
fi
|
2013-02-24 19:00:33 +01:00
|
|
|
|
2011-08-01 22:39:32 +02:00
|
|
|
echo -n "checking for autoreconf... "
|
|
|
|
which autoreconf || {
|
2015-02-26 22:58:32 +01:00
|
|
|
echo "*** No autoreconf (autoconf) found, please install it ***"
|
2011-01-10 04:18:53 +01:00
|
|
|
exit 1
|
2011-08-01 22:39:32 +02:00
|
|
|
}
|
|
|
|
|
2011-08-02 17:25:13 +02:00
|
|
|
echo "running autoreconf --force --install --verbose"
|
|
|
|
autoreconf --force --install --verbose || exit $?
|
2009-11-02 22:28:39 +01:00
|
|
|
|
2011-01-10 04:18:53 +01:00
|
|
|
cd $olddir
|
2018-01-05 10:12:20 +01:00
|
|
|
test -n "$NOCONFIGURE" || {
|
|
|
|
echo "running configure $@"
|
|
|
|
"$srcdir/configure" "$@"
|
|
|
|
}
|