autogen.sh 414 Bytes
Newer Older
Martin Peterson's avatar
Martin Peterson committed
1 2 3
#!/bin/sh
# Run this to generate all the initial makefiles, etc.

4 5
test -n "$srcdir" || srcdir=`dirname "$0"`
test -n "$srcdir" || srcdir=.
6

7 8
olddir=`pwd`
cd $srcdir
Martin Peterson's avatar
Martin Peterson committed
9

10 11 12 13 14
AUTORECONF=`which autoreconf`
if test -z $AUTORECONF; then
        echo "*** No autoreconf found, please intall it ***"
        exit 1
fi
Martin Peterson's avatar
Martin Peterson committed
15

16 17 18
set -e

autoreconf --force --install --verbose
19 20 21

cd $olddir
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"