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