autogen.sh 615 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 19 20
INTLTOOLIZE=`which intltoolize`
if test -z $INTLTOOLIZE; then
        echo "*** No intltoolize found, please install the intltool package ***"
        exit 1
fi
Martin Peterson's avatar
Martin Peterson committed
21

22 23 24 25
set -e

intltoolize --force --copy --automake 
autoreconf --force --install --verbose
26 27 28

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