blob: 47640c3e4904c3865bd95e5be9dc798f49c19759 [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 Esfahbodb3014782011-08-02 11:25:13 -040010echo -n "checking for pkg-config... "
11which pkg-config || {
12 echo "*** No pkg-config found, please install it ***"
13 exit 1
14}
15
Behdad Esfahbod1264b232011-08-01 16:39:32 -040016echo -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
Behdad Esfahbodb3014782011-08-02 11:25:13 -040022echo "running autoreconf --force --install --verbose"
23autoreconf --force --install --verbose || 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" "$@"