blob: 833a6219c86e3cda87c614d0e96f63b49cec4b45 [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 Esfahbod1264b232011-08-01 16:39:32 -040010echo -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
Behdad Esfahbod1264b232011-08-01 16:39:32 -040022echo -n "checking for autoreconf... "
23which autoreconf || {
Javier Jardón2abe1262011-01-09 22:18:53 -050024 echo "*** No autoreconf found, please install it ***"
25 exit 1
Behdad Esfahbod1264b232011-08-01 16:39:32 -040026}
27
Behdad Esfahbodb3014782011-08-02 11:25:13 -040028echo "running autoreconf --force --install --verbose"
29autoreconf --force --install --verbose || exit $?
Behdad Esfahbod29aa4002009-11-02 16:28:39 -050030
Javier Jardón2abe1262011-01-09 22:18:53 -050031cd $olddir
Behdad Esfahbod1264b232011-08-01 16:39:32 -040032echo "running configure $@"
Javier Jardón2abe1262011-01-09 22:18:53 -050033test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"