blob: f207aa7410b83402568fa1cd0a5e97fa89be1fbf [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
Javier Jardón2abe1262011-01-09 22:18:53 -050010AUTORECONF=`which autoreconf`
11if test -z $AUTORECONF; then
12 echo "*** No autoreconf found, please install it ***"
13 exit 1
14else
15 autoreconf --force --install || exit $?
Behdad Esfahbod29aa4002009-11-02 16:28:39 -050016fi
17
Javier Jardón2abe1262011-01-09 22:18:53 -050018cd $olddir
19test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"