2009-11-02 22:28:39 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Run this to generate all the initial makefiles, etc.
|
|
|
|
|
2011-01-10 04:18:53 +01:00
|
|
|
test -n "$srcdir" || srcdir=`dirname "$0"`
|
|
|
|
test -n "$srcdir" || srcdir=.
|
2009-11-02 22:28:39 +01:00
|
|
|
|
2011-01-10 04:18:53 +01:00
|
|
|
olddir=`pwd`
|
2009-11-02 22:28:39 +01:00
|
|
|
cd $srcdir
|
|
|
|
|
2011-01-10 04:18:53 +01:00
|
|
|
AUTORECONF=`which autoreconf`
|
|
|
|
if test -z $AUTORECONF; then
|
|
|
|
echo "*** No autoreconf found, please install it ***"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
autoreconf --force --install || exit $?
|
2009-11-02 22:28:39 +01:00
|
|
|
fi
|
|
|
|
|
2011-01-10 04:18:53 +01:00
|
|
|
cd $olddir
|
|
|
|
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
|