diff options
author | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2007-03-31 19:18:01 +0400 |
---|---|---|
committer | hieuhoang1972 <hieuhoang1972@1f5c12ca-751b-0410-a591-d2e778427230> | 2007-03-31 19:18:01 +0400 |
commit | 16e031f1cf464fc2e7773ec8c1024c6d1bd373b4 (patch) | |
tree | ea4d9c29d523ff1b524250990cec8e89238a1015 /regenerate-makefiles.sh | |
parent | c17316495cacbb7da4c45569c4679b8d7535c6f3 (diff) |
check automake version (submitted by Lane Schwartz)
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1333 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'regenerate-makefiles.sh')
-rwxr-xr-x | regenerate-makefiles.sh | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/regenerate-makefiles.sh b/regenerate-makefiles.sh index 75d48e86b..8d78b06a5 100755 --- a/regenerate-makefiles.sh +++ b/regenerate-makefiles.sh @@ -5,12 +5,28 @@ function die () { exit 1 } -echo "Calling aclocal..." -aclocal || die "aclocal failed" -echo "Calling autoconf..." -autoconf || die "autoconf failed" -echo "Calling automake..." -automake || die "automake failed" +if [ -z "$ACLOCAL" ] +then + ACLOCAL=`which aclocal` +fi + +if [ -z "$AUTOMAKE" ] +then + AUTOMAKE=`which automake` +fi + +if [ -z "$AUTOCONF" ] +then + AUTOCONF=`which autoconf` +fi + + +echo "Calling $ACLOCAL..." +$ACLOCAL || die "aclocal failed" +echo "Calling $AUTOCONF..." +$AUTOCONF || die "autoconf failed" +echo "Calling $AUTOMAKE..." +$AUTOMAKE || die "automake failed" echo echo "You should now be able to configure and build:" |