https://github.com/wilkeraziz/mosesdecoder
Tip revision: 82bfc0cdea66cc1922687d6c4896e186d3cf6857 authored by servan on 10 August 2011, 15:50:32 UTC
Tip revision: 82bfc0c
regenerate-makefiles.sh
#!/bin/bash
# NOTE:
# Versions 1.9 (or higher) of aclocal and automake are required.
# For Mac OSX users:
# Standard distribution usually includes versions 1.6.
# Get versions 1.9 or higher
# Set the following variable to the correct paths
#ACLOCAL="/path/to/aclocal-1.9"
#AUTOMAKE="/path/to/automake-1.9"
function die () {
echo "$@" >&2
exit 1
}
if [ -z "$ACLOCAL" ]
then
ACLOCAL=`which aclocal`
fi
if [ -z "$AUTOMAKE" ]
then
AUTOMAKE=`which automake`
fi
if [ -z "$AUTOCONF" ]
then
AUTOCONF=`which autoconf`
fi
if [ -z "$LIBTOOLIZE" ]
then
LIBTOOLIZE=`which libtoolize`
if [ -z "$LIBTOOLIZE" ]
then
LIBTOOLIZE=`which glibtoolize`
fi
fi
echo "Calling $ACLOCAL..."
$ACLOCAL -I m4 || die "aclocal failed"
echo "Calling $AUTOCONF..."
$AUTOCONF || die "autoconf failed"
echo "Calling $AUTOMAKE..."
$AUTOMAKE || die "automake failed"
echo "Calling $LIBTOOLIZE"
$LIBTOOLIZE || die "libtoolize failed"
echo
echo "You should now be able to configure and build:"
echo " ./configure [--with-srilm=/path/to/srilm] [--with-irstlm=/path/to/irstlm] [--with-randlm=/path/to/randlm] [--without-kenlm] [--with-xmlrpc-c=/path/to/xmlrpc-c-config]"
echo " make -j 4"
echo