blob: cdebe07c6712ed9a24b8cf37237b8c26ddc94e06 [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
16echo -n "checking for autoreconf... "
17which autoreconf || {
Javier Jardón2abe1262011-01-09 22:18:53 -050018 echo "*** No autoreconf found, please install it ***"
19 exit 1
Behdad Esfahbod1264b232011-08-01 16:39:32 -040020}
21
22echo "running autoreconf"
23autoreconf --force --install || exit $?
Behdad Esfahbod29aa4002009-11-02 16:28:39 -050024
Javier Jardón2abe1262011-01-09 22:18:53 -050025cd $olddir
Behdad Esfahbod1264b232011-08-01 16:39:32 -040026echo "running configure $@"
Javier Jardón2abe1262011-01-09 22:18:53 -050027test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"