Newer
Older
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
THEDIR=`pwd`
cd $srcdir
# automake-1.10 (recommended) is not available on Fedora 8
AUTOMAKE=automake
ACLOCAL=aclocal
else
ACLOCAL=aclocal-${AM_VERSION}
AUTOMAKE=automake-${AM_VERSION}
fi
INTLTOOLIZE=$(which intltoolize)
#workaround for mingw bug in intltoolize script.
if test "$INTLTOOLIZE" = "/bin/intltoolize" ; then
INTLTOOLIZE=/usr/bin/intltoolize
fi
libtoolize="libtoolize"
for lt in glibtoolize libtoolize15 libtoolize14 libtoolize13 ; do
Gautier Pelloux-Prayer
committed
if test -x /usr/bin/$lt ; then
libtoolize=$lt ; break
fi
if test -x /usr/local/bin/$lt ; then
libtoolize=$lt ; break
fi
if test -x /opt/local/bin/$lt ; then
libtoolize=$lt ; break
fi
ACLOCAL_ARGS="$ACLOCAL_ARGS -I /usr/local/share/aclocal"
fi
if test -d /share/aclocal ; then
Gautier Pelloux-Prayer
committed
ACLOCAL_ARGS="$ACLOCAL_ARGS -I /share/aclocal"
$AUTOMAKE --force-missing --add-missing --copy
Gautier Pelloux-Prayer
committed
#install git pre-commit hooks if possible
if [ -d .git/hooks ] && [ ! -f .git/hooks/pre-commit ]; then
cp .git-pre-commit .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
fi