blob: a267f297b06d0f04f8d61de4bd67d4f5664bdd23 [file] [log] [blame]
Behdad Esfahbod29aa4002009-11-02 16:28:39 -05001#!/bin/sh
2# Run this to generate all the initial makefiles, etc.
Behdad Esfahbod29aa4002009-11-02 16:28:39 -05003
Javier Jardón2abe1262011-01-09 22:18:53 -05004test -n "$srcdir" || srcdir=`dirname "$0"`
5test -n "$srcdir" || srcdir=.
Behdad Esfahbod29aa4002009-11-02 16:28:39 -05006
Javier Jardón2abe1262011-01-09 22:18:53 -05007olddir=`pwd`
Behdad Esfahbod29aa4002009-11-02 16:28:39 -05008cd $srcdir
9
Behdad Esfahbodadff3772013-02-06 23:43:27 -050010echo -n "checking for ragel... "
11which ragel || {
12 echo "You need to install ragel... See http://www.complang.org/ragel/"
13 exit 1
14}
15
Behdad Esfahbodb3014782011-08-02 11:25:13 -040016echo -n "checking for pkg-config... "
17which pkg-config || {
18 echo "*** No pkg-config found, please install it ***"
19 exit 1
20}
21
Anthony Carricof7c72b42013-02-24 13:00:33 -050022echo -n "checking for gtkdocize... "
Behdad Esfahbodb456d422014-02-11 17:29:40 -050023if which gtkdocize ; then
24 gtkdocize --copy || exit 1
25else
26 echo "*** No gtkdocize found, skipping documentation ***"
Behdad Esfahbode9853f32014-03-21 12:53:08 -070027 echo "EXTRA_DIST = " > gtk-doc.make
Behdad Esfahbodb456d422014-02-11 17:29:40 -050028fi
Anthony Carricof7c72b42013-02-24 13:00:33 -050029
Behdad Esfahbod1264b232011-08-01 16:39:32 -040030echo -n "checking for autoreconf... "
31which autoreconf || {
Javier Jardón2abe1262011-01-09 22:18:53 -050032 echo "*** No autoreconf found, please install it ***"
33 exit 1
Behdad Esfahbod1264b232011-08-01 16:39:32 -040034}
35
Behdad Esfahbodb3014782011-08-02 11:25:13 -040036echo "running autoreconf --force --install --verbose"
37autoreconf --force --install --verbose || exit $?
Behdad Esfahbod29aa4002009-11-02 16:28:39 -050038
Javier Jardón2abe1262011-01-09 22:18:53 -050039cd $olddir
Behdad Esfahbod1264b232011-08-01 16:39:32 -040040echo "running configure $@"
Javier Jardón2abe1262011-01-09 22:18:53 -050041test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"